syzbot


kernel panic: System is deadlocked on memory (2)

Status: upstream: reported on 2024/08/12 10:54
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+c61d6962d0b7e698439e@syzkaller.appspotmail.com
First crash: 157d, last: 9d23h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel panic: System is deadlocked on memory (2) 0 (1) 2024/08/12 10:54
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: System is deadlocked on memory mm C done 43 1615d 1613d 15/28 fixed on 2020/11/16 12:12

Sample crash report:
task_struct             3588KB       4594KB
cred                     146KB        348KB
anon_vma_chain           216KB        291KB
anon_vma                 235KB        390KB
pid                      159KB        375KB
Acpi-Operand             271KB        380KB
Acpi-ParseExt             63KB         86KB
Acpi-Parse                67KB        106KB
Acpi-State                90KB        126KB
Acpi-Namespace            52KB         52KB
numa_policy               15KB         15KB
perf_event                30KB         30KB
trace_event_file         528KB        528KB
ftrace_event_field        972KB        972KB
pool_workqueue          1896KB       1952KB
maple_node               479KB       1192KB
task_group                46KB         46KB
mm_struct                338KB        475KB
vmap_area                298KB        859KB
debug_objects_cache       1772KB       2211KB
page->ptl                 82KB        118KB
kmalloc-cg-8k           3696KB       3872KB
kmalloc-cg-4k          11328KB      12896KB
kmalloc-cg-2k           8148KB       9312KB
kmalloc-cg-1k           1772KB       2208KB
kmalloc-cg-512           748KB       1296KB
kmalloc-cg-256           297KB        320KB
kmalloc-cg-128           226KB        248KB
kmalloc-cg-64             81KB         84KB
kmalloc-cg-32             52KB         80KB
kmalloc-cg-16             39KB        104KB
kmalloc-cg-8              16KB         16KB
kmalloc-cg-192           163KB        180KB
kmalloc-cg-96             36KB         36KB
kmalloc-8k              4976KB       5504KB
kmalloc-4k             42584KB      42656KB
kmalloc-2k             10732KB      12512KB
kmalloc-1k              8166KB      10112KB
kmalloc-512             6920KB       8000KB
kmalloc-256             8898KB       8904KB
kmalloc-128              894KB       1092KB
kmalloc-64              2904KB       4384KB
kmalloc-32              1523KB       1788KB
kmalloc-16               476KB        504KB
kmalloc-8                393KB        460KB
kmalloc-192             1508KB       1672KB
kmalloc-96              1076KB       1328KB
kmem_cache_node          225KB        228KB
kmem_cache               195KB        195KB
Out of memory and no killable processes...
Kernel panic - not syncing: System is deadlocked on memory
CPU: 3 UID: 0 PID: 1 Comm: init Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x3d/0x1f0 lib/dump_stack.c:120
 panic+0x71d/0x800 kernel/panic.c:354
 out_of_memory+0x16e6/0x1700 mm/oom_kill.c:1169
 __alloc_pages_may_oom mm/page_alloc.c:3642 [inline]
 __alloc_pages_slowpath mm/page_alloc.c:4429 [inline]
 __alloc_pages_noprof+0x1e11/0x25b0 mm/page_alloc.c:4764
 alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2265
 folio_alloc_noprof+0x1e/0xc0 mm/mempolicy.c:2351
 filemap_alloc_folio_noprof+0x3b4/0x480 mm/filemap.c:1009
 __filemap_get_folio+0x539/0xaf0 mm/filemap.c:1951
 filemap_fault+0x670/0x2820 mm/filemap.c:3354
 __do_fault+0x10a/0x490 mm/memory.c:4907
 do_read_fault mm/memory.c:5322 [inline]
 do_fault mm/memory.c:5456 [inline]
 do_pte_missing+0xebd/0x3e00 mm/memory.c:3979
 handle_pte_fault mm/memory.c:5801 [inline]
 __handle_mm_fault+0x103c/0x2a40 mm/memory.c:5944
 handle_mm_fault+0x3fa/0xaa0 mm/memory.c:6112
 do_user_addr_fault+0x7a3/0x13f0 arch/x86/mm/fault.c:1389
 handle_page_fault arch/x86/mm/fault.c:1481 [inline]
 exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1539
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0010:do_strncpy_from_user lib/strncpy_from_user.c:41 [inline]
RIP: 0010:strncpy_from_user+0x14a/0x2d0 lib/strncpy_from_user.c:130
Code: 00 00 48 83 ed 08 4d 89 74 1d 00 bf 07 00 00 00 48 83 c3 08 48 89 ee e8 34 61 d0 fc 48 83 fd 07 76 22 e8 b9 5e d0 fc 45 31 ff <49> 8b 04 1c 31 ff 44 89 fe 49 89 c6 e8 e5 60 d0 fc 45 85 ff 0f 84
RSP: 0018:ffffc90000137da8 EFLAGS: 00050246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff84c8e128
RDX: ffff88801c6e8000 RSI: ffffffff84c8e1c7 RDI: 0000000000000007
RBP: 0000000000000fe0 R08: 0000000000000007 R09: 0000000000000007
R10: 0000000000000fe0 R11: 0000000000000000 R12: 00007fa3a3f64ea8
R13: ffff888011d53320 R14: 0000000000000fe0 R15: 0000000000000000
 getname_flags.part.0+0x8f/0x550 fs/namei.c:150
 getname_flags+0x93/0xf0 include/linux/audit.h:322
 user_path_at+0x24/0x60 fs/namei.c:3069
 do_faccessat+0x139/0xae0 fs/open.c:485
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa3a3ec0c91
Code: Unable to access opcode bytes at 0x7fa3a3ec0c67.
RSP: 002b:00007ffec0430408 EFLAGS: 00000246 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00007fa3a3f64ea8 RCX: 00007fa3a3ec0c91
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fa3a3f64ea8
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 00000000000016c5
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	48 83 ed 08          	sub    $0x8,%rbp
   6:	4d 89 74 1d 00       	mov    %r14,0x0(%r13,%rbx,1)
   b:	bf 07 00 00 00       	mov    $0x7,%edi
  10:	48 83 c3 08          	add    $0x8,%rbx
  14:	48 89 ee             	mov    %rbp,%rsi
  17:	e8 34 61 d0 fc       	call   0xfcd06150
  1c:	48 83 fd 07          	cmp    $0x7,%rbp
  20:	76 22                	jbe    0x44
  22:	e8 b9 5e d0 fc       	call   0xfcd05ee0
  27:	45 31 ff             	xor    %r15d,%r15d
