Skip to content
Snippets Groups Projects
Commit eef1c178 authored by Chris Salls's avatar Chris Salls Committed by Siqi Lin
Browse files

UPSTREAM: 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: default avatarChris Salls <salls@cs.ucsb.edu>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ef67ca9962ce88f252dff0fee1f68212a87fa366)
Bug: 37751399
Change-Id: I13d6c57c32c32747c62173fcd1fe0471c84ffb26
parent 08ccf853
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment