Re: [PATCH v4] scsi: ufs: fix use-after free in init error and remove paths
From: Martin K. Petersen
Date: Mon Feb 03 2025 - 22:36:01 EST
On Fri, 24 Jan 2025 15:09:00 +0000, André Draszik wrote:
> devm_blk_crypto_profile_init() registers a cleanup handler to run when
> the associated (platform-) device is being released. For UFS, the
> crypto private data and pointers are stored as part of the ufs_hba's
> data structure 'struct ufs_hba::crypto_profile'. This structure is
> allocated as part of the underlying ufshcd and therefore Scsi_host
> allocation.
>
> [...]
Applied to 6.14/scsi-fixes, thanks!
[1/1] scsi: ufs: fix use-after free in init error and remove paths
https://git.kernel.org/mkp/scsi/c/f8fb2403ddeb
--
Martin K. Petersen Oracle Linux Engineering