Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: qat - remove unused ioctl interface
@ 2026-05-08  9:18 Giovanni Cabiddu
  2026-05-08  9:18 ` [PATCH 1/2] crypto: qat - remove unused character device and IOCTLs Giovanni Cabiddu
  2026-05-08  9:18 ` [PATCH 2/2] crypto: qat - rename adf_ctl_drv.c to adf_module.c Giovanni Cabiddu
  0 siblings, 2 replies; 3+ messages in thread
From: Giovanni Cabiddu @ 2026-05-08  9:18 UTC (permalink / raw)
  To: herbert
  Cc: linux-crypto, qat-linux, wangzhi, byu, w15303746062, vdronov,
	Giovanni Cabiddu

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.

This ioctl interface increases the attack surface and is the subject of a
number of bug reports. Remove it entirely.

Patch 1 removes the character device, the IOCTL definitions, the related
data structures and headers. It strips adf_ctl_drv.c down to the
minimal module_init/module_exit hooks. This is marked for stable.

Patch 2 renames the now-minimal adf_ctl_drv.c to adf_module.c and
adjusts function names to match the new file name. This is not marked
for stable as it is a pure rename.

Giovanni Cabiddu (2):
  crypto: qat - remove unused character device and IOCTLs
  crypto: qat - rename adf_ctl_drv.c to adf_module.c

 .../userspace-api/ioctl/ioctl-number.rst      |   1 -
 drivers/crypto/intel/qat/qat_common/Makefile  |   2 +-
 .../intel/qat/qat_common/adf_cfg_common.h     |  27 -
 .../intel/qat/qat_common/adf_cfg_user.h       |  38 --
 .../crypto/intel/qat/qat_common/adf_ctl_drv.c | 466 ------------------
 .../crypto/intel/qat/qat_common/adf_module.c  |  64 +++
 6 files changed, 65 insertions(+), 533 deletions(-)
 delete mode 100644 drivers/crypto/intel/qat/qat_common/adf_cfg_user.h
 delete mode 100644 drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_module.c


base-commit: c9e14a7f54e4552968e3103fa871b1380ca23208
-- 
2.54.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-08  9:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08  9:18 [PATCH 0/2] crypto: qat - remove unused ioctl interface Giovanni Cabiddu
2026-05-08  9:18 ` [PATCH 1/2] crypto: qat - remove unused character device and IOCTLs Giovanni Cabiddu
2026-05-08  9:18 ` [PATCH 2/2] crypto: qat - rename adf_ctl_drv.c to adf_module.c Giovanni Cabiddu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox