Chen Jie
a2b829d959
mm/oom_kill.c: avoid attempting to kill init sharing same memory
...
It's possible that an oom killed victim shares an ->mm with the init
process and thus oom_kill_process() would end up trying to kill init as
well.
This has been shown in practice:
Out of memory: Kill process 9134 (init) score 3 or sacrifice child
Killed process 9134 (init) total-vm:1868kB, anon-rss:84kB, file-rss:572kB
Kill process 1 (init) sharing same memory
...
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
And this will result in a kernel panic.
If a process is forked by init and selected for oom kill while still
sharing init_mm, then it's likely this system is in a recoverable state.
However, it's better not to try to kill init and allow the machine to
panic due to unkillable processes.
[[email protected] : rewrote changelog]
[[email protected] : fix inverted test, per Ben]
Signed-off-by: Chen Jie <[email protected] >
Signed-off-by: David Rientjes <[email protected] >
Acked-by: Michal Hocko <[email protected] >
Acked-by: Hillf Danton <[email protected] >
Cc: Ben Hutchings <[email protected] >
Cc: Li Zefan <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2015-12-12 10:15:34 -08:00
..
kasan
kasan: fix kmemleak false-positive in kasan_module_alloc()
2015-11-20 16:17:32 -08:00
backing-dev.c
mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress
2015-12-12 10:15:34 -08:00
balloon_compaction.c
mm: page migration trylock newpage at same level as oldpage
2015-11-05 19:34:48 -08:00
bootmem.c
cleancache.c
cma.c
mm/cma.c: suppress warning
2015-11-05 19:34:48 -08:00
cma.h
cma_debug.c
compaction.c
mm, compaction: distinguish contended status in tracepoints
2015-11-05 19:34:48 -08:00
debug-pagealloc.c
debug.c
mm: make compound_head() robust
2015-11-06 17:50:42 -08:00
dmapool.c
mm, page_alloc: distinguish between being unable to sleep, unwilling to sleep and avoiding waking kswapd
2015-11-06 17:50:42 -08:00
early_ioremap.c
fadvise.c
failslab.c
mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM
2015-11-06 17:50:42 -08:00
filemap.c
mm, fs: introduce mapping_gfp_constraint()
2015-11-06 17:50:42 -08:00
frame_vector.c
frontswap.c
gup.c
mm: introduce VM_LOCKONFAULT
2015-11-05 19:34:48 -08:00
highmem.c
huge_memory.c
mm: loosen MADV_NOHUGEPAGE to enable Qemu postcopy on s390
2015-11-20 16:17:32 -08:00
hugetlb.c
mm/hugetlb.c: fix resv map memory leak for placeholder entries
2015-12-12 10:15:34 -08:00
hugetlb_cgroup.c
mm: make compound_head() robust
2015-11-06 17:50:42 -08:00
hwpoison-inject.c
init-mm.c
internal.h
mm: use 'unsigned int' for page order
2015-11-06 17:50:42 -08:00
interval_tree.c
Kconfig
mm: make compound_head() robust
2015-11-06 17:50:42 -08:00
Kconfig.debug
kmemcheck.c
kmemleak-test.c
kmemleak.c
ksm.c
ksm: unstable_tree_search_insert error checking cleanup
2015-11-05 19:34:48 -08:00
list_lru.c
memcg: simplify and inline __mem_cgroup_from_kmem
2015-11-05 19:34:48 -08:00
maccess.c
mm/maccess.c: actually return -EFAULT from strncpy_from_unsafe
2015-11-05 19:34:48 -08:00
madvise.c
Makefile
memblock.c
memcontrol.c
mm: fix kerneldoc on mem_cgroup_replace_page
2015-12-12 10:15:34 -08:00
memory-failure.c
mm: make compound_head() robust
2015-11-06 17:50:42 -08:00
memory.c
mm, dax: fix DAX deadlocks (COW fault)
2015-11-18 16:54:36 -08:00
memory_hotplug.c
mm/page_alloc: remove unused parameter in init_currently_empty_zone()
2015-11-05 19:34:48 -08:00
mempolicy.c
mempool.c
mm, page_alloc: distinguish between being unable to sleep, unwilling to sleep and avoiding waking kswapd
2015-11-06 17:50:42 -08:00
memtest.c
migrate.c
mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM
2015-11-06 17:50:42 -08:00
mincore.c
mlock.c
mm: mlock: add mlock flags to enable VM_LOCKONFAULT usage
2015-11-05 19:34:48 -08:00
mm_init.c
mmap.c
mm: introduce VM_LOCKONFAULT
2015-11-05 19:34:48 -08:00
mmu_context.c
mmu_notifier.c
mmzone.c
mprotect.c
mremap.c
msync.c
nobootmem.c
nommu.c
mm/nommu.c: drop unlikely inside BUG_ON()
2015-11-05 19:34:48 -08:00
oom_kill.c
mm/oom_kill.c: avoid attempting to kill init sharing same memory
2015-12-12 10:15:34 -08:00
page-writeback.c
treewide: Remove old email address
2015-11-23 09:44:58 +01:00
page_alloc.c
mm: fix swapped Movable and Reclaimable in /proc/pagetypeinfo
2015-12-12 10:15:34 -08:00
page_counter.c
mm: page_counter: let page_counter_try_charge() return bool
2015-11-05 19:34:48 -08:00
page_ext.c
page_idle.c
page_io.c
page_isolation.c
page_owner.c
pagewalk.c
percpu-km.c
percpu-vm.c
percpu.c
pgtable-generic.c
process_vm_access.c
quicklist.c
readahead.c
mm, fs: introduce mapping_gfp_constraint()
2015-11-06 17:50:42 -08:00
rmap.c
mm: page migration use migration entry for swapcache too
2015-11-05 19:34:48 -08:00
shmem.c
tmpfs: fix shmem_evict_inode() warnings on i_blocks
2015-12-12 10:15:34 -08:00
slab.c
slab/slub: adjust kmem_cache_alloc_bulk API
2015-11-22 11:58:44 -08:00
slab.h
slab/slub: adjust kmem_cache_alloc_bulk API
2015-11-22 11:58:44 -08:00
slab_common.c
slab/slub: adjust kmem_cache_alloc_bulk API
2015-11-22 11:58:44 -08:00
slob.c
slab/slub: adjust kmem_cache_alloc_bulk API
2015-11-22 11:58:44 -08:00
slub.c
slab/slub: adjust kmem_cache_alloc_bulk API
2015-11-22 11:58:44 -08:00
sparse-vmemmap.c
sparse.c
swap.c
mm: make compound_head() robust
2015-11-06 17:50:42 -08:00
swap_cgroup.c
swap_state.c
swapfile.c
truncate.c
userfaultfd.c
util.c
vmacache.c
mm/vmacache: inline vmacache_valid_mm()
2015-11-05 19:34:48 -08:00
vmalloc.c
mm: vmalloc: don't remove inexistent guard hole in remove_vm_area()
2015-11-20 16:17:32 -08:00
vmpressure.c
vmscan.c
mm, page_alloc: distinguish between being unable to sleep, unwilling to sleep and avoiding waking kswapd
2015-11-06 17:50:42 -08:00
vmstat.c
mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress
2015-12-12 10:15:34 -08:00
workingset.c
zbud.c
mm: zsmalloc: constify struct zs_pool name
2015-11-06 17:50:42 -08:00
zpool.c
mm: zsmalloc: constify struct zs_pool name
2015-11-06 17:50:42 -08:00
zsmalloc.c
zsmalloc: use page->private instead of page->first_page
2015-11-06 17:50:42 -08:00
zswap.c
zswap: use charp for zswap param strings
2015-11-06 17:50:42 -08:00