syzbot


INFO: rcu detected stall in rtnl_newlink

Status: upstream: reported syz repro on 2024/11/02 18:01
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+857a95f9ec4b731467a1@syzkaller.appspotmail.com
First crash: 40d, last: 40d
Bug presence (1)
Date Name Commit Repro Result
2024/11/08 upstream (ToT) 906bd684e4b1 C [report] INFO: rcu detected stall in rtnl_newlink
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in rtnl_newlink (2) 3 183d 275d 0/3 auto-obsoleted due to no activity on 2024/09/20 22:26
upstream INFO: rcu detected stall in rtnl_newlink batman C done inconclusive 201 800d 1603d 0/28 auto-obsoleted due to no activity on 2023/02/01 16:38
upstream INFO: rcu detected stall in rtnl_newlink (4) fs batman C error 9 211d 288d 25/28 fixed on 2024/05/22 23:36
upstream INFO: rcu detected stall in rtnl_newlink (3) batman C error done 3 475d 525d 0/28 auto-obsoleted due to no activity on 2023/12/03 18:15
linux-6.1 INFO: rcu detected stall in rtnl_newlink 1 430d 430d 0/3 auto-obsoleted due to no activity on 2024/01/17 21:04
linux-5.15 BUG: soft lockup in rtnl_newlink origin:lts-only C inconclusive 65 152d 644d 0/3 auto-obsoleted due to no activity on 2024/10/21 17:39
linux-4.19 INFO: rcu detected stall in rtnl_newlink C error 7 730d 1603d 0/1 upstream: reported C repro on 2020/07/24 01:06
upstream INFO: rcu detected stall in rtnl_newlink (2) net 1 669d 669d 0/28 auto-obsoleted due to no activity on 2023/05/13 18:46
android-5-15 BUG: soft lockup in rtnl_newlink 7 129d 239d 0/2 auto-obsoleted due to no activity on 2024/11/04 06:23
android-6-1 BUG: soft lockup in rtnl_newlink 2 143d 153d 0/2 auto-obsoleted due to no activity on 2024/10/20 23:12
linux-4.14 BUG: soft lockup in rtnl_newlink 1 1052d 1052d 0/1 auto-closed as invalid on 2022/05/26 06:33
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/11/17 03:05 14m retest repro linux-5.15.y report log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...0: (1 GPs behind) idle=641/1/0x4000000000000000 softirq=6710/6712 fqs=5247 
	(detected by 1, t=10502 jiffies, g=7537, q=451)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4245 Comm: syz-executor Not tainted 5.15.170-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:84 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x71/0x290 mm/kasan/generic.c:189
Code: 54 37 ff 49 c1 ea 03 49 bb 01 00 00 00 00 fc ff df 4f 8d 34 1a 4c 89 f5 4c 29 cd 48 83 fd 10 7f 26 48 85 ed 0f 84 3a 01 00 00 <49> f7 d2 49 01 da 41 80 39 00 0f 85 c4 01 00 00 49 ff c1 49 ff c2
RSP: 0018:ffffc90000007b38 EFLAGS: 00000002
RAX: 0000000000000001 RBX: 1ffff92000000f78 RCX: ffffffff8164332a
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc90000007bc0
RBP: 0000000000000001 R08: dffffc0000000000 R09: fffff52000000f78
R10: 1ffff92000000f78 R11: dffffc0000000001 R12: ffffffff96a34938
R13: 1ffff92000000f78 R14: fffff52000000f79 R15: 1ffffffff2d46928
FS:  000055557d29b500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555574e71808 CR3: 000000002020b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
 atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:512 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:82 [inline]
 do_raw_spin_lock+0x14a/0x370 kernel/locking/spinlock_debug.c:115
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline]
 _raw_spin_lock_irqsave+0xdd/0x120 kernel/locking/spinlock.c:162
 debug_object_deactivate+0x63/0x380 lib/debugobjects.c:749
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate+0x1b/0x1e0 kernel/time/hrtimer.c:481
 __run_hrtimer kernel/time/hrtimer.c:1656 [inline]
 __hrtimer_run_queues+0x31d/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/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:console_unlock+0xe53/0x12b0 kernel/printk/printk.c:2749
