syzbot


INFO: rcu detected stall in sock_setsockopt

Status: upstream: reported C repro on 2024/03/24 19:22
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+c8dff76b354ed840512f@syzkaller.appspotmail.com
First crash: 623d, last: 7d10h
Bug presence (2)
Date Name Commit Repro Result
2024/04/22 upstream (ToT) ed30a4a51bb1 C [report] INFO: rcu detected stall in corrupted
2025/06/03 upstream (ToT) 546b1c9e93c2 C Failed due to an error; will retry later
Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sock_setsockopt bpf 1 2 2196d 2196d 0/29 closed as invalid on 2019/12/04 14:04
linux-6.1 BUG: soft lockup in sock_setsockopt origin:upstream 1 C error 4 15h11m 347d 0/3 upstream: reported C repro on 2024/12/25 11:22
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream 1 C 36 11d 628d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-6-1 BUG: soft lockup in sock_setsockopt origin:upstream 1 C 13 7d14h 628d 0/2 upstream: reported C repro on 2024/03/19 21:39
android-5-10 BUG: soft lockup in sock_setsockopt 1 C error 83 11h37m 628d 0/2 upstream: reported C repro on 2024/03/19 19:29
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1 1985d 1981d 0/29 auto-closed as invalid on 2020/09/30 02:55
upstream BUG: soft lockup in sock_setsockopt bpf 1 1 2182d 2182d 0/29 auto-closed as invalid on 2020/04/16 03:54
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/11/25 17:30 12m retest repro linux-5.15.y report log
2025/11/25 17:30 14m retest repro linux-5.15.y report log
2025/11/10 02:41 20m retest repro linux-5.15.y report log
2025/11/10 02:41 12m retest repro linux-5.15.y report log
2025/11/10 02:41 14m retest repro linux-5.15.y report log
2025/11/10 02:41 19m retest repro linux-5.15.y report log
2025/10/29 19:28 13m retest repro linux-5.15.y report log
2025/10/29 19:28 15m retest repro linux-5.15.y report log
2025/09/16 13:57 14m retest repro linux-5.15.y report log
2025/09/16 07:53 14m retest repro linux-5.15.y report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2025/10/09 17:17 3h10m bisect fix linux-5.15.y OK (0) job log log
2025/08/06 02:29 3h15m bisect fix linux-5.15.y OK (0) job log log
2025/05/23 17:32 2h10m bisect fix linux-5.15.y OK (0) job log log
2024/11/18 11:07 1h45m bisect fix linux-5.15.y OK (0) job log log
2024/08/21 17:30 1h50m bisect fix linux-5.15.y OK (0) job log log
2024/07/21 01:46 1h41m bisect fix linux-5.15.y OK (0) job log log
2024/06/07 07:48 1h31m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (10500 ticks this GP) idle=62b/1/0x4000000000000000 softirq=31937/31943 fqs=0 
	(t=10500 jiffies g=33661 q=152)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10499 jiffies! g33661 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=7648
