syzbot


INFO: rcu detected stall in sys_recvmmsg

Status: upstream: reported on 2025/07/18 08:32
Reported-by: syzbot+426bd78d8547d0759eee@syzkaller.appspotmail.com
First crash: 8d15h, last: 8d15h
Similar bugs (9)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_recvmmsg (3) mm 1 172 2d17h 585d 0/29 upstream: reported on 2023/12/19 09:31
linux-6.1 INFO: rcu detected stall in sys_recvmmsg (3) 1 10 76d 242d 0/3 upstream: reported on 2024/11/26 05:10
linux-4.19 INFO: rcu detected stall in sys_recvmmsg 1 C error 1 946d 946d 0/1 upstream: reported C repro on 2022/12/23 04:58
linux-5.15 INFO: rcu detected stall in sys_recvmmsg missing-backport origin:upstream 1 C done 51 11d 842d 0/3 upstream: reported C repro on 2023/04/06 01:32
linux-6.1 INFO: rcu detected stall in sys_recvmmsg (2) 1 5 346d 478d 0/3 auto-obsoleted due to no activity on 2024/11/22 11:58
upstream INFO: rcu detected stall in sys_recvmmsg mptcp 1 C done 52 1272d 1403d 20/29 fixed on 2022/03/08 16:11
linux-6.1 INFO: rcu detected stall in sys_recvmmsg 1 5 723d 855d 0/3 auto-obsoleted due to no activity on 2023/11/11 06:06
upstream INFO: rcu detected stall in sys_recvmmsg (2) net 1 4 1033d 1063d 0/29 auto-obsoleted due to no activity on 2023/01/03 09:53
android-5-15 BUG: soft lockup in sys_recvmmsg 1 5 366d 459d 0/2 auto-obsoleted due to no activity on 2024/10/23 09:30

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=6304/1/0x4000000000000000 softirq=59634/59635 fqs=0
rcu: 	(detected by 1, t=10502 jiffies, g=83209, q=29 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 17205 Comm: syz.4.3248 Not tainted 6.6.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:__lock_acquire+0x250/0x7c80 kernel/locking/lockdep.c:5046
Code: 48 8b 44 24 20 4c 8d b0 e0 0a 00 00 48 8b 74 24 60 83 fe 31 0f 83 20 67 00 00 48 8d 04 b6 49 8d 54 c6 f8 49 89 d6 49 c1 ee 03 <43> 0f b6 04 06 84 c0 0f 85 29 67 00 00 48 83 7d 10 00 0f 84 df 00
RSP: 0018:ffffc900000077a0 EFLAGS: 00000802
RAX: 0000000000000005 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88802d634700 RSI: 0000000000000001 RDI: ffffffff8d3d62c0
RBP: ffffc900000079e8 R08: dffffc0000000000 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff1c94f9e R12: 0000000000000001
R13: 0000000000000000 R14: 1ffff11005ac68e0 R15: 0000000000000000
FS:  00007f54ca5f36c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f54ca5b1d58 CR3: 00000000604cf000 CR4: 00000000003506f0
Call Trace:
 <IRQ>
 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754
 debug_objects_fill_pool+0x92/0x6b0 lib/debugobjects.c:615
 debug_object_activate+0x36/0x4b0 lib/debugobjects.c:705
 debug_hrtimer_activate kernel/time/hrtimer.c:450 [inline]
 debug_activate kernel/time/hrtimer.c:505 [inline]
 enqueue_hrtimer+0x30/0x370 kernel/time/hrtimer.c:1113
 __run_hrtimer kernel/time/hrtimer.c:1772 [inline]
 __hrtimer_run_queues+0x637/0xc40 kernel/time/hrtimer.c:1819
 hrtimer_interrupt+0x3c9/0x9c0 kernel/time/hrtimer.c:1881
 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:lock_is_held_type+0x50/0x190 kernel/locking/lockdep.c:5818
Code: 3d e0 96 dd 03 00 0f 84 03 01 00 00 65 8b 05 2f 6f 95 75 85 c0 0f 85 f4 00 00 00 65 48 8b 1d 27 9f 96 75 83 bb dc 0a 00 00 00 <0f> 85 df 00 00 00 41 89 f7 49 89 fe 48 c7 04 24 00 00 00 00 9c 8f
RSP: 0018:ffffc90010f77b18 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88802d633c00 RCX: ffff88802d633c00
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8cd2fc00
RBP: 00000000ffffffff R08: ffffffff8e4a7cef R09: 1ffffffff1c94f9d
R10: dffffc0000000000 R11: fffffbfff1c94f9e R12: 000000000000a2a4
R13: dffffc0000000000 R14: 00002000000000c0 R15: dffffc0000000000
 lock_is_held include/linux/lockdep.h:288 [inline]
 __might_resched+0xa7/0x610 kernel/sched/core.c:10171
 do_recvmmsg+0x53b/0x7d0 net/socket.c:2984
 __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:0x7f54c978e9a9
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:00007f54ca5f3038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f54c99b6080 RCX: 00007f54c978e9a9
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003
RBP: 00007f54c9810ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f54c99b6080 R15: 00007ffe3d5ab548
 </TASK>
rcu: rcu_preempt kthread starved for 10502 jiffies! g83209 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:26568 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x14e2/0x4580 kernel/sched/core.c:6700
 schedule+0xbd/0x170 kernel/sched/core.c:6774
 schedule_timeout+0x160/0x280 kernel/time/timer.c:2167
 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: 9446 Comm: kworker/u4:5 Not tainted 6.6.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0xddf/0x1130 kernel/smp.c:855
Code: 45 8b 2c 24 44 89 ee 83 e6 01 31 ff e8 ea d6 0a 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 07 e8 25 d3 0a 00 eb 38 f3 90 <42> 0f b6 04 2b 84 c0 75 11 41 f7 04 24 01 00 00 00 74 1e e8 09 d3
RSP: 0018:ffffc900145af780 EFLAGS: 00000293
RAX: ffffffff817ac327 RBX: 1ffff110171c87d9 RCX: ffff8880305d1e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900145af900 R08: ffffffff90da2527 R09: 1ffffffff21b44a4
R10: dffffc0000000000 R11: fffffbfff21b44a5 R12: ffff8880b8e43ec8
R13: dffffc0000000000 R14: ffff8880b8f3d588 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31119ff8 CR3: 000000000cb30000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023
 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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/18 08:32 linux-6.6.y d96eb99e2f0e 88248e14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in sys_recvmmsg
* Struck through repros no longer work on HEAD.