]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBrian Maly <brian.maly@oracle.com>
Tue, 26 Jun 2018 19:13:08 +0000 (15:13 -0400)
commitb2551e3b2af8f3daea2b308e53de5278f65863a9
tree60ad05c9e9244e9be0ed76adfebfe3cf614b27d4
parentef0a8850b5f759f8bafb1608f108c665131132e9
mm/mempolicy.c: fix error handling in set_mempolicy and mbind.

Orabug: 28242475
CVE: CVE-2017-7616

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>
(cherry picked from commit cf01fb9985e8deb25ccf0ea54d916b8871ae0e62)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
mm/mempolicy.c