Code: 00 48 83 7c 24 18 00 75 19 e8 59 06 1a 00 eb 18 e8 52 06 1a 00 e8 6d b1 cd 08 48 83 7c 24 18 00 74 e7 e8 40 06 1a 00 fb 31 ff <44> 89 f6 e8 95 09 1a 00 31 db 45 85 f6 0f 95 c0 89 c1 0a 4c 24 17
RSP: 0018:ffffc900030e6440 EFLAGS: 00000246
RAX: ffffffff81666d80 RBX: 0000000000000000 RCX: ffff88802c23d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900030e66d0 R08: ffffffff81666d4b R09: fffffbfff20ec621
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff1a4c62e
R13: ffffffff8d2631a8 R14: 0000000000000000 R15: dffffc0000000000
 vprintk_emit+0xbf/0x150 kernel/printk/printk.c:2274
 _printk+0xd1/0x120 kernel/printk/printk.c:2299
 netdev_warn+0x11e/0x170 net/core/dev.c:11521
 hsr_dev_open+0x167/0x230 net/hsr/hsr_device.c:164
 __dev_open+0x36f/0x500 net/core/dev.c:1506
 __dev_change_flags+0x1db/0x6e0 net/core/dev.c:8817
 dev_change_flags+0x87/0x190 net/core/dev.c:8888
 do_setlink+0xc21/0x3d80 net/core/rtnetlink.c:2776
 __rtnl_newlink net/core/rtnetlink.c:3447 [inline]
 rtnl_newlink+0x17d6/0x2070 net/core/rtnetlink.c:3569
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5647
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504
 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:2063
 __do_sys_sendto net/socket.c:2075 [inline]
 __se_sys_sendto net/socket.c:2071 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2071
 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:0x7faa3753b5ac
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:00007ffdb7cd4d40 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007faa3821f620 RCX: 00007faa3753b5ac
RDX: 0000000000000020 RSI: 00007faa3821f670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffdb7cd4d94 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007faa3821f670 R15: 0000000000000000
 </TASK>
NMI backtrace for cpu 0
CPU: 0 PID: 4245 Comm: syz-executor Not tainted 5.15.170-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:lookup_chain_cache kernel/locking/lockdep.c:3682 [inline]
RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:3701 [inline]
RIP: 0010:validate_chain+0x199/0x5930 kernel/locking/lockdep.c:3756
Code: 89 df e8 ea c4 66 00 48 89 5c 24 20 48 8b 1b 48 85 db 74 48 48 83 c3 f8 74 42 4c 8d 7b 18 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 <74> 08 4c 89 ff e8 bd c4 66 00 49 8b 07 4c 39 f0 0f 84 d4 03 00 00
RSP: 0018:ffffc90000007740 EFLAGS: 00000046
RAX: 1ffffffff20ee66f RBX: ffffffff90773360 RCX: ffffffff81637942
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90763100
RBP: ffffc900000079f0 R08: dffffc0000000000 R09: fffffbfff20ec621
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88802c23e4c8 R14: f273e68c3196d937 R15: ffffffff90773378
FS:  000055557d29b500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555574e71808 CR3: 000000002020b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 debug_object_deactivate+0x63/0x380 lib/debugobjects.c:749
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate+0x1b/0x1e0 kernel/time/hrtimer.c:481
 __run_hrtimer kernel/time/hrtimer.c:1656 [inline]
 __hrtimer_run_queues+0x31d/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/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:console_unlock+0xe53/0x12b0 kernel/printk/printk.c:2749
Code: 00 48 83 7c 24 18 00 75 19 e8 59 06 1a 00 eb 18 e8 52 06 1a 00 e8 6d b1 cd 08 48 83 7c 24 18 00 74 e7 e8 40 06 1a 00 fb 31 ff <44> 89 f6 e8 95 09 1a 00 31 db 45 85 f6 0f 95 c0 89 c1 0a 4c 24 17
RSP: 0018:ffffc900030e6440 EFLAGS: 00000246
RAX: ffffffff81666d80 RBX: 0000000000000000 RCX: ffff88802c23d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900030e66d0 R08: ffffffff81666d4b R09: fffffbfff20ec621
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff1a4c62e
R13: ffffffff8d2631a8 R14: 0000000000000000 R15: dffffc0000000000
 vprintk_emit+0xbf/0x150 kernel/printk/printk.c:2274
 _printk+0xd1/0x120 kernel/printk/printk.c:2299
 netdev_warn+0x11e/0x170 net/core/dev.c:11521
 hsr_dev_open+0x167/0x230 net/hsr/hsr_device.c:164
 __dev_open+0x36f/0x500 net/core/dev.c:1506
 __dev_change_flags+0x1db/0x6e0 net/core/dev.c:8817
 dev_change_flags+0x87/0x190 net/core/dev.c:8888
 do_setlink+0xc21/0x3d80 net/core/rtnetlink.c:2776
 __rtnl_newlink net/core/rtnetlink.c:3447 [inline]
 rtnl_newlink+0x17d6/0x2070 net/core/rtnetlink.c:3569
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5647
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504
 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:2063
 __do_sys_sendto net/socket.c:2075 [inline]
 __se_sys_sendto net/socket.c:2071 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2071
 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:0x7faa3753b5ac
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:00007ffdb7cd4d40 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007faa3821f620 RCX: 00007faa3753b5ac
RDX: 0000000000000020 RSI: 00007faa3821f670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffdb7cd4d94 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007faa3821f670 R15: 0000000000000000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/02 18:00 linux-5.15.y 72244eab0dad f00eed24 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rtnl_newlink
* Struck through repros no longer work on HEAD.