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] [day] [month] [year] [list]
Message-ID: <176756271694.1812936.10998192391944432317.b4-ty@oracle.com>
Date: Sun,  4 Jan 2026 16:42:45 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Po-Wen Kao <powenkao@...gle.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>, hch@...radead.org,
        "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
        "open list:SCSI SUBSYSTEM" <linux-scsi@...r.kernel.org>,
        open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 1/1] scsi: core: Fix error handler encryption support

On Thu, 18 Dec 2025 03:17:23 +0000, Po-Wen Kao wrote:

> Some low-level drivers (LLD) access block layer crypto fields, such as
> rq->crypt_keyslot and rq->crypt_ctx within `struct request`, to
> configure hardware for inline encryption.
> However, SCSI Error Handling (EH) commands (e.g., TEST UNIT READY,
> START STOP UNIT) should not involve any encryption setup.
> 
> To prevent drivers from erroneously applying crypto settings during EH,
> this patch saves the original values of rq->crypt_keyslot and
> rq->crypt_ctx before an EH command is prepared via scsi_eh_prep_cmnd().
> These fields in the `struct request` are then set to NULL.
> The original values are restored in scsi_eh_restore_cmnd() after the EH
> command completes.
> 
> [...]

Applied to 6.19/scsi-fixes, thanks!

[1/1] scsi: core: Fix error handler encryption support
      https://git.kernel.org/mkp/scsi/c/9a49157deeb2

-- 
Martin K. Petersen

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