Re: [PATCH v5 0/3] RDMA/srpt: Fix command initialization and read buffer disclosure
From: Leon Romanovsky
Date: Mon Nov 16 2026 - 07:32:49 EST
On Fri, 13 Nov 2026 16:38:39 +0800, Yong Liu wrote:
> Thanks for the review and suggestions. This revision separates the BUSY
> initialization fix and the target core control-read buffer fix from the
> SRPT descriptor validation and read-tail clearing fix. Together they
> address the NULL pointer dereference on descriptor parsing errors and
> uninitialized target kernel memory disclosure to an initiator.
>
> Changes in v5:
> - Move BUSY command initialization into patch 1 and explain why the
> target_init_cmd() return value is ignored.
> - Clear all control-read SG entries in target core in patch 2.
> - In patch 3, log inconsistent descriptor lengths and zero the read tail
> with one sg_zero_buffer() call through the command's chained SG list.
> Remove the SRPT-specific DMA synchronization.
>
> [...]
Applied, thanks!
[1/3] RDMA/srpt: Initialize commands before returning BUSY
https://git.kernel.org/rdma/rdma/c/fcce7700cc48e7
[2/3] scsi: target: Clear all control read scatterlist entries
https://git.kernel.org/rdma/rdma/c/1ecb732b4524d3
[3/3] RDMA/srpt: Prevent uninitialized read buffer disclosure
https://git.kernel.org/rdma/rdma/c/317128ea4f21c9
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>