diff options
author | Ethan Solomita | 2007-07-16 08:38:16 +0200 |
---|---|---|
committer | Linus Torvalds | 2007-07-16 18:05:36 +0200 |
commit | 462e00cc7151ed91fba688594436c453c80efb5d (patch) | |
tree | bf648899ba65f9eb000e9c8163a61c1cb1be9bfe /mm/mempolicy.c | |
parent | numa: mempolicy: dynamic interleave map for system init (diff) | |
download | kernel-qcow2-linux-462e00cc7151ed91fba688594436c453c80efb5d.tar.gz kernel-qcow2-linux-462e00cc7151ed91fba688594436c453c80efb5d.tar.xz kernel-qcow2-linux-462e00cc7151ed91fba688594436c453c80efb5d.zip |
oom: stop allocating user memory if TIF_MEMDIE is set
get_user_pages() can try to allocate a nearly unlimited amount of memory on
behalf of a user process, even if that process has been OOM killed. The
OOM kill occurs upon return to user space via a SIGKILL, but
get_user_pages() will try allocate all its memory before returning. Change
get_user_pages() to check for TIF_MEMDIE, and if set then return
immediately.
Signed-off-by: Ethan Solomita <solo@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions