]> git.baikalelectronics.ru Git - 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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Apr 2017 17:57:55 +0000 (10:57 -0700)
commit75c459ebeb5d2f8efddee010508f70ff2d8d47b2
treec293d0826ee582a64c3af690ec92fb2c10a4f127
parent4338da9c1ce54acf01c18df9b2336db12652bc2f
mm/mempolicy.c: fix error handling in set_mempolicy and mbind.

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>
mm/mempolicy.c