rcu: rcu_preempt kthread starved for 10500 jiffies! g33661 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:I stack:27584 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5049 [inline]
 __schedule+0x11bb/0x4390 kernel/sched/core.c:6395
 schedule+0x11b/0x1e0 kernel/sched/core.c:6478
 schedule_timeout+0x15c/0x280 kernel/time/timer.c:1914
 rcu_gp_fqs_loop+0x29e/0x11b0 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0x98/0x350 kernel/rcu/tree.c:2145
 kthread+0x436/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 23363 Comm: syz.1.6294 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
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+0x141/0x190 arch/x86/kernel/kvm.c:918
Code: 89 df 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 47 0f b6 1f e8 1f e2 49 00 44 38 e3 75 10 66 90 0f 00 2d 01 69 d4 08 fb f4 <e9> 33 ff ff ff fb e9 2d ff ff ff e8 df 65 75 08 89 f9 80 e1 07 38
RSP: 0018:ffffc90005137780 EFLAGS: 00000246
RAX: b8510c4597b93f00 RBX: 0000000000000003 RCX: b8510c4597b93f00
RDX: dffffc0000000000 RSI: ffffffff8a0b1c60 RDI: ffffffff8a59e580
RBP: ffffc90005137830 R08: dffffc0000000000 R09: fffffbfff1ff7c41
R10: fffffbfff1ff7c41 R11: 1ffffffff1ff7c40 R12: 0000000000000003
R13: ffff8880b913b154 R14: dffffc0000000000 R15: 1ffff92000a26ef0
FS:  00007f4b6d15b6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4b6d15af98 CR3: 000000005bf52000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <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+0x60f/0x9c0 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath+0x43/0x50 arch/x86/include/asm/qspinlock.h:51
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x217/0x280 kernel/locking/spinlock_debug.c:115
 spin_lock_bh include/linux/spinlock.h:369 [inline]
 lock_sock_nested+0x68/0x100 net/core/sock.c:3259
 lock_sock include/net/sock.h:1731 [inline]
 tipc_sendstream+0x43/0x70 net/tipc/socket.c:1549
 sock_sendmsg_nosec net/socket.c:706 [inline]
 __sock_sendmsg net/socket.c:718 [inline]
 ____sys_sendmsg+0x5a2/0x8c0 net/socket.c:2446
 ___sys_sendmsg+0x1f0/0x260 net/socket.c:2500
 __sys_sendmsg net/socket.c:2529 [inline]
 __do_sys_sendmsg net/socket.c:2538 [inline]
 __se_sys_sendmsg+0x190/0x250 net/socket.c:2536
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f4b6db0d749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4b6d15b038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f4b6dd64090 RCX: 00007f4b6db0d749
RDX: 0000000000008010 RSI: 0000200000000240 RDI: 0000000000000004
RBP: 00007f4b6db91f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4b6dd64128 R14: 00007f4b6dd64090 R15: 00007fffc49a9b48
 </TASK>
