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: 943d, last: 12d
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 2515d 2515d 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 320d 667d 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 51 12d 947d 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 20 3d23h 947d 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 124 8d18h 948d 0/2 upstream: reported C repro on 2024/03/19 19:29
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1 2304d 2300d 0/29 auto-closed as invalid on 2020/09/30 02:55
upstream BUG: soft lockup in sock_setsockopt bpf 1 1 2501d 2501d 0/29 auto-closed as invalid on 2020/04/16 03:54
▶ ▼ Last patch testing requests (10)
Created Duration User Patch Repo Result
2026/09/18 17:22 23m retest repro linux-5.15.y report job log log
2026/09/18 17:22 16m retest repro linux-5.15.y report job log log
2026/09/18 17:22 21m retest repro linux-5.15.y report job log log
2026/09/18 17:22 22m retest repro linux-5.15.y report job log log
2026/09/18 17:22 13m retest repro linux-5.15.y report job log log
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
▶ ▼ 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-...!: (10500 ticks this GP) idle=9ad/1/0x4000000000000000 softirq=11281/11290 fqs=0 
	(t=10502 jiffies g=11277 q=251)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10502 jiffies! g11277 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=4950
rcu: rcu_preempt kthread starved for 10505 jiffies! g11277 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:28080 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: 8323 Comm: syz.4.1323 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:121 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x525/0x9b0 kernel/locking/qspinlock.c:508
Code: 00 00 48 8b 44 24 10 42 0f b6 04 28 84 c0 0f 85 1c 01 00 00 48 8d 43 01 c6 00 01 41 bc 00 80 ff ff eb 07 f3 90 41 ff c4 74 47 <43> 0f b6 04 2e 84 c0 75 2b 80 3b 00 75 eb 48 89 df be 02 00 00 00
RSP: 0018:ffffc9000356f840 EFLAGS: 00000286
RAX: 0000000000000000 RBX: ffff88814cadf088 RCX: 174dd8bc5a292f00
RDX: dffffc0000000000 RSI: ffffffff8a2b2be0 RDI: ffffffff8a7a4c00
RBP: ffffc9000356f938 R08: ffffffff910151ef R09: 1ffffffff2202a3d
R10: dffffc0000000000 R11: fffffbfff2202a3e R12: 00000000ffffef24
R13: dffffc0000000000 R14: 1ffff1102995be11 R15: ffff8880b8e30001
FS:  00007f5c3dfad6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5c3dfacff8 CR3: 000000005c059000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 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_sendstream+0x43/0x70 net/tipc/socket.c:1553
 sock_sendmsg_nosec net/socket.c:706 [inline]
 __sock_sendmsg net/socket.c:718 [inline]
 ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446
 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500
 __sys_sendmsg net/socket.c:2529 [inline]
 __do_sys_sendmsg net/socket.c:2538 [inline]
 __se_sys_sendmsg+0x1b7/0x2a0 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:0x7f5c3e96e1d9
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:00007f5c3dfad028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f5c3ebf6090 RCX: 00007f5c3e96e1d9
RDX: 0000000000000001 RSI: 00002000000001c0 RDI: 0000000000000004
RBP: 00007f5c3ea05888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5c3ebf6128 R14: 00007f5c3ebf6090 R15: 00007ffce53aae18
 </TASK>
NMI backtrace for cpu 1
CPU: 1 PID: 8315 Comm: syz.4.1323 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:check_region_inline mm/kasan/generic.c:169 [inline]
RIP: 0010:kasan_check_range+0x2/0x290 mm/kasan/generic.c:189
Code: c6 48 89 c7 e8 df 46 04 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 00 00 cc cc 00 00 cc cc 00 00 cc cc b0 01 <48> 85 f6 0f 84 ac 01 00 00 55 41 57 41 56 41 54 53 49 89 f8 49 01
RSP: 0018:ffffc9000387e438 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff815cef15
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e6b2828
RBP: ffffc9000387e560 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1cd6506 R12: 1ffff9200070fc94
R13: ffffffff8d11efa0 R14: 0000000000000001 R15: dffffc0000000000
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
 cpumask_test_cpu include/linux/cpumask.h:344 [inline]
 cpu_online include/linux/cpumask.h:895 [inline]
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0xb5/0x400 kernel/locking/lockdep.c:5708
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:313
 rcu_read_lock include/linux/rcupdate.h:740 [inline]
 tipc_sk_lookup+0xbc/0x8d0 net/tipc/socket.c:3004
 tipc_sk_rcv+0x38e/0x2a10 net/tipc/socket.c:2498
 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:0x7f5c3e96e1d9
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:00007f5c3dfce028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f5c3ebf5fa0 RCX: 00007f5c3e96e1d9
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f5c3ea05888 R08: 0000000000000004 R09: 0000000000000000
R10: 0000200000000180 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5c3ebf6038 R14: 00007f5c3ebf5fa0 R15: 00007ffce53aae18
 </TASK>

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/11 04:32 linux-5.15.y a051a4bf909f 4f92358f .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
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
2026/10/11 11:52 linux-5.15.y a051a4bf909f 4f92358f .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall 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.