Skip to content

crypto: qat - remove unused ioctl interface

Giovanni Cabiddu linux-crypto stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Removed additional dead code: adf_devmgr_get_dev_by_id(), adf_get_vf_real_id() and a few ADF_CFG unused macros

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: qat - remove unused character device and IOCTLsDocumentation/userspace-api/ioctl/ioctl-number.rst drivers/crypto/intel/qat/qat_common/adf_cfg.c drivers/crypto/intel/qat/qat_common/adf_cfg.h +5 more+1 -5580 replies
2/2crypto: qat - rename adf_ctl_drv.c to adf_module.cdrivers/crypto/intel/qat/qat_common/Makefile drivers/crypto/intel/qat/qat_common/adf_module.c+5 -50 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAhsan Atta
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] crypto: qat - remove unused ioctl interface

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.

Changes since v1:
- Addressed comments from Sashiko: cleaned up leftover dead code
https://sashiko.dev/#/patchset/20260508091912.206913-1-giovanni.cabiddu%40intel.com

Changes since v2:
- Removed additional dead code: adf_devmgr_get_dev_by_id(), adf_get_vf_real_id() and a few ADF_CFG unused macros

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 +-
 drivers/crypto/intel/qat/qat_common/adf_cfg.c |  10 -
 drivers/crypto/intel/qat/qat_common/adf_cfg.h |   1 -
 .../intel/qat/qat_common/adf_cfg_common.h     |  32 --
 .../intel/qat/qat_common/adf_cfg_user.h       |  38 --
 .../intel/qat/qat_common/adf_common_drv.h     |   3 -
 .../crypto/intel/qat/qat_common/adf_ctl_drv.c | 466 ------------------
 .../crypto/intel/qat/qat_common/adf_dev_mgr.c |  70 ---
 .../crypto/intel/qat/qat_common/adf_module.c  |  64 +++
 10 files changed, 65 insertions(+), 622 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: f7dd32c5179d7755de18e21d5674b08f9e5cb180

Signature · 1 line
2.54.0