NMI backtrace for cpu 0
CPU: 0 PID: 23360 Comm: syz.1.6294 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
 <IRQ>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x397/0x3d0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x163/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_dump_cpu_stacks+0x22f/0x380 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x31d/0x5f0 kernel/rcu/tree_stall.h:633
 check_cpu_stall kernel/rcu/tree_stall.h:727 [inline]
 rcu_pending kernel/rcu/tree.c:3936 [inline]
 rcu_sched_clock_irq+0x6d8/0x1110 kernel/rcu/tree.c:2619
 update_process_times+0x193/0x200 kernel/time/timer.c:1818
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x37d/0x560 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4fe/0xc40 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3bb/0x8d0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x137/0x4a0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:check_kcov_mode kernel/kcov.c:174 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:227 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x2c/0x80 kernel/kcov.c:293
Code: 04 24 65 48 8b 0d 44 a0 8a 7e 65 8b 15 45 a0 8a 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 5b 83 b9 34 16 00 00 00 74 52 <8b> 91 10 16 00 00 83 fa 03 75 47 48 8b 91 18 16 00 00 44 8b 89 14
RSP: 0018:ffffc90004cd6538 EFLAGS: 00000246
RAX: ffffffff8956cb79 RBX: ffff88805bf9c000 RCX: ffff88802aba8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90004cd6650 R08: dffffc0000000000 R09: fffffbfff1ff7c19
R10: fffffbfff1ff7c19 R11: 1ffffffff1ff7c18 R12: ffff8880204dc000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88805bf9d138
 __rhashtable_lookup include/linux/rhashtable.h:594 [inline]
 rhashtable_lookup include/linux/rhashtable.h:638 [inline]
 tipc_sk_lookup+0x189/0x8d0 net/tipc/socket.c:2999
 tipc_sk_rcv+0x3f6/0x2be0 net/tipc/socket.c:2492
 tipc_node_xmit+0x1b9/0xe50 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x29a/0x3a0 net/tipc/node.c:1783
 tipc_sk_rcv+0x2693/0x2be0 net/tipc/socket.c:2501
 tipc_node_xmit+0x1b9/0xe50 net/tipc/node.c:1703
 tipc_sk_push_backlog net/tipc/socket.c:1316 [inline]
 tipc_sk_filter_connect net/tipc/socket.c:2255 [inline]
 tipc_sk_filter_rcv+0x1b30/0x3000 net/tipc/socket.c:2364
 tipc_sk_enqueue net/tipc/socket.c:2445 [inline]
 tipc_sk_rcv+0x8a2/0x2be0 net/tipc/socket.c:2497
 tipc_node_xmit+0x1b9/0xe50 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x29a/0x3a0 net/tipc/node.c:1783
 tipc_sk_backlog_rcv+0x19e/0x230 net/tipc/socket.c:2412
 sk_backlog_rcv include/net/sock.h:1067 [inline]
 __release_sock+0x1b9/0x420 net/core/sock.c:2730
 release_sock+0x5b/0x1b0 net/core/sock.c:3271
 sock_setsockopt+0x1502/0x2270 net/core/sock.c:1379
 __sys_setsockopt+0x2f6/0x3d0 net/socket.c:2209
 __do_sys_setsockopt net/socket.c:2224 [inline]
 __se_sys_setsockopt net/socket.c:2221 [inline]
 __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2221
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f4b6db0d749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4b6d17c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f4b6dd63fa0 RCX: 00007f4b6db0d749
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f4b6db91f91 R08: 0000000000000004 R09: 0000000000000000
R10: 00002000000001c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4b6dd64038 R14: 00007f4b6dd63fa0 R15: 00007fffc49a9b48
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 23363 Comm: syz.1.6294 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
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+0x141/0x190 arch/x86/kernel/kvm.c:918
Code: 89 df 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 47 0f b6 1f e8 1f e2 49 00 44 38 e3 75 10 66 90 0f 00 2d 01 69 d4 08 fb f4 <e9> 33 ff ff ff fb e9 2d ff ff ff e8 df 65 75 08 89 f9 80 e1 07 38
RSP: 0018:ffffc90005137780 EFLAGS: 00000246
RAX: b8510c4597b93f00 RBX: 0000000000000003 RCX: b8510c4597b93f00
RDX: dffffc0000000000 RSI: ffffffff8a0b1c60 RDI: ffffffff8a59e580
RBP: ffffc90005137830 R08: dffffc0000000000 R09: fffffbfff1ff7c41
R10: fffffbfff1ff7c41 R11: 1ffffffff1ff7c40 R12: 0000000000000003
R13: ffff8880b913b154 R14: dffffc0000000000 R15: 1ffff92000a26ef0
FS:  00007f4b6d15b6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4b6d15af98 CR3: 000000005bf52000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <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+0x60f/0x9c0 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath+0x43/0x50 arch/x86/include/asm/qspinlock.h:51
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x217/0x280 kernel/locking/spinlock_debug.c:115
 spin_lock_bh include/linux/spinlock.h:369 [inline]
 lock_sock_nested+0x68/0x100 net/core/sock.c:3259
 lock_sock include/net/sock.h:1731 [inline]
 tipc_sendstream+0x43/0x70 net/tipc/socket.c:1549
 sock_sendmsg_nosec net/socket.c:706 [inline]
 __sock_sendmsg net/socket.c:718 [inline]
 ____sys_sendmsg+0x5a2/0x8c0 net/socket.c:2446
 ___sys_sendmsg+0x1f0/0x260 net/socket.c:2500
 __sys_sendmsg net/socket.c:2529 [inline]
 __do_sys_sendmsg net/socket.c:2538 [inline]
 __se_sys_sendmsg+0x190/0x250 net/socket.c:2536
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f4b6db0d749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4b6d15b038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f4b6dd64090 RCX: 00007f4b6db0d749
RDX: 0000000000008010 RSI: 0000200000000240 RDI: 0000000000000004
RBP: 00007f4b6db91f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4b6dd64128 R14: 00007f4b6dd64090 R15: 00007fffc49a9b48
 </TASK>

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/30 23:21 linux-5.15.y cc5ec8769306 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sock_setsockopt
2025/02/16 13:12 linux-5.15.y c16c81c81336 40a34ec9 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sock_setsockopt
2024/09/18 07:49 linux-5.15.y 3a5928702e71 c673ca06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sock_setsockopt
2024/05/06 06:42 linux-5.15.y 284087d4f7d5 610f2a54 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sock_setsockopt
2024/04/09 11:26 linux-5.15.y 9465fef4ae35 f3234354 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sock_setsockopt
2024/03/24 19:21 linux-5.15.y b95c01af2113 0ea90952 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sock_setsockopt
2025/03/03 02:28 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in sock_setsockopt
2025/01/26 03:28 linux-5.15.y 003148680b79 9fbd772e .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in sock_setsockopt
2025/01/24 10:19 linux-5.15.y 003148680b79 521b0ce3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in sock_setsockopt
2025/02/22 05:06 linux-5.15.y c16c81c81336 d34966d1 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sock_setsockopt
* Struck through repros no longer work on HEAD.