syzbot


INFO: rcu detected stall in rtnl_newlink
Status: upstream: reported C repro on 2020/07/24 05:44
Reported-by: syzbot+d46d08c4209a3a86ccc5@syzkaller.appspotmail.com
First crash: 672d, last: 3d14h

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in rtnl_newlink C error 5 102d 671d 0/1 upstream: reported C repro on 2020/07/24 01:06
linux-4.14 BUG: soft lockup in rtnl_newlink 1 120d 120d 0/1 auto-closed as invalid on 2022/05/26 06:33

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-...!: (10495 ticks this GP) idle=816/1/0x4000000000000000 softirq=9274/9274 fqs=0 
	(t=10502 jiffies g=8813 q=46)
rcu: rcu_preempt kthread starved for 10503 jiffies! g8813 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
rcu_preempt     I29112    10      2 0x00004000
Call Trace:
 context_switch kernel/sched/core.c:3458 [inline]
 __schedule+0x8ea/0x2210 kernel/sched/core.c:4219
 schedule+0xd0/0x2a0 kernel/sched/core.c:4294
 schedule_timeout+0x148/0x250 kernel/time/timer.c:1908
 rcu_gp_fqs_loop kernel/rcu/tree.c:1874 [inline]
 rcu_gp_kthread+0xae5/0x1b50 kernel/rcu/tree.c:2044
 kthread+0x3b5/0x4a0 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293
