syzbot


BUG: soft lockup in sys_exit_group

Status: upstream: reported C repro on 2024/04/07 14:27
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+0ea45958ab457cad9241@syzkaller.appspotmail.com
First crash: 106d, last: 2d20h
Bug presence (3)
Date Name Commit Repro Result
2024/04/07 android13-5.15-lts (ToT) 993bed180178 C [report] BUG: soft lockup in smp_call_function
2024/04/07 lts (merge base) 6139f2a02fe0 C Didn't crash
2024/04/07 upstream (ToT) f2f80ac80987 C Didn't crash
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: soft lockup in sys_exit_group 1 1d07h 1d07h 0/2 premoderation: reported on 2024/07/21 10:18
upstream BUG: soft lockup in sys_exit_group usb C 6 1584d 1607d 15/27 fixed on 2020/04/15 17:19
upstream INFO: rcu detected stall in sys_exit_group (7) net C unreliable inconclusive 90 14d 1010d 0/27 upstream: reported C repro on 2021/10/15 18:41
linux-5.15 INFO: rcu detected stall in sys_exit_group (2) 3 95d 130d 0/3 upstream: reported on 2024/03/14 09:49
linux-6.1 INFO: rcu detected stall in sys_exit_group (3) origin:upstream C 8 28d 181d 0/3 upstream: reported C repro on 2024/01/23 11:05
linux-6.1 INFO: rcu detected stall in sys_exit_group (2) 1 327d 327d 0/3 auto-obsoleted due to no activity on 2023/12/07 20:57
linux-6.1 INFO: rcu detected stall in sys_exit_group 1 438d 438d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:06
linux-5.15 INFO: rcu detected stall in sys_exit_group 1 389d 389d 0/3 auto-obsoleted due to no activity on 2023/10/06 21:30
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/06/22 06:51 10m retest repro android13-5.15-lts log
2024/05/20 05:48 16m retest repro android13-5.15-lts OK log
2024/05/20 05:48 9m retest repro android13-5.15-lts report log
2024/05/20 03:31 10m retest repro android13-5.15-lts report log
2024/05/20 03:31 11m retest repro android13-5.15-lts report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/07/19 19:55 1h37m bisect fix android13-5.15-lts OK (0) job log log
2024/06/06 14:12 1h20m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
RBP: 00007f885a86d2b0 R08: ffffffffffffffb8 R09: 00000000000000a0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f885a86d2b0
R13: 0000000000000000 R14: 00007f885a86dd20 R15: 00007f885a7c3300
 </TASK>
watchdog: BUG: soft lockup - CPU#0 stuck for 225s! [syz-executor340:768]
Modules linked in:
CPU: 0 PID: 768 Comm: syz-executor340 Not tainted 5.15.149-syzkaller-00490-g5d96939590c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 5b 03 f3 03 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc900009b7280 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92000136e54 RCX: ffffffff8154fa7f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88810ab3d218
RBP: ffffc900009b7330 R08: dffffc0000000000 R09: ffffed1021567a44
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88810ab3d218 R14: 0000000000000003 R15: 1ffff92000136e58
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f885a86e130 CR3: 000000012090f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x530
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run4+0x13f/0x270 kernel/trace/bpf_trace.c:1922
 __bpf_trace_mm_page_alloc+0xbf/0xf0 include/trace/events/kmem.h:201
 __traceiter_mm_page_alloc+0x3a/0x60 include/trace/events/kmem.h:201
 trace_mm_page_alloc include/trace/events/kmem.h:201 [inline]
 __alloc_pages+0x3cb/0x8f0 mm/page_alloc.c:5798
 __alloc_pages_node include/linux/gfp.h:591 [inline]
 alloc_pages_node include/linux/gfp.h:605 [inline]
 alloc_pages include/linux/gfp.h:618 [inline]
 __get_free_pages+0x10/0x30 mm/page_alloc.c:5813
 tlb_next_batch mm/mmu_gather.c:29 [inline]
 __tlb_remove_page_size+0x178/0x300 mm/mmu_gather.c:83
 __tlb_remove_page include/asm-generic/tlb.h:444 [inline]
 zap_pte_range mm/memory.c:1435 [inline]
 zap_pmd_range mm/memory.c:1553 [inline]
 zap_pud_range mm/memory.c:1582 [inline]
 zap_p4d_range mm/memory.c:1603 [inline]
 unmap_page_range+0x120a/0x1ca0 mm/memory.c:1624
 unmap_single_vma mm/memory.c:1669 [inline]
 unmap_vmas+0x389/0x560 mm/memory.c:1701
 exit_mmap+0x3d8/0x6f0 mm/mmap.c:3209
 __mmput+0x95/0x310 kernel/fork.c:1179
 mmput+0x5b/0x170 kernel/fork.c:1202
 exit_mm kernel/exit.c:552 [inline]
 do_exit+0xb9c/0x2ca0 kernel/exit.c:865
 do_group_exit+0x141/0x310 kernel/exit.c:1000
 __do_sys_exit_group kernel/exit.c:1011 [inline]
 __se_sys_exit_group kernel/exit.c:1009 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1009
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f885a7f2179
Code: Unable to access opcode bytes at RIP 0x7f885a7f214f.
RSP: 002b:00007ffee4fd4c98 EFLAGS: 00000246
 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f885a7f2179
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007f885a86d2b0 R08: ffffffffffffffb8 R09: 00000000000000a0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f885a86d2b0
R13: 0000000000000000 R14: 00007f885a86dd20 R15: 00007f885a7c3300
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/06 03:28 android13-5.15-lts 5d96939590c0 610f2a54 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_exit_group
2024/04/24 03:43 android13-5.15-lts ad06eaf051cd 21339d7b .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_exit_group
2024/04/14 02:38 android13-5.15-lts 993bed180178 c8349e48 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_exit_group
2024/04/07 14:26 android13-5.15-lts 993bed180178 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_exit_group
2024/04/21 16:21 android13-5.15-lts ad06eaf051cd af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_exit_group
2024/04/14 23:26 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_exit_group
2024/04/10 22:15 android13-5.15-lts 993bed180178 4320ec32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_exit_group
* Struck through repros no longer work on HEAD.