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: 894d, last: 2d14h
Fix bisection: failed (error log, bisect log)
  
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 2467d 2467d 0/29 closed as invalid on 2019/12/04 14:04
linux-6.1 BUG: soft lockup in sock_setsockopt origin:upstream 1 syz, C error 4 271d 619d 0/3 upstream: reported C repro on 2024/12/25 11:22
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream 1 syz, C error 44 6h44m 899d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-6-1 BUG: soft lockup in sock_setsockopt origin:upstream 1 syz, C 17 20d 899d 0/2 upstream: reported C repro on 2024/03/19 21:39
android-5-10 BUG: soft lockup in sock_setsockopt 1 syz, C error 110 4d06h 899d 0/2 upstream: reported C repro on 2024/03/19 19:29
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1 2256d 2252d 0/29 auto-closed as invalid on 2020/09/30 02:55
upstream BUG: soft lockup in sock_setsockopt bpf 1 1 2453d 2453d 0/29 auto-closed as invalid on 2020/04/16 03:54
Last patch testing requests (10)
Created Duration User Patch Repo Result
2026/08/17 16:42 17m retest repro linux-5.15.y report job log log
2026/08/17 16:42 18m retest repro linux-5.15.y report job log log
2026/08/17 16:42 46m retest repro linux-5.15.y report job log log
2026/07/13 11:33 1h47m retest repro linux-5.15.y report log
2026/07/13 11:33 1h37m retest repro linux-5.15.y report log
2026/06/24 15:52 21m retest repro linux-5.15.y report log
2026/06/24 15:52 24m retest repro linux-5.15.y report log
2026/06/24 15:52 18m retest repro linux-5.15.y report log
2026/06/24 15:52 27m retest repro linux-5.15.y report log
2026/06/24 15:52 20m retest repro linux-5.15.y report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2026/02/22 08:26 0m bisect fix linux-5.15.y error job log
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: 	1-...!: (1 GPs behind) idle=77b/1/0x4000000000000000 softirq=10998/11004 fqs=37 
	(t=10502 jiffies g=11217 q=1306)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10428 jiffies! g11217 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=12742
rcu: rcu_preempt kthread starved for 10431 jiffies! g11217 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0
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:26576 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5049 [inline]
 __schedule+0x11c3/0x4350 kernel/sched/core.c:6395
 schedule+0x11b/0x1e0 kernel/sched/core.c:6478
 schedule_timeout+0x184/0x2d0 kernel/time/timer.c:2117
 rcu_gp_fqs_loop+0x2be/0x11f0 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0x9a/0x370 kernel/rcu/tree.c:2145
 kthread+0x42e/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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6456 Comm: syz.3.698 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
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+0x159/0x1b0 arch/x86/kernel/kvm.c:918
Code: 89 df 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 4b 0f b6 1f e8 a7 91 4a 00 44 38 e3 75 10 66 90 0f 00 2d c9 d9 f3 08 fb f4 <e9> 16 ff ff ff fb e9 10 ff ff ff e8 17 ca 8b 08 89 f9 80 e1 07 38
RSP: 0018:ffffc90003e87a00 EFLAGS: 00000246
RAX: 8e72f975b8c93d00 RBX: 0000000000000003 RCX: 8e72f975b8c93d00
RDX: dffffc0000000000 RSI: ffffffff8a2b2be0 RDI: ffffffff8a7a4540
RBP: ffffc90003e87ab0 R08: ffffffff901ef1ef R09: 1ffffffff203de3d
R10: dffffc0000000000 R11: fffffbfff203de3e R12: 0000000000000003
R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff920007d0f40
FS:  0000555567e7a500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fad5ce5bff8 CR3: 00000000779b8000 CR4: 00000000003506f0
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+0x605/0x9b0 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+0x265/0x2f0 kernel/locking/spinlock_debug.c:115
 spin_lock_bh include/linux/spinlock.h:369 [inline]
 lock_sock_nested+0x68/0x100 net/core/sock.c:3261
 lock_sock include/net/sock.h:1744 [inline]
 tipc_release+0xa3/0x1f70 net/tipc/socket.c:640
 __sock_release net/socket.c:651 [inline]
 sock_close+0xbf/0x210 net/socket.c:1346
 __fput+0x212/0x8c0 fs/file_table.c:311
 task_work_run+0x125/0x1a0 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f761fcdc159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffefdbf50d8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f761ff65da0 RCX: 00007f761fcdc159
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f761ff65da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007f761ff65cb0 R11: 0000000000000246 R12: 00000000000362f9
R13: 00007f761ff6409c R14: 0000000000035ffd R15: 00007f761ff64090
 </TASK>
