[PATCH 5.4.y 0/1] missing upstream commit 9066e5c causing: kernel panic: System is deadlocked on memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Upstream commit 9066e5c is missing from 5.4.y causing
kernel panic: System is deadlocked on memory
during 5.4.141-rc1 Syzkaller reproducer testing.

9066e5c 2020-08-11 Yafang Shao mm, oom: make the calculation of oom badness more accurate

Out of memory and no killable processes...
Kernel panic - not syncing: System is deadlocked on memory
CPU: 0 PID: 1 Comm: systemd Not tainted 5.4.141-rc1-syzk #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2.el7 04/01/2014
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xd4/0x119 lib/dump_stack.c:118
 panic+0x28f/0x6ad kernel/panic.c:221
 out_of_memory mm/oom_kill.c:1110 [inline]
 out_of_memory.cold.36+0xf4/0x174 mm/oom_kill.c:1045
 __alloc_pages_may_oom mm/page_alloc.c:3879 [inline]
 __alloc_pages_slowpath+0x1b30/0x2240 mm/page_alloc.c:4623
 __alloc_pages_nodemask+0x515/0x760 mm/page_alloc.c:4793
 alloc_pages_vma+0xe2/0x560 mm/mempolicy.c:2155
 __read_swap_cache_async+0x40e/0x770 mm/swap_state.c:399
 read_swap_cache_async+0x96/0x100 mm/swap_state.c:454
 swap_cluster_readahead+0x448/0x860 mm/swap_state.c:597
 swapin_readahead+0xbf/0xd40 mm/swap_state.c:789
 do_swap_page+0x812/0x1dc0 mm/memory.c:2937
 handle_pte_fault mm/memory.c:4003 [inline]
 __handle_mm_fault+0x17ad/0x24b0 mm/memory.c:4123
 handle_mm_fault+0x1f0/0x700 mm/memory.c:4160
 do_user_addr_fault arch/x86/mm/fault.c:1463 [inline]
 __do_page_fault+0x59e/0xd20 arch/x86/mm/fault.c:1528
 do_page_fault+0x52/0x390 arch/x86/mm/fault.c:1552
 do_async_page_fault+0x64/0xf0 arch/x86/kernel/kvm.c:253
 async_page_fault+0x3e/0x50 arch/x86/entry/entry_64.S:1206
RIP: 0010:ep_send_events_proc+0x2db/0xad0 fs/eventpoll.c:1751
Code: ff e8 79 f5 ff ff 31 ff 41 89 c7 89 c6 e8 6d b1 a3 ff 45 85 ff 0f 84 08 01 00 00 e8 4f b0 a3 ff 66 66 90 48 8b 85 50 ff ff ff <44> 89 38 e8 3d b0 a3 ff 66 66 90 48 8d 7b 74 48 89 f8 48 89 fe 48
RSP: 0018:ffff8881079e7ab0 EFLAGS: 00010293
RAX: 00007ffe9db639a0 RBX: ffff8880b490e180 RCX: ffffffff81d19d23
RDX: 0000000000000000 RSI: ffffffff81d19d31 RDI: 0000000000000005
RBP: ffff8881079e7bb0 R08: ffff8881079d8000 R09: ffffed1020f3cf2d
R10: ffffed1020f3cf2d R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880b490e198 R14: ffff8881079e7c10 R15: 0000000000000001
 ep_scan_ready_list.constprop.20+0x265/0x920 fs/eventpoll.c:702
 ep_send_events fs/eventpoll.c:1791 [inline]
 ep_poll+0x166/0xd70 fs/eventpoll.c:1939
 do_epoll_wait+0x192/0x1d0 fs/eventpoll.c:2291
 __do_sys_epoll_wait fs/eventpoll.c:2301 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2298 [inline]
 __x64_sys_epoll_wait+0x9c/0x100 fs/eventpoll.c:2298
 do_syscall_64+0xe6/0x4d0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f4f31aad543
Code: Bad RIP value.
RSP: 002b:00007ffe9db63990 EFLAGS: 00000293 ORIG_RAX: 00000000000000e8
RAX: ffffffffffffffda RBX: 00007ffe9db639a0 RCX: 00007f4f31aad543
RDX: 000000000000002a RSI: 00007ffe9db639a0 RDI: 0000000000000004
RBP: 00007ffe9db63c90 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000293 R12: 0000000000000001
R13: ffffffffffffffff R14: 0000000000007500 R15: 000055da3b5769c0


Yafang Shao (1):
  mm, oom: make the calculation of oom badness more accurate

 fs/proc/base.c      | 11 ++++++++++-
 include/linux/oom.h |  4 ++--
 mm/oom_kill.c       | 22 ++++++++++------------
 3 files changed, 22 insertions(+), 15 deletions(-)

-- 
1.8.3.1




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux