]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
null_blk: Zero-initialize read buffers in non-memory-backed mode
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 May 2020 04:07:37 +0000 (21:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 May 2020 15:40:29 +0000 (09:40 -0600)
commitcecbc9ce80e71a2894c7dfae6254b39cd4b8ba60
tree3e181e5cc37a5cab1123d0796820df9bdb83845f
parent854b5f01dc6a7b59f0dddd646a80b1fcd767a8db
null_blk: Zero-initialize read buffers in non-memory-backed mode

This patch suppresses an uninteresting KMSAN complaint without affecting
performance of the null_blk driver if CONFIG_KMSAN is disabled.

Reported-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Alexander Potapenko <glider@google.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Cc: Alexander Potapenko <glider@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c