lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251127070704.2935390-1-zheng.gong@samsung.com>
Date: Thu, 27 Nov 2025 15:06:57 +0800
From: "zheng.gong" <zheng.gong@...sung.com>
To: linux-scsi@...r.kernel.org
Cc: avri.altman@....com, bvanassche@....org, quic_cang@...cinc.com,
	alim.akhtar@...sung.com, martin.petersen@...cle.com, ebiggers@...nel.org,
	linux-kernel@...r.kernel.org, "zheng.gong" <zheng.gong@...sung.com>
Subject: [PATCH v2 0/2] scsi: ufs: Add crypto_keyslot_remap support

This patch series adds support for platform-specific crypto keyslot remapping
in the UFS host driver, enabling secure inline encryption in multi-domain
environments (e.g., VMs).

The first patch introduces a new variant operation:
  ufs_hba_variant_ops::crypto_keyslot_remap
which allows platforms to adjust the keyslot index at request submission time.

The second patch adds a test module (CONFIG_SCSI_UFS_CRYPTO_TEST) to
demonstrate how the new hook is used — by applying a fixed offset to simulate
domain-specific keyslot layout. This patch series is in response to feedback from Eric on the v1 submission,
where he noted that the new callback needed to be used to make sense. Just a demonstration
of the new callback is included in this patch series.

Apologies for the delay in resubmitting — we have now added a test module to demonstrate
the usage of crypto_keyslot_remap in multi-domain environments.

Thank you for the review.

Changes since v1:
  - Added a test module to demonstrate usage of crypto_keyslot_remap
  - Fixed platform_driver.remove type (void, not int)
  - Improved commit message clarity

zheng.gong (2):
  scsi: ufs: crypto: Add ufs_hba_variant_ops::crypto_keyslot_remap
  scsi: ufs: Add crypto keyslot remapping test module

 drivers/ufs/core/Kconfig              | 17 +++++
 drivers/ufs/core/Makefile             |  1 +
 drivers/ufs/core/ufshcd-crypto-test.c | 90 +++++++++++++++++++++++++++
 drivers/ufs/core/ufshcd-crypto.h      | 10 ++-
 drivers/ufs/core/ufshcd.c             |  9 +--
 include/ufs/ufshcd.h                  |  6 ++
 6 files changed, 127 insertions(+), 6 deletions(-)
 create mode 100644 drivers/ufs/core/ufshcd-crypto-test.c

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