NMI backtrace for cpu 1
CPU: 1 PID: 6808 Comm: syz-executor429 Not tainted 5.8.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x18f/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x194/0x1cf kernel/rcu/tree_stall.h:320
 print_cpu_stall kernel/rcu/tree_stall.h:553 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:627 [inline]
 rcu_pending kernel/rcu/tree.c:3489 [inline]
 rcu_sched_clock_irq.cold+0x5b3/0xccc kernel/rcu/tree.c:2504
 update_process_times+0x25/0x60 kernel/time/timer.c:1737
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:176
 tick_sched_timer+0x108/0x290 kernel/time/tick-sched.c:1320
 __run_hrtimer kernel/time/hrtimer.c:1520 [inline]
 __hrtimer_run_queues+0x1d5/0xfc0 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x142/0x5e0 arch/x86/kernel/apic/apic.c:1097
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 sysvec_apic_timer_interrupt+0xe0/0x120 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline]
RIP: 0010:lock_acquire+0x270/0xad0 kernel/locking/lockdep.c:4962
Code: 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 f8 06 00 00 48 83 3d 45 d1 5a 08 00 0f 84 a6 05 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 03 44 24 10 48 c7
RSP: 0018:ffffc900010c6cb0 EFLAGS: 00000282
RAX: 1ffffffff1369c11 RBX: ffff8880957f2180 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000282
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8c59aadf
R10: fffffbfff18b355b R11: 0000000000000000 R12: 0000000000000000
R13: ffff88808de00818 R14: 0000000000000000 R15: ffff8880957f2180
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175
 spin_lock_bh include/linux/spinlock.h:358 [inline]
 batadv_tt_local_purge_pending_clients+0x119/0x460 net/batman-adv/translation-table.c:3895
 batadv_tt_local_resize_to_mtu+0x96/0x130 net/batman-adv/translation-table.c:4198
 batadv_hardif_activate_interface.part.0.cold+0x14c/0x1ba net/batman-adv/hard-interface.c:653
 batadv_hardif_activate_interface net/batman-adv/hard-interface.c:800 [inline]
 batadv_hardif_enable_interface+0xa7d/0xb10 net/batman-adv/hard-interface.c:792
 batadv_softif_slave_add+0x92/0x150 net/batman-adv/soft-interface.c:892
 do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2476
 do_setlink+0x903/0x35c0 net/core/rtnetlink.c:2611
 __rtnl_newlink+0xc21/0x1750 net/core/rtnetlink.c:3272
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3398
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5461
 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2469
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2352
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2406
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2439
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4437d9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 0f fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe88a73de8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004437d9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000004
RBP: 00007ffe88a73df0 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000001bbbbbb R11: 0000000000000246 R12: 00007ffe88a73e00
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/10/06 14:24 upstream 60a9483534ed cb93dc6a .config log report syz C
ci-upstream-kasan-gce-root 2021/05/17 21:57 upstream d07f6ca923ea cb93dc6a .config log report syz C
ci-upstream-kasan-gce-root 2021/03/12 02:13 upstream f78d76e72a46 cb93dc6a .config log report syz C
ci-upstream-kasan-gce-root 2021/01/27 10:14 upstream 2ab38c17aac1 cb93dc6a .config log report syz C
ci-upstream-kasan-gce-root 2020/11/15 16:40 upstream e28c0d7c92c8 cb93dc6a .config log report syz C
ci-upstream-kasan-gce-root 2020/09/20 05:19 upstream 325d0eab4f31 cb93dc6a .config log report syz C
Crashes (194):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2020/07/28 03:41 upstream 92ed30191993 cb93dc6a .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/07/25 13:47 upstream 68845a55c31b 1f7cc1ca .config log report syz C
ci-upstream-kasan-gce-386 2020/07/25 13:00 upstream 68845a55c31b 1f7cc1ca .config log report syz C
ci-upstream-net-this-kasan-gce 2020/07/24 01:03 net e6827d1abdc9 70c104a1 .config log report syz C
ci-upstream-net-kasan-gce 2020/07/23 23:18 net-next 7fc3b978a897 70c104a1 .config log report syz C
ci-upstream-kasan-gce-root 2022/05/23 09:56 upstream 4b0986a3613c 4c7657cb .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/05/21 15:26 upstream 3b5e1590a267 7268fa62 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-smack-root 2022/05/19 12:54 upstream f993aed406ea 50c53f39 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-smack-root 2022/05/15 09:59 upstream 2fe1020d73ca 744a39e2 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/04/16 22:46 upstream 90ea17a9e27b 8bcc32a6 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/04/14 12:45 upstream a19944809fe9 b17b2923 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/03/30 05:30 upstream 1930a6e739c4 6bdac766 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/03/20 11:10 upstream 14702b3b2438 e2d91b1d .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/03/19 00:32 upstream 34e047aa16c0 e2d91b1d .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/03/15 05:03 upstream 09688c0166e7 9e8eaa75 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/03/14 20:38 upstream 09688c0166e7 9e8eaa75 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/03/14 08:08 upstream f0e18b03fcaf 9e8eaa75 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/03/10 10:58 upstream e7e19defa575 9e8eaa75 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-smack-root 2022/03/08 14:35 upstream ea4424be1688 7bdd8b2c .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/02/28 15:25 upstream 7e57714cd0ad 45a13a73 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/02/28 07:49 upstream 52a025546731 45a13a73 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/27 19:36 upstream 2293be58d6a1 45a13a73 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/26 19:36 upstream 9137eda53752 45a13a73 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/02/26 09:23 upstream 9137eda53752 45a13a73 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/25 10:55 upstream 73878e5eb1bd 7c337266 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-root 2022/02/23 21:50 upstream 23d04328444a 6e821dbf .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/23 03:36 upstream 917bbdb107f8 6e821dbf .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/22 21:34 upstream 917bbdb107f8 6e821dbf .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/18 07:56 upstream 9195e5e0adbb 3cd800e4 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/17 06:08 upstream 359303076163 2bea8a27 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/17 01:01 upstream 359303076163 2bea8a27 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce 2022/02/13 17:16 upstream b81b1829e7e3 8b9ca619 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-selinux-root 2021/12/28 18:06 upstream a8ad9a2434dc 76c8cf06 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-386 2022/03/12 10:30 upstream 68453767131a 9e8eaa75 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-kasan-gce-386 2022/03/09 10:47 upstream 330f4c53d3c2 9e8eaa75 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/05/20 16:52 net 9b80ccda233f bd37ad7e .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/05/17 18:51 net edf410cb74dc 744a39e2 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/04/25 18:33 net c4c89a6ad8e1 c889aef9 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/04/16 21:20 net d08ed852560e 8bcc32a6 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/04/16 19:45 net d08ed852560e 8bcc32a6 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/04/15 11:31 net 29e8e659f984 8bcc32a6 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/04/11 01:37 net 8d3a6c37d50d e22c3da3 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/03/30 20:35 net 77c9387c0c5b 42718dd6 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/03/26 23:28 net 2eca426d37e7 89bc8608 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/03/22 15:46 net 6a7d8cff4a33 d88ef0c5 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/03/20 19:21 net 0caf6d992219 e2d91b1d .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/03/13 18:21 net 8e6ed963763f 9e8eaa75 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/02/15 06:20 net 6605cc67ca18 8b9ca619 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-this-kasan-gce 2022/02/14 02:15 net 143de8d97d79 8b9ca619 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-bpf-kasan-gce 2021/06/22 04:40 bpf 781dd0431eb5 aba2b2fb .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2022/04/01 06:32 net-next 2975dbdc3989 68fc921a .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2022/04/01 02:51 net-next 2975dbdc3989 68fc921a .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2022/03/27 02:25 net-next 169e77764adc 89bc8608 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2022/03/24 10:56 net-next 89695196f0ba 89bc8608 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2022/03/05 22:36 net-next d59e3cbaef70 7bdd8b2c .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2022/02/20 17:57 net-next 48c77bdf729a 3cd800e4 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2022/02/16 19:50 net-next 5a8fb33e5305 8b9ca619 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-bpf-next-kasan-gce 2021/11/25 22:14 bpf-next fa721d4f0b91 63eeac02 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-linux-next-kasan-gce-root 2022/02/14 22:52 linux-next ef6b35306dd8 8b9ca619 .config log report info INFO: rcu detected stall in rtnl_newlink
ci-upstream-net-kasan-gce 2020/12/28 09:52 net-next 3db1a3fa9880 2242f77f .config log report info
ci-upstream-net-kasan-gce 2020/07/23 21:36 net-next 7fc3b978a897 70c104a1 .config log report