syzbot


INFO: rcu detected stall in rtnl_setlink

Status: upstream: reported C repro on 2023/09/28 05:42
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+8779eecd909c53e87e24@syzkaller.appspotmail.com
First crash: 239d, last: 77d
Bug presence (2)
Date Name Commit Repro Result
2024/02/06 linux-5.15.y (ToT) 6139f2a02fe0 C [report] INFO: rcu detected stall in rtnl_setlink
2024/02/06 upstream (ToT) 99bd3cb0d12e C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in rtnl_setlink batman 1 996d 996d 0/26 auto-closed as invalid on 2021/11/30 03:45
linux-4.14 BUG: soft lockup in rtnl_setlink 1 741d 741d 0/1 auto-obsoleted due to no activity on 2022/09/10 23:34
android-5-15 BUG: soft lockup in rtnl_setlink 1 26d 26d 0/2 premoderation: reported on 2024/04/28 09:57
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/03/04 18:57 5h29m fix candidate upstream job log (2)

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (10490 ticks this GP) idle=53b/1/0x4000000000000000 softirq=4818/4818 fqs=5250 
	(t=10502 jiffies g=3897 q=113)
NMI backtrace for cpu 0
CPU: 0 PID: 3528 Comm: syz-executor256 Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb 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:1788
 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:1685 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 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+0x8c/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:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x16c/0x1f0 kernel/softirq.c:390
Code: 8a e8 58 43 cf 08 65 66 8b 05 90 32 b6 7e 66 85 c0 75 57 bf 01 00 00 00 e8 c1 dc 09 00 e8 ac 50 39 00 fb 65 8b 05 7c 15 b5 7e <85> c0 75 05 e8 0b 2d b3 ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c
RSP: 0018:ffffc90002df65a0 EFLAGS: 00000286
RAX: 0000000000000201 RBX: 1ffff920005becb8 RCX: ffffffff8162ee28
RDX: dffffc0000000000 RSI: ffffffff8a8b0f80 RDI: ffffffff8ad87e40
RBP: ffffc90002df6648 R08: dffffc0000000000 R09: fffffbfff1f7a034
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff920005becbc R14: ffffc90002df65e0 R15: 0000000000000201
 spin_unlock_bh include/linux/spinlock.h:408 [inline]
 batadv_tt_local_purge_pending_clients+0x2f1/0x380 net/batman-adv/translation-table.c:3673
 batadv_tt_local_resize_to_mtu+0x90/0x130 net/batman-adv/translation-table.c:3957
 batadv_update_min_mtu net/batman-adv/hard-interface.c:647 [inline]
 batadv_hardif_activate_interface+0x1ca/0x390 net/batman-adv/hard-interface.c:674
 batadv_hard_if_event+0xbc/0x17a0 net/batman-adv/hard-interface.c:965
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391
 __dev_notify_flags+0x304/0x610
 dev_change_flags+0xe7/0x190 net/core/dev.c:8886
 vlan_device_event+0x442/0x1dd0 net/8021q/vlan.c:469
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391
 __dev_notify_flags+0x304/0x610
 dev_change_flags+0xe7/0x190 net/core/dev.c:8886
 do_setlink+0xcd1/0x3ae0 net/core/rtnetlink.c:2741
 rtnl_setlink+0x3eb/0x540 net/core/rtnetlink.c:3034
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5630
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 sock_write_iter+0x39b/0x530 net/socket.c:1079
 do_iter_readv_writev+0x594/0x7a0
 do_iter_write+0x1ea/0x760 fs/read_write.c:855
 vfs_writev fs/read_write.c:928 [inline]
 do_writev+0x281/0x470 fs/read_write.c:971
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fd7f1ba0da9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe3f6ddf28 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd7f1ba0da9
RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000008
RBP: 00000000000f4240 R08: 0000000100000000 R09: 0000000100000000
R10: 0000000100000000 R11: 0000000000000246 R12: 00007ffe3f6ddf80
R13: 0000000000000001 R14: 00007ffe3f6ddf80 R15: 0000000000000003
 </TASK>

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/06 15:52 linux-5.15.y 6139f2a02fe0 6404acf9 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2024/03/08 01:06 linux-5.15.y 574362648507 2b789849 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2024/02/14 19:18 linux-5.15.y 6139f2a02fe0 d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2024/02/05 23:27 linux-5.15.y 6139f2a02fe0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2023/11/29 02:16 linux-5.15.y a78d278e01b1 1adfb6f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2023/11/09 19:07 linux-5.15.y 80529b4968a8 56230772 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2023/11/08 21:43 linux-5.15.y 80529b4968a8 b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2023/11/08 16:06 linux-5.15.y 12952a23a5da b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2023/10/25 22:52 linux-5.15.y 12952a23a5da 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2023/10/09 19:20 linux-5.15.y 1edcec18cfb7 3c53c7d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2023/09/28 05:42 linux-5.15.y b911329317b4 c2ab1e5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_setlink
2024/03/08 00:54 linux-5.15.y 574362648507 2b789849 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in rtnl_setlink
2024/02/23 12:59 linux-5.15.y 458ce51d0356 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in rtnl_setlink
2024/01/25 19:44 linux-5.15.y ddcaf4999061 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in rtnl_setlink
2023/10/06 20:26 linux-5.15.y 1edcec18cfb7 ea12a918 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in rtnl_setlink
2023/10/05 19:09 linux-5.15.y b911329317b4 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: soft lockup in rtnl_setlink
* Struck through repros no longer work on HEAD.