[PATCH 05/10] mm, oom: thaw tasks sharing the mm with the oom victim
From: Michal Hocko
Date: Wed Dec 02 2026 - 04:55:07 EST
From: Michal Hocko <mhocko@xxxxxxxx>
If an OOM victim shares its mm with another process, a global OOM can
panic the kernel if no other process is killable. Otherwise it can
needlessly kill further processes. Both need a victim with much memory
that the OOM reaper cannot free, such as page tables. They can happen if
the other process is frozen by the cgroup v1 freezer.
Thaw tasks that are killed because they are sharing mm with the oom
victim to address that.
Reported-by: Chris Mason <mason@xxxxxxxxxx>
Signed-off-by: Michal Hocko <mhocko@xxxxxxxx>
---
mm/oom_kill.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 7c97f788501d..6dc9424e6a05 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -990,6 +990,7 @@ static void __oom_kill_process(struct task_struct *victim, const char *message)
if (unlikely(p->flags & PF_KTHREAD))
continue;
do_send_sig_info(SIGKILL, SEND_SIG_PRIV, p, PIDTYPE_TGID);
+ thaw_process(p);
}
rcu_read_unlock();
--
2.56.1