* 2a:	49 8b 04 1c          	mov    (%r12,%rbx,1),%rax <-- trapping instruction
  2e:	31 ff                	xor    %edi,%edi
  30:	44 89 fe             	mov    %r15d,%esi
  33:	49 89 c6             	mov    %rax,%r14
  36:	e8 e5 60 d0 fc       	call   0xfcd06120
  3b:	45 85 ff             	test   %r15d,%r15d
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/04 07:37 upstream ceb8bf2ceaa7 b50eb251 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/10/16 21:43 upstream c964ced77262 666f77ed .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/10/12 01:41 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/09/16 18:08 upstream 114143a59589 49cf0773 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/26 07:00 upstream 5be63fc19fca d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/26 06:39 upstream 5be63fc19fca d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/26 06:38 upstream 5be63fc19fca d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/25 13:05 upstream 780bdc1ba776 d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/25 12:58 upstream 780bdc1ba776 d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/24 23:38 upstream d2bafcf224f3 d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/23 08:47 upstream aa0743a22936 ce8a9099 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte kernel panic: System is deadlocked on memory
2024/08/21 10:49 upstream b311c1b497e5 db5852f9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/12 10:53 upstream 7c626ce4bae1 1fef415f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/08/03 16:17 upstream 17712b7ea075 1786a2a8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte kernel panic: System is deadlocked on memory
2024/07/29 00:20 upstream 5437f30d3458 46eb10b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/07/19 05:11 upstream 720261cfc732 ee4e11c8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
2024/07/09 15:24 upstream 4376e966ecb7 39158d80 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel panic: System is deadlocked on memory
* Struck through repros no longer work on HEAD.