From: Chris Salls Date: Sat, 8 Apr 2017 06:48:11 +0000 (-0700) Subject: mm/mempolicy.c: fix error handling in set_mempolicy and mbind. X-Git-Tag: v3.2.89~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f3b4a9db31af279e793229177b63ea201e24629;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed