syzbot


INFO: rcu detected stall in sys_sendto

Status: upstream: reported on 2024/08/14 09:09
Reported-by: syzbot+a035b2d0b8a81221ca32@syzkaller.appspotmail.com
First crash: 69d, last: 69d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_sendto (2) kernel 93 1749d 1749d 0/28 closed as dup on 2020/01/08 06:15
upstream INFO: rcu detected stall in sys_sendto (6) net 1 333d 333d 0/28 closed as invalid on 2024/02/01 10:31
linux-6.1 INFO: rcu detected stall in sys_sendto origin:upstream C error 1 46d 270d 0/3 upstream: reported C repro on 2024/01/26 15:19
upstream INFO: rcu detected stall in sys_sendto kernel 357 1784d 1785d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_sendto (7) usb C error 78 10h58m 154d 0/28 upstream: reported C repro on 2024/05/21 18:44
upstream INFO: rcu detected stall in sys_sendto (5) perf 7 995d 1116d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_sendto (4) perf 1 1574d 1574d 0/28 auto-closed as invalid on 2020/09/29 07:17
upstream INFO: rcu detected stall in sys_sendto (3) kernel 1 1652d 1652d 0/28 closed as invalid on 2020/05/21 18:32
android-5-10 BUG: soft lockup in sys_sendto 2 433d 470d 0/2 auto-obsoleted due to no activity on 2023/11/14 13:19
android-5-15 BUG: soft lockup in sys_sendto 1 125d 125d 0/2 auto-obsoleted due to no activity on 2024/09/16 21:53

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-....: (2765 ticks this GP) idle=ec3/1/0x4000000000000000 softirq=52628/52634 fqs=2810 
	(t=10501 jiffies g=69061 q=1024)
NMI backtrace for cpu 1
CPU: 1 PID: 13759 Comm: syz-executor Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/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:1686 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:ffs arch/x86/include/asm/bitops.h:297 [inline]
RIP: 0010:handle_softirqs+0x1d6/0x930 kernel/softirq.c:546
Code: 24 78 4c 89 7c 24 70 0f b7 db 48 c7 c7 e0 10 8a 8a e8 8e 9e e5 08 65 66 c7 05 44 15 b6 7e 00 00 e8 0f 5e 39 00 fb 89 5c 24 34 <b8> ff ff ff ff 0f bc 44 24 34 41 89 c6 41 ff c6 0f 85 f3 00 00 00
RSP: 0018:ffffc90000dd0e20 EFLAGS: 00000282
RAX: 5b17b3675a6bd500 RBX: 0000000000000386 RCX: ffffffff816319d8
RDX: dffffc0000000000 RSI: ffffffff8a8b2a00 RDI: ffffffff8ad8f800
RBP: ffffc90000dd0f30 R08: dffffc0000000000 R09: fffffbfff1f8e01d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888024a2d940
R13: 1ffff920001ba1e8 R14: dffffc0000000000 R15: 1ffff920001ba1d8
 __do_softirq kernel/softirq.c:592 [inline]
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_release+0x62d/0x9a0 kernel/locking/lockdep.c:5647
Code: 3c 3b 00 74 08 4c 89 f7 e8 d0 5c 67 00 f6 84 24 91 00 00 00 02 75 6f 41 f7 c5 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 4b c7 44 27 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc900036369c0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff920006c6d4a RCX: ffffc90003636a03
RDX: 0000000000000005 RSI: ffffffff8a8b3ca0 RDI: ffffffff8ad8f800
RBP: ffffc90003636af0 R08: dffffc0000000000 R09: fffffbfff1bd2986
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920006c6d44
R13: 0000000000000246 R14: ffffc90003636a50 R15: dffffc0000000000
 rcu_read_unlock include/linux/rcupdate.h:772 [inline]
 is_bpf_text_address+0x24f/0x260 kernel/bpf/core.c:723
 kernel_text_address kernel/extable.c:151 [inline]
 __kernel_text_address+0x94/0x100 kernel/extable.c:105
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0x8e/0xc0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3220 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233
 kmem_cache_zalloc include/linux/slab.h:711 [inline]
 lsm_inode_alloc security/security.c:595 [inline]
 security_inode_alloc+0x24/0x110 security/security.c:1033
 inode_init_always+0x939/0xc70 fs/inode.c:207
 alloc_inode fs/inode.c:243 [inline]
 new_inode_pseudo+0x8f/0x210 fs/inode.c:937
 new_inode+0x25/0x1d0 fs/inode.c:966
 debugfs_get_inode fs/debugfs/inode.c:72 [inline]
 __debugfs_create_file+0x147/0x500 fs/debugfs/inode.c:409
 add_sta_files net/mac80211/debugfs_netdev.c:699 [inline]
 add_files net/mac80211/debugfs_netdev.c:818 [inline]
 ieee80211_debugfs_add_netdev+0x7f4/0xea0 net/mac80211/debugfs_netdev.c:843
 ieee80211_if_add+0xdba/0x1e50 net/mac80211/iface.c:2036
 ieee80211_register_hw+0x2aa9/0x39d0 net/mac80211/main.c:1321
 mac80211_hwsim_new_radio+0x223d/0x4200 drivers/net/wireless/mac80211_hwsim.c:3374
 hwsim_new_radio_nl+0xbae/0x1090 drivers/net/wireless/mac80211_hwsim.c:3950
 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0xfbd/0x14a0 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1352
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1920
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 __sys_sendto+0x564/0x720 net/socket.c:2058
 __do_sys_sendto net/socket.c:2070 [inline]
 __se_sys_sendto net/socket.c:2066 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2066
 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:0x7f54ae06978c
Code: 2a 5a 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 70 5a 02 00 48 8b
RSP: 002b:00007fff2a5665c0 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f54aed32620 RCX: 00007f54ae06978c
RDX: 0000000000000024 RSI: 00007f54aed32670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fff2a566614 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f54aed32670 R15: 0000000000000000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/14 09:08 linux-5.15.y 7e89efd3ae1c 07a4d4ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_sendto
* Struck through repros no longer work on HEAD.