syzbot


INFO: rcu detected stall in rtnl_setlink

Status: auto-obsoleted due to no activity on 2024/10/03 07:39
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+8779eecd909c53e87e24@syzkaller.appspotmail.com
First crash: 390d, last: 228d
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 1147d 1147d 0/28 auto-closed as invalid on 2021/11/30 03:45
linux-4.14 BUG: soft lockup in rtnl_setlink 1 892d 892d 0/1 auto-obsoleted due to no activity on 2022/09/10 23:34
android-5-15 BUG: soft lockup in rtnl_setlink 1 177d 177d 0/2 auto-obsoleted due to no activity on 2024/07/27 10:01
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/10/03 07:18 21m retest repro linux-5.15.y OK log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/03/04 18:57 5h29m fix candidate upstream OK (2) job log

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-...!: (1 GPs behind) idle=76f/1/0x4000000000000000 softirq=22214/22217 fqs=30 
	(t=10502 jiffies g=26445 q=564)
rcu: rcu_preempt kthread starved for 10443 jiffies! g26445 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
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:26712 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3599 Comm: kworker/u4:4 Not tainted 5.15.151-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:121 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x5cc/0xc40 kernel/locking/qspinlock.c:508
Code: c0 0f 85 48 01 00 00 48 8b 44 24 08 c6 00 01 bb 00 80 ff ff eb 06 f3 90 ff c3 74 5e 41 0f b6 44 15 00 84 c0 75 36 41 80 3f 00 <75> ea 4c 89 ff be 02 00 00 00 e8 35 05 66 00 48 ba 00 00 00 00 00
RSP: 0000:ffffc90004317840 EFLAGS: 00000206
RAX: 0000000000000000 RBX: 00000000ffffbff8 RCX: ffffffff8162f4e8
RDX: dffffc0000000000 RSI: ffffffff8a8b1500 RDI: ffffffff8ad88f40
RBP: ffffc90004317938 R08: dffffc0000000000 R09: fffffbfff1f79e38
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9a3b114
R13: 1ffff1100e163266 R14: 1ffff11017340001 R15: ffff888070b19330
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f157bf52000 CR3: 0000000019a82000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath+0x42/0x50 arch/x86/include/asm/qspinlock.h:51
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x269/0x370 kernel/locking/spinlock_debug.c:115
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 batadv_tt_local_commit_changes+0x1a/0x30 net/batman-adv/translation-table.c:3717
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:812 [inline]
 batadv_iv_ogm_schedule+0x26c/0x1000 net/batman-adv/bat_iv_ogm.c:869
 batadv_iv_send_outstanding_bat_ogm_packet+0x6fa/0x800 net/batman-adv/bat_iv_ogm.c:1713
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
NMI backtrace for cpu 1
CPU: 1 PID: 7791 Comm: syz-executor.2 Not tainted 5.15.151-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: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+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:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 7c 68 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90004956960 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff9200092ad38 RCX: ffffffff816340b2
RDX: dffffc0000000000 RSI: ffffffff8a8b27a0 RDI: ffffffff8ad88f40
RBP: ffffc90004956ac0 R08: dffffc0000000000 R09: fffffbfff1f79e36
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200092ad34
R13: dffffc0000000000 R14: ffffc900049569c0 R15: 0000000000000246
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 batadv_tt_local_purge_pending_clients+0xf7/0x380 net/batman-adv/translation-table.c:3654
 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_hardif_enable_interface+0x737/0x9e0 net/batman-adv/hard-interface.c:757
 batadv_softif_slave_add+0x75/0xf0 net/batman-adv/soft-interface.c:842
 do_set_master net/core/rtnetlink.c:2543 [inline]
 do_setlink+0xe71/0x3ae0 net/core/rtnetlink.c:2748
 rtnl_setlink+0x3eb/0x540 net/core/rtnetlink.c:3034
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5629
 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]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2485
 __sys_sendmsg net/socket.c:2514 [inline]
 __do_sys_sendmsg net/socket.c:2523 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2521
 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:0x7fc2812a0da9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc27f8210c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fc2813cef80 RCX: 00007fc2812a0da9
RDX: 0000000000000000 RSI: 0000000020000c80 RDI: 0000000000000003
RBP: 00007fc2812ed47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fc2813cef80 R15: 00007ffd63a09ec8
 </TASK>

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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/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.