]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mm/mempolicy.c: fix error handling in set_mempolicy and mbind.
authorChris Salls <salls@cs.ucsb.edu>
Sat, 8 Apr 2017 06:48:11 +0000 (23:48 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:12:30 +0000 (10:12 +0200)
commit1e78d67ff9c634d46ad2df06039627f231861849
tree6502450f1a02c93c64ee1a70d9b783a5fd447766
parent668863bd314f341f1a822239aa4fbaa02a6a0167
mm/mempolicy.c: fix error handling in set_mempolicy and mbind.

BugLink: http://bugs.launchpad.net/bugs/1682130
commit cf01fb9985e8deb25ccf0ea54d916b8871ae0e62 upstream.

In the case that compat_get_bitmap fails we do not want to copy the
bitmap to the user as it will contain uninitialized stack data and leak
sensitive data.

Signed-off-by: Chris Salls <salls@cs.ucsb.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
mm/mempolicy.c