]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm,oom: make oom_killer_disable() killable.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 9 Feb 2016 23:13:04 +0000 (10:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Feb 2016 23:13:04 +0000 (10:13 +1100)
commite0cd0e543d4809dc8d2733ab3291c15d0d209601
tree7e3c6ee38ff3da67f376b97d0c22866f16fd0d15
parentd7531e0a22e8832efc48b10bfe310a8b04136a78
mm,oom: make oom_killer_disable() killable.

While oom_killer_disable() is called by freeze_processes() after all user
threads except the current thread are frozen, it is possible that kernel
threads invoke the OOM killer and sends SIGKILL to the current thread due
to sharing the thawed victim's memory.  Therefore, checking for SIGKILL is
preferable than TIF_MEMDIE.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/oom_kill.c