NMI backtrace for cpu 1
CPU: 1 PID: 6457 Comm: syz.3.698 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <IRQ>
 dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3a2/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+0x22d/0x380 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x31f/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+0x6ec/0x1120 kernel/rcu/tree.c:2619
 update_process_times+0x193/0x200 kernel/time/timer.c:2021
 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+0x4b0/0xb60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x397/0x8b0 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:lock_acquire+0x208/0x400 kernel/locking/lockdep.c:5627
Code: f7 84 24 80 00 00 00 00 02 00 00 43 c6 44 3d 04 f8 0f 85 f1 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 44 3d 00 00 00 00 00 43 c7 44 3d 08 00 00 00 00 65 48 8b 04
RSP: 0018:ffffc90003dce560 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ad9f235ba2e36000
RDX: 0000000000000000 RSI: ffffffff8a2b3e80 RDI: ffffffff8a7a4540
RBP: ffffc90003dce670 R08: dffffc0000000000 R09: 1ffffffff203de3d
R10: dffffc0000000000 R11: fffffbfff203de3e R12: ffffc90003dcec10
R13: 1ffff920007b9cb8 R14: 0000000000000246 R15: dffffc0000000000
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x32/0x50 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:369 [inline]
 tipc_skb_peek_port net/tipc/msg.h:1248 [inline]
 tipc_sk_rcv+0x26f/0x2a10 net/tipc/socket.c:2497
 tipc_node_xmit+0x203/0xf70 net/tipc/node.c:1708
 tipc_node_xmit_skb net/tipc/node.c:1773 [inline]
 tipc_node_distr_xmit+0x2c7/0x3f0 net/tipc/node.c:1788
 tipc_sk_rcv+0x24ac/0x2a10 net/tipc/socket.c:2507
 tipc_node_xmit+0x203/0xf70 net/tipc/node.c:1708
 tipc_sk_push_backlog net/tipc/socket.c:1317 [inline]
 tipc_sk_filter_connect net/tipc/socket.c:2261 [inline]
 tipc_sk_filter_rcv+0x1b1f/0x30b0 net/tipc/socket.c:2370
 tipc_sk_enqueue net/tipc/socket.c:2451 [inline]
 tipc_sk_rcv+0x846/0x2a10 net/tipc/socket.c:2503
 tipc_node_xmit+0x203/0xf70 net/tipc/node.c:1708
 tipc_node_xmit_skb net/tipc/node.c:1773 [inline]
 tipc_node_distr_xmit+0x2c7/0x3f0 net/tipc/node.c:1788
 tipc_sk_backlog_rcv+0x1aa/0x260 net/tipc/socket.c:2418
 sk_backlog_rcv include/net/sock.h:1080 [inline]
 __release_sock+0x1e6/0x460 net/core/sock.c:2730
 release_sock+0x5b/0x1b0 net/core/sock.c:3273
 sock_setsockopt+0x1ba3/0x2480 net/core/sock.c:1378
 __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:0x7f761fcdc159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f761f33c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f761ff63fa0 RCX: 00007f761fcdc159
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f761fd73024 R08: 0000000000000004 R09: 0000000000000000
R10: 0000200000000540 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f761ff64038 R14: 00007f761ff63fa0 R15: 00007ffefdbf4f78
 </TASK>

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/02 23:17 linux-5.15.y 0996e0926f6b 85995287 .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/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
2026/08/28 11:34 linux-5.15.y 28c35638ec51 e2fa417d .config console log report info [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.