syzbot


INFO: rcu detected stall in sys_recvmsg

Status: upstream: reported on 2025/08/10 06:16
Reported-by: syzbot+624e0eff6200cf7fb62e@syzkaller.appspotmail.com
First crash: 97d, last: 58d
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in sys_recvmsg 1 1 120d 120d 0/3 auto-obsoleted due to no activity on 2025/10/25 13:40
linux-6.6 INFO: rcu detected stall in sys_recvmsg 1 2 79d 79d 0/2 upstream: reported on 2025/08/27 15:10
android-5-15 BUG: soft lockup in sys_recvmsg 1 10 511d 598d 0/2 auto-obsoleted due to no activity on 2024/09/19 17:52
android-5-10 BUG: soft lockup in sys_recvmsg (2) 1 C 2 26d 206d 0/2 upstream: reported C repro on 2025/04/23 03:10
android-5-10 BUG: soft lockup in sys_recvmsg 1 4 495d 574d 0/2 auto-obsoleted due to no activity on 2024/10/05 13:04

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-....: (1 GPs behind) idle=f57/1/0x4000000000000002 softirq=6354/6355 fqs=5247 
	(detected by 1, t=10502 jiffies, g=7073, q=1802)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4317 Comm: syz.2.8 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:lockdep_recursion_inc kernel/locking/lockdep.c:431 [inline]
RIP: 0010:lockdep_hardirqs_on_prepare+0x1a8/0x760 kernel/locking/lockdep.c:4277
Code: 98 e0 0a 00 00 48 8d b8 c8 0a 00 00 48 89 f8 48 c1 e8 03 80 3c 10 00 74 05 e8 04 6e 60 00 4c 8b 74 24 10 49 89 9e c8 0a 00 00 <48> c7 c7 20 26 0b 8a e8 bc 39 4d 08 65 ff 05 75 b3 a6 7e 49 8d 9e
RSP: 0018:ffffc90000007620 EFLAGS: 00000046
RAX: 1ffff110045cdc81 RBX: 2200e5c68216408c RCX: ffffffff960c2f03
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff888022e6e408
RBP: ffffc900000076d8 R08: dffffc0000000000 R09: ffffed1017207662
R10: ffffed1017207662 R11: 1ffff11017207661 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888022e6d940 R15: 0000000000000000
FS:  00007f473baf16c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32807ff8 CR3: 0000000079cd5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 trace_hardirqs_on+0x67/0x80 kernel/trace/trace_preemptirq.c:49
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:713
RIP: 0010:rcu_read_unlock_special+0x84/0x480 kernel/rcu/tree_plugin.h:674
Code: f1 f1 f1 00 f2 f2 f2 4a 89 04 2b 66 42 c7 44 2b 09 f3 f3 42 c6 44 2b 0b f3 65 44 8b 35 ad 13 9e 7e 41 f7 c6 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 2b 00 00 00 00 66 42 c7 44 2b
RSP: 0018:ffffc900000077a0 EFLAGS: 00000206
RAX: 6cc633c772867500 RBX: 1ffff92000000ef8 RCX: 6cc633c772867500
RDX: dffffc0000000000 RSI: ffffffff8a0b1820 RDI: ffffffff8a59a480
RBP: ffffc90000007880 R08: dffffc0000000000 R09: fffffbfff1ff7839
R10: fffffbfff1ff7839 R11: 1ffffffff1ff7838 R12: ffffffff8c120b00
R13: dffffc0000000000 R14: 0000000000000246 R15: 0000000000000001
 __rcu_read_unlock+0x78/0xd0 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:771 [inline]
 ndisc_send_skb+0xdc4/0x14a0 net/ipv6/ndisc.c:521
 addrconf_rs_timer+0x2b8/0x600 net/ipv6/addrconf.c:3956
 call_timer_fn+0x16c/0x530 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x525/0x7c0 kernel/time/timer.c:1767
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
 handle_softirqs+0x328/0x820 kernel/softirq.c:576
 __do_softirq kernel/softirq.c:610 [inline]
 invoke_softirq kernel/softirq.c:450 [inline]
 __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:659
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa0/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+0x1f2/0x3f0 kernel/locking/lockdep.c:5627
Code: 00 9c 8f 84 24 80 00 00 00 f6 84 24 81 00 00 00 02 0f 85 f6 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 66 43 c7 44 3d 09 00 00 43 c6 44 3d 0b
RSP: 0018:ffffc9000120f0c0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 6cc633c772867500
RDX: 0000000000000000 RSI: ffffffff8a0b2ac0 RDI: ffffffff8a59a480
RBP: ffffc9000120f1e0 R08: dffffc0000000000 R09: fffffbfff1ff7821
R10: fffffbfff1ff7821 R11: 1ffffffff1ff7820 R12: ffff8880b9035578
R13: 1ffff92000241e24 R14: 0000000000000246 R15: dffffc0000000000
 local_lock_acquire+0x34/0x170 include/linux/local_lock_internal.h:29
 lru_cache_add+0x3bc/0x750 mm/swap.c:450
 wp_page_copy+0xde8/0x1fd0 mm/memory.c:3117
 handle_pte_fault mm/memory.c:4668 [inline]
 __handle_mm_fault mm/memory.c:4785 [inline]
 handle_mm_fault+0x1eca/0x43c0 mm/memory.c:4883
 do_user_addr_fault+0x489/0xc80 arch/x86/mm/fault.c:1357
 handle_page_fault arch/x86/mm/fault.c:1445 [inline]
 exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1501
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 90 90 90 90 90 90 90 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 90 90 90 90 90 90 90 90 90 90 89 d1 83 f8
RSP: 0018:ffffc9000120f738 EFLAGS: 00050206
RAX: ffffffff83d89801 RBX: 00000000000101d0 RCX: 0000000000009b40
RDX: 00000000000101d0 RSI: ffff88805e806778 RDI: 0000200000037000
RBP: ffffc9000120f898 R08: dffffc0000000000 R09: ffffed100bd02057
R10: 0000000000000000 R11: 0000000000002030 R12: ffff88805e8000e8
R13: dffffc00000000ff R14: 0000200000030970 R15: 0000000000030570
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline]
 copyout lib/iov_iter.c:157 [inline]
 _copy_to_iter+0x314/0x1160 lib/iov_iter.c:669
 __skb_datagram_iter+0xde/0x740 net/core/datagram.c:425
 skb_copy_datagram_iter+0xad/0x1f0 net/core/datagram.c:541
 skb_copy_datagram_msg include/linux/skbuff.h:3773 [inline]
 tipc_recvstream+0x727/0xe70 net/tipc/socket.c:2071
 ____sys_recvmsg+0x291/0x580 net/socket.c:-1
 ___sys_recvmsg+0x1af/0x4f0 net/socket.c:2697
 __sys_recvmsg net/socket.c:2727 [inline]
 __do_sys_recvmsg net/socket.c:2737 [inline]
 __se_sys_recvmsg net/socket.c:2734 [inline]
 __x64_sys_recvmsg+0x1dd/0x2a0 net/socket.c:2734
 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:0x7f473d8aaba9
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:00007f473baf1038 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f473daf2090 RCX: 00007f473d8aaba9
RDX: 0000000000001f00 RSI: 0000200000000500 RDI: 0000000000000006
RBP: 00007f473d92de19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f473daf2128 R14: 00007f473daf2090 R15: 00007ffdb0d3b758
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/18 07:13 linux-5.15.y 43bb85222e53 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_recvmsg
2025/08/10 06:15 linux-5.15.y c79648372d02 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_recvmsg
* Struck through repros no longer work on HEAD.