commit | cddab768d13469d1e254fb8c0e1629f93c8dfaca | [log] [tgz] |
---|---|---|
author | Chris Salls <salls@cs.ucsb.edu> | Fri Apr 07 23:48:11 2017 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 12 12:41:15 2017 +0200 |
tree | 5ebc41c261be8f1b3c457a942f56484c5cbe241d | |
parent | 24317cb6b400d7fc567e4c8d1fdca587113c6423 [diff] |
mm/mempolicy.c: fix error handling in set_mempolicy and mbind. 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>