[PATCHv2] nvme: sanitize metadata bounce buffer for reads
Chaitanya Kulkarni
chaitanyak at nvidia.com
Tue Oct 17 01:22:31 PDT 2023
On 10/16/23 16:06, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
>
> User can request more metadata bytes than the device will write. Ensure
> kernel buffer is initialized so we are not leaking unsanitized memory on
> the completion's copy-out.
>
> Fixes: 0b7f1f26f95a51a ("nvme: use the block layer for userspace passthrough metadata")
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> ---
>
V2 has a fix for comment posted on v1, looks good.
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
-ck
More information about the Linux-nvme
mailing list