Re: [PATCH v6 0/3] rpmb: Fix request serialisation and teardown races
From: Martin K. Petersen (Oracle)
Date: Tue Nov 17 2026 - 23:49:58 EST
On Thu, 12 Nov 2026 08:41:09 +0800, Stanley Jhu wrote:
> Jens, Martin,
>
> Patch 1/3 serializes requests and provider unregistration in
> drivers/misc/rpmb-core.c. Patches 2/3 and 3/3 fix UFS RPMB device
> lifetime and drop the unregistered bus in drivers/ufs/core/ufs-rpmb.c so
> regions register again after commit 36f35b8df697 ("driver core: reject
> devices with unregistered buses").
>
> [...]
Applied to 7.4/scsi-fixes, thanks!
[1/3] rpmb: core: Guard frame requests and teardown with mutex
https://git.kernel.org/mkp/scsi/c/e0696bf65006
[2/3] scsi: ufs: rpmb: Decouple device lifecycle from devres to avoid UAF
https://git.kernel.org/mkp/scsi/c/7bc9b854cd68
[3/3] scsi: ufs: rpmb: Drop the unregistered ufs_rpmb bus
https://git.kernel.org/mkp/scsi/c/b1de2bd5a4d6
--
Martin K. Petersen