milos-linux/drivers
Giovanni Cabiddu 3ae49dd04d crypto: qat - remove unused character device and IOCTLs
commit d237230728c567297f2f98b425d63156ab2ed17f upstream.

The QAT driver exposes a character device (qat_adf_ctl) with IOCTLs
for device configuration, start, stop, status query and enumeration.
These IOCTLs are not part of any public uAPI header and have no known
in-tree or out-of-tree users. Device lifecycle is already managed via
sysfs.

The ioctl interface also increases the attack surface and is the
subject of a number of bug reports.

Remove the character device, the IOCTL definitions, and the related
data structures (adf_dev_status_info, adf_user_cfg_key_val,
adf_user_cfg_section, adf_user_cfg_ctl_data). Drop the now-unused
adf_cfg_user.h header and strip adf_ctl_drv.c down to the minimal
module_init/module_exit hooks for workqueue, AER, and crypto/compression
algorithm registration.

Clean up leftover dead code that was only reachable from the removed
IOCTL paths: adf_cfg_del_all(), adf_devmgr_verify_id(),
adf_devmgr_get_num_dev(), adf_devmgr_get_dev_by_id(),
adf_get_vf_real_id() and the unused ADF_CFG macros.

Additionally, drop the entry associated to QAT IOCTLs in
ioctl-number.rst.

Cc: stable@vger.kernel.org
Fixes: d8cba25d2c ("crypto: qat - Intel(R) QAT driver framework")
Reported-by: Zhi Wang <wangzhi@stu.xidian.edu.cn>
Reported-by: Bin Yu <byu@xidian.edu.cn>
Reported-by: MingYu Wang <w15303746062@163.com>
Closes: https://lore.kernel.org/all/61d6d499.ab89.19b9b7f3186.Coremail.wangzhi_xd@stu.xidian.edu.cn/
Link: https://lore.kernel.org/all/20260508034841.256794-1-w15303746062@163.com/
Link: https://lore.kernel.org/all/20260508023542.256299-1-w15303746062@163.com/
Link: https://lore.kernel.org/all/20260504025120.98242-1-w15303746062@163.com/
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-06-27 11:08:17 +01:00
..
accel accel/amdxdna: Fix mm_struct reference leak in aie2_populate_range() 2026-06-11 09:50:07 -07:00
accessibility
acpi
amba
android
ata
atm
auxdisplay
base driver core: reject devices with unregistered buses 2026-06-19 13:50:57 +02:00
bcma
block zram: fix use-after-free in zram_bvec_write_partial() 2026-06-03 16:25:50 -07:00
bluetooth
bus
cache
cdrom
cdx
char agp/amd64: Fix broken error propagation in agp_amd64_probe() 2026-06-27 11:08:17 +01:00
clk
clocksource
comedi
connector
counter
cpufreq amd-pstate fixes for 7.1 (2026-06-02) 2026-06-08 15:20:04 +02:00
cpuidle
crypto crypto: qat - remove unused character device and IOCTLs 2026-06-27 11:08:17 +01:00
cxl
dax
dca
devfreq
dibs
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire
firmware Char/Misc driver fixes for 7.1-final 2026-06-12 09:00:28 -07:00
fpga
fsi
fwctl
gnss
gpib
gpio gpiolib: handle gpio-hogs only once 2026-06-10 10:12:57 +02:00
gpu drm/amdgpu: drop retry loop in amdgpu_hmm_range_get_pages 2026-06-19 13:50:58 +02:00
greybus
hid HID: Input: Add battery list cleanup with devm action 2026-06-19 13:50:58 +02:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c i2c: imx-lpi2c: fix resource leaks switching to devm_dma_request_chan() 2026-06-09 10:13:09 +02:00
i3c
idle
iio iio: adc: ti-ads1298: add bounds check to pga_settings index 2026-06-27 11:08:17 +01:00
infiniband RDMA/srp: bound SRP_RSP sense copy by the received length 2026-06-08 13:43:23 -03:00
input Input updates for v7.1-rc6 2026-06-07 08:40:53 -07:00
interconnect
iommu dma-mapping fixes for Linux 7.1 2026-06-11 14:22:26 -07:00
ipack
irqchip
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc misc: fastrpc: fix use-after-free race in fastrpc_map_create 2026-06-05 17:20:51 +02:00
mmc MMC core: 2026-06-03 09:09:24 -07:00
most
mtd
mux
net octeontx2-af: fix IP fragment flag corruption on custom KPU profile load 2026-06-11 12:59:34 +02:00
nfc
ntb
nubus
nvdimm
nvme
nvmem nvmem: core: fix use-after-free bugs in error paths 2026-06-05 17:18:58 +02:00
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform
pmdomain pmdomain: imx: fix OF node refcount 2026-06-03 11:49:37 +02:00
pnp
power
powercap
pps
ps3
ptp ptp: ocp: fix resource freeing order 2026-06-09 19:26:56 -07:00
pwm
rapidio
ras
regulator
remoteproc
resctrl
reset
rpmsg
rtc
s390
sbus
scsi
sh
siox
slimbus slimbus: qcom-ngd-ctrl: Avoid ABBA on tx_lock/ctrl->lock 2026-06-05 17:19:51 +02:00
soc soc: fixes for 7.3, part 3 2026-06-12 08:44:56 -07:00
soundwire
spi spi: Fixes for v7.1 2026-06-12 11:06:16 -07:00
spmi
ssb
staging Staging driver fixes for 7.1-final 2026-06-12 10:10:12 -07:00
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb USB: serial: kl5kusb105: fix bulk-out buffer overflow 2026-06-08 13:43:10 +02:00
vdpa
vfio
vhost
video
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile