milos-linux/Documentation/userspace-api
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
..
accelerators
ebpf
fwctl fwctl/bnxt_fwctl: Add documentation entries 2026-03-31 13:33:55 -03:00
gpio Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
ioctl crypto: qat - remove unused character device and IOCTLs 2026-06-27 11:08:17 +01:00
media media: uapi: Clarify MBUS color component order for serial buses 2026-03-24 11:58:02 +01:00
netlink docs: netlink: Couple of intro-specs documentation fixes 2025-11-06 14:50:59 -08:00
check_exec.rst
dcdbas.rst
dma-buf-alloc-exchange.rst
dma-buf-heaps.rst dma-buf: heaps: system: document system_cc_shared heap 2026-04-10 14:20:01 +02:00
ELF.rst
futex2.rst
index.rst Scheduler changes for v7.0: 2026-02-10 12:50:10 -08:00
iommufd.rst
isapnp.rst
landlock.rst landlock: Document fallocate(2) as another truncation corner case 2026-04-07 18:51:11 +02:00
liveupdate.rst docs: add luo documentation 2025-11-27 14:24:39 -08:00
lsm.rst
mfd_noexec.rst
mseal.rst
no_new_privs.rst
ntsync.rst
perf_ring_buffer.rst
rseq.rst rseq: Reenable performance optimizations conditionally 2026-05-06 17:40:27 +02:00
seccomp_filter.rst
spec_ctrl.rst Documentation/x86: Fix PR_SET_SPECULATION_CTRL error codes 2025-12-29 16:27:45 +01:00
sysfs-platform_profile.rst
tee.rst
unshare.rst
vduse.rst Documentation: Add documentation for VDUSE Address Space IDs 2026-01-28 15:32:18 -05:00