syzbot


BUG: soft lockup in syscall_enter_from_user_mode

Status: premoderation: reported on 2024/05/16 14:09
Reported-by: syzbot+315d5b2e127b63e14473@syzkaller.appspotmail.com
First crash: 62d, last: 62d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in syscall_enter_from_user_mode 1 378d 378d 0/3 auto-obsoleted due to no activity on 2023/10/13 06:46
upstream INFO: rcu detected stall in syscall_enter_from_user_mode (2) kernel 11 554d 843d 0/27 auto-obsoleted due to no activity on 2023/04/22 11:15
upstream INFO: rcu detected stall in syscall_enter_from_user_mode (3) kernel 5 218d 383d 0/27 auto-obsoleted due to no activity on 2024/03/11 14:48
linux-5.15 INFO: rcu detected stall in syscall_enter_from_user_mode origin:upstream C 16 2d18h 218d 0/3 upstream: reported C repro on 2023/12/13 03:22
upstream INFO: rcu detected stall in syscall_enter_from_user_mode kernel 2 901d 914d 0/27 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz-executor.4:306]
Modules linked in:
CPU: 0 PID: 306 Comm: syz-executor.4 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:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
RIP: 0010:pv_hybrid_queued_unfair_trylock kernel/locking/qspinlock_paravirt.h:98 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x248/0xc40 kernel/locking/qspinlock.c:443
Code: 00 00 fc ff df 31 c0 b1 01 f0 41 0f b0 0f 84 c0 0f 84 b6 06 00 00 41 81 fc 00 00 01 00 72 24 41 81 e4 00 ff 00 00 75 1b f3 90 <eb> 98 44 89 f9 80 e1 07 80 c1 03 38 c1 7c ac 4c 89 ff e8 51 52 5d
RSP: 0018:ffffc90000ac7bc0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff8881f7037ed4 RCX: ffffffff8154f60f
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888114546e18
RBP: ffffc90000ac7cb0 R08: dffffc0000000000 R09: ffffed10228a8dc4
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 1ffff110228a8dc3 R14: 1ffff1103ee06fd9 R15: ffff888114546e18
FS:  0000555556d60480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31f25000 CR3: 00000001244d1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 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_bc4ba9860fbb0da4+0x3e/0xe34
 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_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
 __bpf_trace_sys_enter+0x62/0x70 include/trace/events/syscalls.h:18
 __traceiter_sys_enter+0x2a/0x40 include/trace/events/syscalls.h:18
 trace_sys_enter include/trace/events/syscalls.h:18 [inline]
 syscall_trace_enter kernel/entry/common.c:77 [inline]
 __syscall_enter_from_user_work kernel/entry/common.c:90 [inline]
 syscall_enter_from_user_mode+0x14d/0x1b0 kernel/entry/common.c:108
 do_syscall_64+0x1e/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f9e82bae8d3
Code: 00 00 0f 1f 44 00 00 31 c9 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 80 3d 31 56 10 00 00 49 89 ca 74 14 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 5d c3 0f 1f 40 00 48 83 ec 28 89 54 24 14 48
RSP: 002b:00007ffc466540f8 EFLAGS: 00000202 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 00000000000002dc RCX: 00007f9e82bae8d3
RDX: 0000000040000001 RSI: 00007ffc4665415c RDI: 00000000ffffffff
RBP: 00007ffc4665415c R08: 00007ffc466a8080 R09: 00007ffc466a80b0
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000032
R13: 000000000001aa4a R14: 000000000001a9f1 R15: 0000000000000019
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4197 Comm: syz-executor.0 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_halt arch/x86/include/asm/irqflags.h:57 [inline]
RIP: 0010:halt arch/x86/include/asm/irqflags.h:98 [inline]
RIP: 0010:kvm_wait+0x117/0x180 arch/x86/kernel/kvm.c:912
Code: 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 53 41 0f b6 45 00 44 38 f0 0f 85 63 ff ff ff 66 90 0f 00 2d 8a 03 f3 03 f4 <e9> 54 ff ff ff fa 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b
RSP: 0018:ffffc90001f6f360 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff920003ede70 RCX: ffffffff8154fa7f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888114546e18
RBP: ffffc90001f6f410 R08: dffffc0000000000 R09: ffffed10228a8dc4
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888114546e18 R14: 0000000000000003 R15: 1ffff920003ede74
FS:  0000555555be1480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e623000 CR3: 00000001258f5000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <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_bc4ba9860fbb0da4+0x3e/0xc0c
 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_run3+0x11e/0x250 kernel/trace/bpf_trace.c:1921
 __bpf_trace_timer_start+0x2b/0x40 include/trace/events/timer.h:52
 __traceiter_timer_start+0x7f/0xd0 include/trace/events/timer.h:52
 trace_timer_start include/trace/events/timer.h:52 [inline]
 enqueue_timer+0x351/0x4c0 kernel/time/timer.c:592
 internal_add_timer kernel/time/timer.c:617 [inline]
 __mod_timer+0x8d3/0xcf0 kernel/time/timer.c:1068
 add_timer+0x68/0x80 kernel/time/timer.c:1150
 __queue_delayed_work+0x16d/0x1f0 kernel/workqueue.c:1697
 queue_delayed_work_on+0x10f/0x180 kernel/workqueue.c:1722
 queue_delayed_work include/linux/workqueue.h:525 [inline]
 schedule_delayed_work include/linux/workqueue.h:629 [inline]
 kvfree_call_rcu+0x45b/0x7d0 kernel/rcu/tree.c:3625
 sock_hash_free_elem net/core/sock_map.c:898 [inline]
 sock_hash_delete_from_link net/core/sock_map.c:921 [inline]
 sock_map_unlink net/core/sock_map.c:1493 [inline]
 sock_map_remove_links+0x4a3/0x570 net/core/sock_map.c:1505
 sock_map_close+0x2ac/0x4c0 net/core/sock_map.c:1546
 unix_release+0x82/0xc0 net/unix/af_unix.c:949
 __sock_release net/socket.c:649 [inline]
 sock_close+0xdf/0x270 net/socket.c:1336
 __fput+0x3fe/0x910 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fce9e425dda
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffe486541a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000009 RCX: 00007fce9e425dda
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 00007fce9e557980 R08: 0000001b30620000 R09: 0000000000000066
R10: 00000000818a5b8b R11: 0000000000000293 R12: 000000000001ad34
R13: 00007fce9e555f8c R14: 00007ffe486542a0 R15: 0000000000000032
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/16 14:09 android13-5.15-lts 5d96939590c0 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in syscall_enter_from_user_mode
* Struck through repros no longer work on HEAD.