syzbot


BUG: soft lockup in rtnl_newlink

Status: premoderation: reported on 2024/07/12 14:18
Reported-by: syzbot+020832ed81d1955a4eba@syzkaller.appspotmail.com
First crash: 97d, last: 87d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in rtnl_newlink (2) 3 127d 218d 0/3 auto-obsoleted due to no activity on 2024/09/20 22:26
upstream INFO: rcu detected stall in rtnl_newlink (4) fs batman C error 9 155d 231d 25/28 fixed on 2024/05/22 23:36
upstream INFO: rcu detected stall in rtnl_newlink (3) batman C error done 3 419d 469d 0/28 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 65 96d 588d 0/3 upstream: reported C repro on 2023/03/09 19:16
android-5-15 BUG: soft lockup in rtnl_newlink 7 72d 182d 0/2 premoderation: reported on 2024/04/18 11:40
linux-4.14 BUG: soft lockup in rtnl_newlink 1 995d 995d 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 744d 1546d 0/28 auto-obsoleted due to no activity on 2023/02/01 16:38
linux-6.1 INFO: rcu detected stall in rtnl_newlink 1 374d 374d 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 674d 1547d 0/1 upstream: reported C repro on 2020/07/24 01:06
upstream INFO: rcu detected stall in rtnl_newlink (2) net 1 613d 613d 0/28 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:9699]
Modules linked in:
CPU: 0 PID: 9699 Comm: syz-executor Not tainted 6.1.90-syzkaller-00103-g002bba562dd3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
RIP: 0010:queued_write_lock_slowpath+0x15a/0x547 kernel/locking/qrwlock.c:85
Code: 00 01 00 00 bb ff 00 00 00 43 0f b6 44 3d 00 84 c0 74 38 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 2b 4c 89 f7 e8 b8 22 bb fc eb 21 <f3> 90 43 0f b6 44 3d 00 84 c0 74 15 44 89 f1 80 e1 07 80 c1 03 38
RSP: 0018:ffffc900014a6fe0 EFLAGS: 00000206
RAX: 00000000000001ff RBX: 00000000000000ff RCX: ffffffff85018c2c
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffffff879e7e20
RBP: ffffc900014a7090 R08: dffffc0000000000 R09: fffffbfff0f3cfc5
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000294e06
R13: 1ffffffff0f3cfc4 R14: ffffffff879e7e20 R15: dffffc0000000000
FS:  0000555556a21500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c3d4ce1b8 CR3: 0000000122413000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 queued_write_lock include/asm-generic/qrwlock.h:101 [inline]
 __raw_write_lock include/linux/rwlock_api_smp.h:210 [inline]
 _raw_write_lock+0x10a/0x170 kernel/locking/spinlock.c:300
 register_netdevice+0xe51/0x1490 net/core/dev.c:10107
 rtnl_newlink_create net/core/rtnetlink.c:3392 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3610 [inline]
 rtnl_newlink+0x163f/0x2030 net/core/rtnetlink.c:3623
 rtnetlink_rcv_msg+0x9a5/0xca0 net/core/rtnetlink.c:6121
 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2518
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6139
 netlink_unicast_kernel net/netlink/af_netlink.c:1327 [inline]
 netlink_unicast+0x906/0xab0 net/netlink/af_netlink.c:1353
 netlink_sendmsg+0xa15/0xd30 net/netlink/af_netlink.c:1875
 sock_sendmsg_nosec net/socket.c:716 [inline]
 __sock_sendmsg net/socket.c:728 [inline]
 __sys_sendto+0x480/0x600 net/socket.c:2138
 __do_sys_sendto net/socket.c:2150 [inline]
 __se_sys_sendto net/socket.c:2146 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2146
 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa2b2b77bd3
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 71 d9 15 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:00007ffed634fd28 EFLAGS: 00000202 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fa2b3834620 RCX: 00007fa2b2b77bd3
RDX: 000000000000003c RSI: 00007fa2b3834670 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007ffed634fd44 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000003
R13: 0000000000000000 R14: 00007fa2b3834670 R15: 0000000000000000
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9250 Comm: syz.4.1879 Not tainted 6.1.90-syzkaller-00103-g002bba562dd3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:timerqueue_del+0xb9/0x100 lib/timerqueue.c:58
Code: 3c 37 00 74 0e 48 89 df 49 89 c7 e8 d1 b8 c6 fc 4c 89 f8 48 89 03 48 8b 5d d0 4c 89 ef 48 89 de e8 6c 6d ff ff 43 80 3c 34 00 <74> 08 4c 89 ef e8 ad b8 c6 fc 4d 89 6d 00 48 89 d8 48 c1 e8 03 42
RSP: 0018:ffffc900001aff60 EFLAGS: 00000046
RAX: 1ffff1103ee2544c RBX: ffff8881f7129ce0 RCX: dffffc0000000000
RDX: 0000000000010302 RSI: ffff8881f7129ce0 RDI: ffff888116fedd88
RBP: ffffc900001aff90 R08: ffffffff84f5f6a8 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff11022dfdbb0
R13: ffff888116fedd80 R14: dffffc0000000000 R15: 1ffff1103ee2539d
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa2b2cce1b8 CR3: 000000013a821000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __remove_hrtimer kernel/time/hrtimer.c:1116 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1665 [inline]
 __hrtimer_run_queues+0x35f/0xad0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x40c/0xaa0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x44/0xc0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:nearest_obj include/linux/slub_def.h:162 [inline]
RIP: 0010:__kasan_record_aux_stack+0x61/0xc0 mm/kasan/generic.c:480
Code: 01 75 7d 48 85 c9 74 78 4c 8b 79 18 48 89 c8 48 c1 e0 06 48 bf 00 00 00 00 80 08 05 00 48 01 c7 48 89 d8 48 29 f8 45 8b 47 18 <48> 99 49 f7 f8 48 29 d3 0f b7 71 2a 81 e6 ff 7f 00 00 ff ce 41 0f
RSP: 0018:ffffc900001b0308 EFLAGS: 00000202
RAX: 0000000000000558 RBX: ffff88812b4b1558 RCX: ffffea0004ad2c40
RDX: ffffffff34331501 RSI: 0000000000000008 RDI: ffff88812b4b1000
RBP: ffffc900001b0320 R08: 0000000000000140 R09: ffffed10256962a9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88812b4b1558
R13: ffff88812b4b1500 R14: 0000000000000000 R15: ffff888100bba300
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
 __call_rcu_common kernel/rcu/tree.c:2806 [inline]
 call_rcu+0xee/0x1340 kernel/rcu/tree.c:2925
 call_rcu_hurry include/linux/rcupdate.h:117 [inline]
 dst_release+0x9b/0xe0 net/core/dst.c:177
 refdst_drop include/net/dst.h:256 [inline]
 skb_dst_drop include/net/dst.h:268 [inline]
 __dev_queue_xmit+0xa42/0x36e0 net/core/dev.c:4255
 dev_queue_xmit include/linux/netdevice.h:3076 [inline]
 neigh_hh_output include/net/neighbour.h:536 [inline]
 neigh_output include/net/neighbour.h:550 [inline]
 ip6_finish_output2+0x11f1/0x1840 net/ipv6/ip6_output.c:134
 __ip6_finish_output net/ipv6/ip6_output.c:201 [inline]
 ip6_finish_output+0x50f/0xa60 net/ipv6/ip6_output.c:212
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0x1f7/0x4d0 net/ipv6/ip6_output.c:233
 dst_output include/net/dst.h:444 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ndisc_send_skb+0x7cf/0xdc0 net/ipv6/ndisc.c:509
 ndisc_send_rs+0x47d/0x5f0 net/ipv6/ndisc.c:719
 addrconf_rs_timer+0x2d1/0x600 net/ipv6/addrconf.c:3984
 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1510
 expire_timers kernel/time/timer.c:1555 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1826
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1839
 __do_softirq+0x1d8/0x661 kernel/softirq.c:617
 invoke_softirq kernel/softirq.c:472 [inline]
 __irq_exit_rcu+0x50/0xf0 kernel/softirq.c:700
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:712
 sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:netdev_run_todo+0x1ea/0xd00 net/core/dev.c:10394
Code: 0f b6 1e bf 02 00 00 00 89 de e8 11 5f 6a fd 83 fb 02 75 58 e8 77 5c 6a fd 48 c7 c7 20 7e 9e 87 e8 eb 1b f6 00 43 0f b6 04 3c <84> c0 0f 85 b9 01 00 00 41 c6 06 03 48 c7 c7 20 7e 9e 87 e8 6e 23
RSP: 0018:ffffc900026176c0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 00000000000000ff
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc90002617640
RBP: ffffc900026177b0 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff11028eee0a5
R13: ffff8881477704c8 R14: ffff888147770528 R15: dffffc0000000000
 rtnl_unlock+0xe/0x10 net/core/rtnetlink.c:147
 tun_detach drivers/net/tun.c:704 [inline]
 tun_chr_close+0xc4/0x140 drivers/net/tun.c:3489
 __fput+0x3ab/0x870 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x24d/0x2e0 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xbd5/0x2b80 kernel/exit.c:875
 do_group_exit+0x21a/0x2d0 kernel/exit.c:1025
 get_signal+0x169d/0x1820 kernel/signal.c:2880
 arch_do_signal_or_restart+0xb0/0x16f0 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x74/0xa0 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x26/0x130 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb362f75e99
Code: Unable to access opcode bytes at 0x7fb362f75e6f.
RSP: 002b:00007fb363d12048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007fb363105f60 RCX: 00007fb362f75e99
RDX: 00000000200006c0 RSI: 0000000000005452 RDI: 0000000000000003
RBP: 00007fb362fe4e5d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fb363105f60 R15: 00007ffc51846198
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/22 23:02 android14-6.1 002bba562dd3 df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in rtnl_newlink
2024/07/12 14:17 android14-6.1 96d66062d076 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in rtnl_newlink
* Struck through repros no longer work on HEAD.