Re: [PATCH v15 1/2] Reorganize the oom report in dump_header

From: Michal Hocko
Date: Thu Nov 01 2018 - 06:30:55 EST


On Thu 01-11-18 18:09:39, çèé wrote:
> Hi Michal
> The null pointer is possible when calling the dump_header, this bug was
> detected by LKP. Below is the context 3 months ago.

Yeah I remember it was 0day report but I coundn't find it in my email
archive. Do you happen to have a message-id?

Anyway
if (__ratelimit(&oom_rs))
dump_header(oc, p);
+ if (oc)
+ dump_oom_summary(oc, victim);

Clearly cannot solve any NULL ptr because oc is never NULL unless I am
missing something terribly.
--
Michal Hocko
SUSE Labs