syzbot


BUG: soft lockup in rtnl_newlink

Status: premoderation: reported on 2024/04/18 11:40
Reported-by: syzbot+c129e2b8460d480d5ddc@syzkaller.appspotmail.com
First crash: 13d, last: 13d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in rtnl_newlink (2) 2 25d 50d 0/3 upstream: reported on 2024/03/13 06:43
upstream INFO: rcu detected stall in rtnl_newlink (4) batman C error 6 3d02h 62d 25/26 internal: reported C repro on 2024/02/29 13:10
upstream INFO: rcu detected stall in rtnl_newlink (3) batman C error done 3 250d 300d 0/26 auto-obsoleted due to no activity on 2023/12/03 18:15
linux-5.15 BUG: soft lockup in rtnl_newlink origin:lts-only C inconclusive 61 18d 419d 0/3 upstream: reported C repro on 2023/03/09 19:16
linux-4.14 BUG: soft lockup in rtnl_newlink 1 827d 827d 0/1 auto-closed as invalid on 2022/05/26 06:33
upstream INFO: rcu detected stall in rtnl_newlink batman C done inconclusive 201 575d 1378d 0/26 auto-obsoleted due to no activity on 2023/02/01 16:38
linux-6.1 INFO: rcu detected stall in rtnl_newlink 1 205d 205d 0/3 auto-obsoleted due to no activity on 2024/01/17 21:04
linux-4.19 INFO: rcu detected stall in rtnl_newlink C error 7 505d 1378d 0/1 upstream: reported C repro on 2020/07/24 01:06
upstream INFO: rcu detected stall in rtnl_newlink (2) net 1 444d 444d 0/26 auto-obsoleted due to no activity on 2023/05/13 18:46

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz-executor.4:2182]
Modules linked in:
CPU: 0 PID: 2182 Comm: syz-executor.4 Not tainted 5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 5b 03 f3 03 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc90000ece2a0 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff920001d9c58 RCX: 1ffffffff0d1aa9c
RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8881f7037ed4
RBP: ffffc90000ece350 R08: dffffc0000000000 R09: ffffed103ee06fdb
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7037ed4 R14: 0000000000000001 R15: 1ffff920001d9c5c
FS:  00005555555a4480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e422000 CR3: 000000012bb13000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_node kernel/locking/qspinlock_paravirt.h:325 [inline]
 __pv_queued_spin_lock_slowpath+0x41b/0xc40 kernel/locking/qspinlock.c:473
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x194
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
 trace_kfree include/trace/events/kmem.h:118 [inline]
 kfree+0x1f3/0x220 mm/slub.c:4569
 ida_alloc_range+0x987/0xa80 lib/idr.c:460
 proc_alloc_inum fs/proc/generic.c:206 [inline]
 proc_register+0x3e/0x520 fs/proc/generic.c:370
 proc_create_single_data+0x1de/0x240 fs/proc/generic.c:658
 snmp6_register_dev+0xa5/0x110 net/ipv6/proc.c:256
 ipv6_add_dev+0x614/0x1140 net/ipv6/addrconf.c:418
 addrconf_notify+0x593/0xdd0 net/ipv6/addrconf.c:3582
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:391
 call_netdevice_notifiers_info net/core/dev.c:2025 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2037 [inline]
 call_netdevice_notifiers+0x145/0x1b0 net/core/dev.c:2051
 register_netdevice+0x1035/0x1390 net/core/dev.c:10392
 veth_newlink+0x72e/0xe20 drivers/net/veth.c:1701
 __rtnl_newlink net/core/rtnetlink.c:3501 [inline]
 rtnl_newlink+0x1495/0x2050 net/core/rtnetlink.c:3549
 rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5630
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5648
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x8df/0xac0 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa0a/0xd20 net/netlink/af_netlink.c:1924
 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+0xe5/0x100 net/socket.c:2066
 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:0x7f03ccb66b43
Code: 64 89 02 48 c7 c0 ff ff ff ff eb b7 66 2e 0f 1f 84 00 00 00 00 00 90 80 3d c1 03 10 00 00 41 89 ca 74 14 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 75 c3 0f 1f 40 00 55 48 83 ec 30 44 89 4c 24
RSP: 002b:00007fff0bb3cf18 EFLAGS: 00000202 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f03cd7bb620 RCX: 00007f03ccb66b43
RDX: 000000000000006c RSI: 00007f03cd7bb670 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007fff0bb3cf34 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f03cd7bb670 R15: 0000000000000000
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 942 Comm: udevd Not tainted 5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 5b 03 f3 03 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc90000e4f100 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff920001c9e24 RCX: ffffffff8154f88f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881073e6318
RBP: ffffc90000e4f1b0 R08: dffffc0000000000 R09: ffffed1020e7cc64
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881073e6318 R14: 0000000000000003 R15: 1ffff920001c9e28
FS:  00007fa68136cc80(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9f9f661bf8 CR3: 00000001227cd000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x194
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
 trace_kfree include/trace/events/kmem.h:118 [inline]
 kfree+0x1f3/0x220 mm/slub.c:4569
 sk_psock_free_link include/linux/skmsg.h:420 [inline]
 sock_map_del_link net/core/sock_map.c:160 [inline]
 sock_map_unref+0x352/0x4d0 net/core/sock_map.c:182
 sock_hash_delete_elem+0x274/0x2f0 net/core/sock_map.c:941
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x194
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
 trace_kfree include/trace/events/kmem.h:118 [inline]
 kfree+0x1f3/0x220 mm/slub.c:4569
 kernfs_get_open_node fs/kernfs/file.c:547 [inline]
 kernfs_fop_open+0x73c/0xab0 fs/kernfs/file.c:698
 do_dentry_open+0x81c/0xfd0 fs/open.c:828
 vfs_open+0x73/0x80 fs/open.c:958
 do_open fs/namei.c:3614 [inline]
 path_openat+0x26f0/0x2f40 fs/namei.c:3748
 do_filp_open+0x21c/0x460 fs/namei.c:3775
 do_sys_openat2+0x13f/0x830 fs/open.c:1234
 do_sys_open fs/open.c:1250 [inline]
 __do_sys_openat fs/open.c:1266 [inline]
 __se_sys_openat fs/open.c:1261 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1261
 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:0x7fa6814979a4
Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffde3e2d3a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007fa6814979a4
RDX: 0000000000080000 RSI: 00007ffde3e2d4d8 RDI: 00000000ffffff9c
RBP: 00007ffde3e2d4d8 R08: 0000000000000008 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000
R13: 00005614a5d38b42 R14: 0000000000000001 R15: 00005614a5d54160
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/18 17:53 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in rtnl_newlink
2024/04/18 11:39 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in rtnl_newlink
* Struck through repros no longer work on HEAD.