diff options
author | Keith Busch <[email protected]> | 2023-10-16 13:12:47 -0700 |
---|---|---|
committer | Keith Busch <[email protected]> | 2023-10-18 14:08:39 -0700 |
commit | 2b32c76e2b0154b98b9322ae7546b8156cd703e6 (patch) | |
tree | 0cb8c544784658cd755446b307fb737ea21609fb /lib/test_fortify/write_overflow-strncpy.c | |
parent | 4ae55a7dce04989f289d5c5c8c8e5c37adc36c71 (diff) |
nvme: sanitize metadata bounce buffer for reads
User can request more metadata bytes than the device will write. Ensure
kernel buffer is initialized so we're not leaking unsanitized memory on
the copy-out.
Fixes: 0b7f1f26f95a51a ("nvme: use the block layer for userspace passthrough metadata")
Reviewed-by: Jens Axboe <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Kanchan Joshi <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions