The patch titled Subject: mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix has been added to the -mm tree. Its filename is mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Johannes Weiner <hannes@xxxxxxxxxxx> Subject: mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix "array subscript is above array bounds" Link: http://lkml.kernel.org/r/20180406155441.GA20806@xxxxxxxxxxx Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN mm/memcontrol.c~mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix mm/memcontrol.c --- a/mm/memcontrol.c~mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix +++ a/mm/memcontrol.c @@ -5199,8 +5199,7 @@ static int memory_events_show(struct seq atomic_long_read(&memcg->memory_events[MEMCG_MAX])); seq_printf(m, "oom %lu\n", atomic_long_read(&memcg->memory_events[MEMCG_OOM])); - seq_printf(m, "oom_kill %lu\n", - atomic_long_read(&memcg->memory_events[OOM_KILL])); + seq_printf(m, "oom_kill %lu\n", memcg_sum_events(memcg, OOM_KILL)); return 0; } _ Patches currently in -mm which might be from hannes@xxxxxxxxxxx are mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers.patch mm-memcg-make-sure-memoryevents-is-uptodate-when-waking-pollers-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html