]> git.baikalelectronics.ru Git - kernel.git/commit
block: Clear kernel memory before copying to user
authorKeith Busch <keith.busch@intel.com>
Wed, 7 Nov 2018 14:37:45 +0000 (07:37 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 22:41:31 +0000 (15:41 -0700)
commit2725b266cfcf309b7e331eb2faf1e0489bdf3752
tree8b63b149df907b539e68069d20bcfcfd1480a06d
parentc09ba2846936d2501f7f2379a27ec3df1d4a0a8f
block: Clear kernel memory before copying to user

If the kernel allocates a bounce buffer for user read data, this memory
needs to be cleared before copying it to the user, otherwise it may leak
kernel memory to user space.

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