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: 373d, last: 14d
Bug presence (1)
Date Name Commit Repro Result
2024/04/22 upstream (ToT) ed30a4a51bb1 C [report] INFO: rcu detected stall in corrupted
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sock_setsockopt bpf 2 1945d 1945d 0/28 closed as invalid on 2019/12/04 14:04
linux-6.1 BUG: soft lockup in sock_setsockopt origin:upstream C error 3 61d 97d 0/3 upstream: reported C repro on 2024/12/25 11:22
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream C 32 1d12h 378d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-6-1 BUG: soft lockup in sock_setsockopt origin:upstream C 9 4h30m 378d 0/2 upstream: reported C repro on 2024/03/19 21:39
android-5-10 BUG: soft lockup in sock_setsockopt C error 53 1d11h 378d 0/2 upstream: reported C repro on 2024/03/19 19:29
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1734d 1730d 0/28 auto-closed as invalid on 2020/09/30 02:55
upstream BUG: soft lockup in sock_setsockopt bpf 1 1931d 1931d 0/28 auto-closed as invalid on 2020/04/16 03:54
Last patch testing requests (8)
Created Duration User Patch Repo Result
2025/03/18 08:03 12m retest repro linux-5.15.y report log
2025/03/18 08:03 14m retest repro linux-5.15.y report log
2025/03/18 08:03 11m retest repro linux-5.15.y report log
2025/03/18 08:03 13m retest repro linux-5.15.y report log
2025/03/18 08:03 13m retest repro linux-5.15.y report log
2025/02/09 06:01 16m retest repro linux-5.15.y report log
2025/01/12 01:16 14m retest repro linux-5.15.y report log
2024/12/26 03:10 18m retest repro linux-5.15.y report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
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-....: (10499 ticks this GP) idle=765/1/0x4000000000000000 softirq=8862/8869 fqs=3644 
	(t=10500 jiffies g=7377 q=292876)
NMI backtrace for cpu 1
CPU: 1 PID: 11069 Comm: syz-executor407 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_dump_cpu_stacks+0x223/0x390 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x320/0x600 kernel/rcu/tree_stall.h:633
 check_cpu_stall kernel/rcu/tree_stall.h:727 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0x8d9/0x1150 kernel/rcu/tree.c:2619
 update_process_times+0x196/0x200 kernel/time/timer.c:1818
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 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+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 9c 9e 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc9000dce63e0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92001b9cc88 RCX: 1ffff92001b9cc28
RDX: dffffc0000000000 RSI: ffffffff8aab3e20 RDI: ffffffff8af9f2c0
RBP: ffffc9000dce6538 R08: dffffc0000000000 R09: fffffbfff2131821
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92001b9cc84
R13: dffffc0000000000 R14: ffffc9000dce6440 R15: 0000000000000246
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 net_generic+0x1b/0x200 include/net/netns/generic.h:44
 tipc_sk_lookup+0xba/0x920 net/tipc/socket.c:2995
 tipc_sk_rcv+0x428/0x1d40 net/tipc/socket.c:2492
 tipc_node_xmit+0x1b7/0xf20 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x309/0x440 net/tipc/node.c:1783
 tipc_sk_rcv+0x1629/0x1d40 net/tipc/socket.c:2501
 tipc_node_xmit+0x1b7/0xf20 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+0x18a2/0x33d0 net/tipc/socket.c:2364
 tipc_sk_enqueue net/tipc/socket.c:2445 [inline]
 tipc_sk_rcv+0x8a7/0x1d40 net/tipc/socket.c:2497
 tipc_node_xmit+0x1b7/0xf20 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x309/0x440 net/tipc/node.c:1783
 tipc_sk_backlog_rcv+0x199/0x220 net/tipc/socket.c:2412
 sk_backlog_rcv include/net/sock.h:1061 [inline]
 __release_sock+0x198/0x4b0 net/core/sock.c:2727
 release_sock+0x5d/0x1c0 net/core/sock.c:3268
 sock_setsockopt+0x157b/0x2f90 net/core/sock.c:1381
 __sys_setsockopt+0x5dd/0x990 net/socket.c:2199
 __do_sys_setsockopt net/socket.c:2214 [inline]
 __se_sys_setsockopt net/socket.c:2211 [inline]
 __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2211
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f87aebb1699
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f87aeb72218 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f87aeb726c0 RCX: 00007f87aebb1699
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f87aec3b328 R08: 0000000000000004 R09: 0000000000000000
R10: 0000400000000540 R11: 0000000000000246 R12: 0000400000000200
R13: 00007f87aec3b320 R14: 00007f87aec3b32c R15: 0000400000000004
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.