Revision 855b018325737f7691f9b7d86339df40aa4e47c3 authored by Michal Hocko on 25 March 2016, 21:20:36 UTC, committed by Linus Torvalds on 25 March 2016, 23:37:42 UTC
Tetsuo has reported that oom_kill_allocating_task=1 will cause oom_reaper_list corruption because oom_kill_process doesn't follow standard OOM exclusion (aka ignores TIF_MEMDIE) and allows to enqueue the same task multiple times - e.g. by sacrificing the same child multiple times. This patch fixes the issue by introducing a new MMF_OOM_KILLED mm flag which is set in oom_kill_process atomically and oom reaper is disabled if the flag was already set. Signed-off-by: Michal Hocko <mhocko@suse.com> Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: David Rientjes <rientjes@google.com> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 0304926
File | Mode | Size |
---|---|---|
kasan | ||
Kconfig | -rw-r--r-- | 22.4 KB |
Kconfig.debug | -rw-r--r-- | 3.7 KB |
Makefile | -rw-r--r-- | 3.3 KB |
backing-dev.c | -rw-r--r-- | 26.4 KB |
balloon_compaction.c | -rw-r--r-- | 6.6 KB |
bootmem.c | -rw-r--r-- | 21.0 KB |
cleancache.c | -rw-r--r-- | 9.9 KB |
cma.c | -rw-r--r-- | 12.1 KB |
cma.h | -rw-r--r-- | 515 bytes |
cma_debug.c | -rw-r--r-- | 4.4 KB |
compaction.c | -rw-r--r-- | 52.8 KB |
debug.c | -rw-r--r-- | 4.0 KB |
debug_page_ref.c | -rw-r--r-- | 1.3 KB |
dmapool.c | -rw-r--r-- | 13.8 KB |
early_ioremap.c | -rw-r--r-- | 6.2 KB |
fadvise.c | -rw-r--r-- | 3.7 KB |
failslab.c | -rw-r--r-- | 1.4 KB |
filemap.c | -rw-r--r-- | 75.7 KB |
frame_vector.c | -rw-r--r-- | 6.2 KB |
frontswap.c | -rw-r--r-- | 14.3 KB |
gup.c | -rw-r--r-- | 43.9 KB |
highmem.c | -rw-r--r-- | 11.8 KB |
huge_memory.c | -rw-r--r-- | 90.5 KB |
hugetlb.c | -rw-r--r-- | 117.9 KB |
hugetlb_cgroup.c | -rw-r--r-- | 10.5 KB |
hwpoison-inject.c | -rw-r--r-- | 3.2 KB |
init-mm.c | -rw-r--r-- | 619 bytes |
internal.h | -rw-r--r-- | 15.0 KB |
interval_tree.c | -rw-r--r-- | 3.1 KB |
kmemcheck.c | -rw-r--r-- | 2.9 KB |
kmemleak-test.c | -rw-r--r-- | 3.2 KB |
kmemleak.c | -rw-r--r-- | 54.5 KB |
ksm.c | -rw-r--r-- | 63.1 KB |
list_lru.c | -rw-r--r-- | 12.6 KB |
maccess.c | -rw-r--r-- | 3.1 KB |
madvise.c | -rw-r--r-- | 19.4 KB |
memblock.c | -rw-r--r-- | 48.5 KB |
memcontrol.c | -rw-r--r-- | 150.9 KB |
memory-failure.c | -rw-r--r-- | 48.7 KB |
memory.c | -rw-r--r-- | 106.8 KB |
memory_hotplug.c | -rw-r--r-- | 53.7 KB |
mempolicy.c | -rw-r--r-- | 71.2 KB |
mempool.c | -rw-r--r-- | 14.3 KB |
memtest.c | -rw-r--r-- | 2.7 KB |
migrate.c | -rw-r--r-- | 48.0 KB |
mincore.c | -rw-r--r-- | 6.7 KB |
mlock.c | -rw-r--r-- | 21.0 KB |
mm_init.c | -rw-r--r-- | 4.8 KB |
mmap.c | -rw-r--r-- | 88.5 KB |
mmu_context.c | -rw-r--r-- | 1.3 KB |
mmu_notifier.c | -rw-r--r-- | 11.7 KB |
mmzone.c | -rw-r--r-- | 2.4 KB |
mprotect.c | -rw-r--r-- | 11.2 KB |
mremap.c | -rw-r--r-- | 15.1 KB |
msync.c | -rw-r--r-- | 2.6 KB |
nobootmem.c | -rw-r--r-- | 11.1 KB |
nommu.c | -rw-r--r-- | 49.4 KB |
oom_kill.c | -rw-r--r-- | 25.3 KB |
page-writeback.c | -rw-r--r-- | 83.6 KB |
page_alloc.c | -rw-r--r-- | 197.1 KB |
page_counter.c | -rw-r--r-- | 4.8 KB |
page_ext.c | -rw-r--r-- | 10.7 KB |
page_idle.c | -rw-r--r-- | 5.4 KB |
page_io.c | -rw-r--r-- | 9.2 KB |
page_isolation.c | -rw-r--r-- | 8.4 KB |
page_owner.c | -rw-r--r-- | 8.9 KB |
page_poison.c | -rw-r--r-- | 3.5 KB |
pagewalk.c | -rw-r--r-- | 7.5 KB |
percpu-km.c | -rw-r--r-- | 2.8 KB |
percpu-vm.c | -rw-r--r-- | 10.0 KB |
percpu.c | -rw-r--r-- | 65.8 KB |
pgtable-generic.c | -rw-r--r-- | 4.8 KB |
process_vm_access.c | -rw-r--r-- | 9.9 KB |
quicklist.c | -rw-r--r-- | 2.4 KB |
readahead.c | -rw-r--r-- | 15.3 KB |
rmap.c | -rw-r--r-- | 50.6 KB |
shmem.c | -rw-r--r-- | 90.8 KB |
slab.c | -rw-r--r-- | 106.7 KB |
slab.h | -rw-r--r-- | 12.6 KB |
slab_common.c | -rw-r--r-- | 30.0 KB |
slob.c | -rw-r--r-- | 16.0 KB |
slub.c | -rw-r--r-- | 133.8 KB |
sparse-vmemmap.c | -rw-r--r-- | 7.8 KB |
sparse.c | -rw-r--r-- | 20.8 KB |
swap.c | -rw-r--r-- | 26.2 KB |
swap_cgroup.c | -rw-r--r-- | 4.6 KB |
swap_state.c | -rw-r--r-- | 13.1 KB |
swapfile.c | -rw-r--r-- | 77.5 KB |
truncate.c | -rw-r--r-- | 23.8 KB |
userfaultfd.c | -rw-r--r-- | 7.2 KB |
util.c | -rw-r--r-- | 15.0 KB |
vmacache.c | -rw-r--r-- | 3.1 KB |
vmalloc.c | -rw-r--r-- | 68.0 KB |
vmpressure.c | -rw-r--r-- | 12.5 KB |
vmscan.c | -rw-r--r-- | 110.1 KB |
vmstat.c | -rw-r--r-- | 42.3 KB |
workingset.c | -rw-r--r-- | 17.0 KB |
zbud.c | -rw-r--r-- | 18.2 KB |
zpool.c | -rw-r--r-- | 10.0 KB |
zsmalloc.c | -rw-r--r-- | 48.4 KB |
zswap.c | -rw-r--r-- | 32.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...