diff --git a/mm/oom_kill.c b/mm/oom_kill.c index f1b810ddf232..af30643fdc08 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -1131,6 +1131,9 @@ void pagefault_out_of_memory(void) if (mem_cgroup_oom_synchronize(true)) return; + if (fatal_signal_pending(current)) + return; + if (!mutex_trylock(&oom_lock)) return; out_of_memory(&oc);