This series provides (1) Mitigation and a fix for CVE-2016-10723. (2) A mitigation for needlessly selecting next OOM victim reported by David Rientjes and rejected by Michal Hocko. (3) A preparation for handling many concurrent OOM victims which could become real by introducing memcg-aware OOM killer. Tetsuo Handa (7): mm,oom: Don't call schedule_timeout_killable() with oom_lock held. mm,oom: Check pending victims earlier in out_of_memory(). mm,oom: Fix unnecessary killing of additional processes. mm,page_alloc: Make oom_reserves_allowed() even. mm,oom: Bring OOM notifier to outside of oom_lock. mm,oom: Make oom_lock static variable. mm,oom: Do not sleep with oom_lock held. Michal Hocko (1): mm,page_alloc: Move the short sleep to should_reclaim_retry(). drivers/tty/sysrq.c | 2 - include/linux/memcontrol.h | 9 +- include/linux/oom.h | 6 +- include/linux/sched.h | 7 +- include/trace/events/oom.h | 64 ------- kernel/fork.c | 2 + mm/memcontrol.c | 24 +-- mm/mmap.c | 17 +- mm/oom_kill.c | 439 +++++++++++++++++++++------------------------ mm/page_alloc.c | 134 ++++++-------- 10 files changed, 287 insertions(+), 417 deletions(-) -- 1.8.3.1