From: Jian Zhang zhangjian210@huawei.com
[IMPACT] : add oom notifier call for oom panic note: update glibc
Signed-off-by: z00512904 z00512904@huawei.com --- mm/oom_kill.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index dd2b4f890403..c1f82c7623cc 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -1064,6 +1064,7 @@ static void check_panic_on_oom(struct oom_control *oc) if (is_sysrq_oom(oc)) return; dump_header(oc, NULL); + oom_type_notifier_call(0, oc); panic("Out of memory: %s panic_on_oom is enabled\n", sysctl_panic_on_oom == 2 ? "compulsory" : "system-wide"); }