[PATCH] nvmet: always initialize cqe.result
Keith Busch
kbusch at kernel.org
Wed Jun 12 10:56:02 PDT 2024
On Wed, Jun 12, 2024 at 04:11:59PM +0200, Daniel Wagner wrote:
> The spec doesn't mandate that the first two double words (aka results)
> for the command queue entry need to be set to 0 when they are not
> used (not specified). Though, the target implemention returns 0 for TCP
> and FC but not for RDMA.
>
> Let's make RDMA behave the same and thus explicitly initializing the
> result field. This prevents leaking any data from the stack.
Thanks, applied to nvme-6.10.
More information about the Linux-nvme
mailing list