]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
block: Clear kernel memory before copying to user
authorKeith Busch <keith.busch@intel.com>
Thu, 27 Jun 2019 18:16:00 +0000 (20:16 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 2 Jul 2019 12:18:49 +0000 (14:18 +0200)
commitea531d28a2979d52be83959a6e22cb67d516b3b9
tree836b4ffb59fd0337b013446b8d542713ae87ae6c
parent35e77ed0d293f18853031c53e8e7783e5bc3703e
block: Clear kernel memory before copying to user

BugLink: http://bugs.launchpad.net/bugs/1834499
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>
(cherry picked from commit f3587d76da05f68098ddb1cb3c98cc6a9e8a402c)
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
block/bio.c