]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block/bio: Do not zero user pages
authorKeith Busch <keith.busch@intel.com>
Mon, 10 Dec 2018 15:44:42 +0000 (08:44 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Dec 2018 20:37:20 +0000 (13:37 -0700)
commitf55adad601c6a97c8c9628195453e0fb23b4a0ae
treef6a5d0dab3a284d07ef41707c472ced428da94d7
parent8b878ee247ef2691bd69e1bc3df5ae93738ea028
block/bio: Do not zero user pages

We don't need to zero fill the bio if not using kernel allocated pages.

Fixes: f3587d76da05 ("block: Clear kernel memory before copying to user") # v4.20-rc2
Reported-by: Todd Aiken <taiken@mvtech.ca>
Cc: Laurence Oberman <loberman@redhat.com>
Cc: stable@vger.kernel.org
Cc: Bart Van Assche <bvanassche@acm.org>
Tested-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c