syzbot


INFO: rcu detected stall in __unix_dgram_recvmsg

Status: upstream: reported on 2025/07/03 10:08
Reported-by: syzbot+c7179bc6a35fd11c39b9@syzkaller.appspotmail.com
First crash: 247d, last: 77d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in __unix_dgram_recvmsg net 1 3 1003d 1070d 0/29 auto-obsoleted due to no activity on 2023/09/05 23:13
upstream INFO: rcu detected stall in __unix_dgram_recvmsg (3) net 1 1 796d 796d 0/29 closed as invalid on 2024/02/12 15:20
upstream INFO: rcu detected stall in __unix_dgram_recvmsg (2) net 1 2 904d 908d 0/29 auto-obsoleted due to no activity on 2023/12/13 22:00

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=36bc/1/0x4000000000000000 softirq=37775/37775 fqs=1
rcu: 	(detected by 1, t=10502 jiffies, g=36189, q=324 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 9430 Comm: syz.4.505 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:task_irq_context kernel/locking/lockdep.c:4607 [inline]
RIP: 0010:__lock_acquire+0x464/0x7c80 kernel/locking/lockdep.c:5074
Code: 24 58 42 80 3c 00 00 74 12 4c 89 f7 e8 b5 fc 75 00 49 b8 00 00 00 00 00 fc ff df 4c 89 b4 24 b0 00 00 00 48 8b 45 10 49 89 06 <65> 8b 05 01 84 9b 7e 45 31 f6 85 c0 41 0f 95 c6 45 01 f6 48 8b 44
RSP: 0018:ffffc90000007880 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffff1100fbf8caa
RDX: ffff88807dfc6528 RSI: 0000000000000002 RDI: ffff88807dfc6538
RBP: ffffc90000007ac8 R08: dffffc0000000000 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff1c94426 R12: ffff88807dfc6540
R13: 0000000000000001 R14: ffff88807dfc6548 R15: 0000000000000000
FS:  00007f325e1c76c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2f0a3b CR3: 000000002b6dc000 CR4: 00000000003506f0
Call Trace:
 <IRQ>
 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xa8/0xf0 kernel/locking/spinlock.c:162
 debug_object_deactivate+0x67/0x350 lib/debugobjects.c:764
 debug_hrtimer_deactivate kernel/time/hrtimer.c:455 [inline]
 debug_deactivate+0x1d/0x1d0 kernel/time/hrtimer.c:511
 __run_hrtimer kernel/time/hrtimer.c:1718 [inline]
 __hrtimer_run_queues+0x2bf/0xc40 kernel/time/hrtimer.c:1814
 hrtimer_interrupt+0x3c9/0x9c0 kernel/time/hrtimer.c:1876
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1077 [inline]
 __sysvec_apic_timer_interrupt+0xfb/0x3b0 arch/x86/kernel/apic/apic.c:1094
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
 sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1088
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:207 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:239 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:scm_has_secdata include/net/scm.h:123 [inline]
RIP: 0010:__scm_recv_common include/net/scm.h:177 [inline]
RIP: 0010:scm_recv_unix+0x650/0x810 include/net/scm.h:213
Code: 4d 85 f6 74 66 e8 10 c6 68 f8 8b 7c 24 60 4c 89 f6 e8 24 ef d6 f8 eb 58 4c 89 ff be 08 00 00 00 e8 a5 35 c0 f8 43 80 3c 2e 00 <4c> 8b 64 24 08 74 08 4c 89 ff e8 d1 33 c0 f8 4d 8b 37 4c 89 f6 48
RSP: 0018:ffffc900044375e0 EFLAGS: 00000246
RAX: 1ffff92000886e01 RBX: 1ffff92000886ec0 RCX: ffffffff891ccacb
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88805ea7c808
RBP: ffffc900044376f0 R08: ffff88805ea7c80f R09: 1ffff1100bd4f901
R10: dffffc0000000000 R11: ffffed100bd4f902 R12: ffffc900044377a8
R13: dffffc0000000000 R14: 1ffff1100bd4f901 R15: ffff88805ea7c808
 __unix_dgram_recvmsg+0x9f7/0xd60 net/unix/af_unix.c:2487
 sock_recvmsg_nosec+0x82/0xd0 net/socket.c:1046
 ____sys_recvmsg+0x49b/0x5b0 net/socket.c:2812
 ___sys_recvmsg+0x1b6/0x510 net/socket.c:2856
 do_recvmmsg+0x360/0x7d0 net/socket.c:2950
 __sys_recvmmsg net/socket.c:3029 [inline]
 __do_sys_recvmmsg net/socket.c:3052 [inline]
 __se_sys_recvmmsg net/socket.c:3045 [inline]
 __x64_sys_recvmmsg+0x191/0x240 net/socket.c:3045
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f325d38f749
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:00007f325e1c7038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f325d5e6090 RCX: 00007f325d38f749
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000009
RBP: 00007f325d413f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f325d5e6128 R14: 00007f325d5e6090 R15: 00007fffc3a1acf8
 </TASK>
rcu: rcu_preempt kthread starved for 10495 jiffies! g36189 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:27496 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_timeout+0x160/0x280 kernel/time/timer.c:2168
 rcu_gp_fqs_loop+0x302/0x1560 kernel/rcu/tree.c:1667
 rcu_gp_kthread+0x99/0x380 kernel/rcu/tree.c:1866
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 49 Comm: kworker/u4:3 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x17/0x60 kernel/kcov.c:216
Code: 48 8b 3d 9c 92 c4 0c 48 89 de 5b e9 43 9d 56 00 cc cc cc f3 0f 1e fa 48 8b 04 24 65 48 8b 0d f0 24 7e 7e 65 8b 15 f1 24 7e 7e <81> e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 1c 16 00 00
RSP: 0018:ffffc90000ba7778 EFLAGS: 00000202
RAX: ffffffff817abd37 RBX: 1ffff110171c8759 RCX: ffff88801b6dda00
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000ba7900 R08: ffffffff90d94507 R09: 1ffffffff21b28a0
R10: dffffc0000000000 R11: fffffbfff21b28a1 R12: ffff8880b8e43ac8
R13: dffffc0000000000 R14: ffff8880b8f3d148 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555570719808 CR3: 000000000cb30000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 csd_lock_wait kernel/smp.c:311 [inline]
 smp_call_function_many_cond+0xdf7/0x1130 kernel/smp.c:855
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1022
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2222 [inline]
 text_poke_bp_batch+0x318/0x930 arch/x86/kernel/alternative.c:2432
 text_poke_flush arch/x86/kernel/alternative.c:2623 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2630
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x123/0x240 kernel/jump_label.c:207
 static_key_enable+0x1a/0x20 kernel/jump_label.c:220
 toggle_allocation_gate+0xaa/0x250 mm/kfence/core.c:831
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/20 01:02 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in __unix_dgram_recvmsg
2025/10/21 08:58 linux-6.6.y f231f248323d 9832ed61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in __unix_dgram_recvmsg
2025/10/08 04:31 linux-6.6.y e617101e5626 7e2882b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in __unix_dgram_recvmsg
2025/08/14 21:32 linux-6.6.y 3a8ababb8b6a 5d8c2ac2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in __unix_dgram_recvmsg
2025/07/19 00:45 linux-6.6.y d96eb99e2f0e 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in __unix_dgram_recvmsg
2025/07/03 10:07 linux-6.6.y 3f5b4c104b7d 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in __unix_dgram_recvmsg
* Struck through repros no longer work on HEAD.