syzbot


BUG: soft lockup in rtnl_newlink

Status: auto-closed as invalid on 2022/05/26 06:33
Reported-by: syzbot+72352ac304b3fbfd230c@syzkaller.appspotmail.com
First crash: 820d, last: 820d
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 19d 43d 0/3 upstream: reported on 2024/03/13 06:43
upstream INFO: rcu detected stall in rtnl_newlink (4) batman C error 5 4d10h 56d 23/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 243d 294d 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 11d 412d 0/3 upstream: reported C repro on 2023/03/09 19:16
android-5-15 BUG: soft lockup in rtnl_newlink 2 6d23h 7d06h 0/2 premoderation: reported on 2024/04/18 11:40
upstream INFO: rcu detected stall in rtnl_newlink batman C done inconclusive 201 569d 1371d 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 198d 198d 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 499d 1371d 0/1 upstream: reported C repro on 2020/07/24 01:06
upstream INFO: rcu detected stall in rtnl_newlink (2) net 1 437d 437d 0/26 auto-obsoleted due to no activity on 2023/05/13 18:46

Sample crash report:
EXT4-fs (loop0): Unrecognized mount option "À" or missing value
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor.2:9857]
Modules linked in:
irq event stamp: 2691077
hardirqs last  enabled at (2691076): [<ffffffff87400976>] restore_regs_and_return_to_kernel+0x0/0x2a
hardirqs last disabled at (2691077): [<ffffffff874018ae>] apic_timer_interrupt+0x8e/0xa0 arch/x86/entry/entry_64.S:793
softirqs last  enabled at (63976): [<ffffffff85613edb>] spin_unlock_bh include/linux/spinlock.h:362 [inline]
softirqs last  enabled at (63976): [<ffffffff85613edb>] net_to_rxe drivers/infiniband/sw/rxe/rxe_net.c:63 [inline]
softirqs last  enabled at (63976): [<ffffffff85613edb>] rxe_notify+0x4ab/0x620 drivers/infiniband/sw/rxe/rxe_net.c:634
softirqs last disabled at (63978): [<ffffffff85c72e91>] neigh_ifdown+0x41/0x350 net/core/neighbour.c:295
CPU: 0 PID: 9857 Comm: syz-executor.2 Not tainted 4.14.262-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880af7f03c0 task.stack: ffff888093828000
RIP: 0010:__read_once_size include/linux/compiler.h:185 [inline]
RIP: 0010:queued_write_lock_slowpath+0x92/0x1d0 kernel/locking/qrwlock.c:130
RSP: 0018:ffff88809382f000 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000000 RBX: ffffffff89d915f0 RCX: 0000000000000d1e
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff89d915f0
RBP: ffffffff89d915f4 R08: ffffffff8b9a43b0 R09: 00000000000401a4
R10: ffff8880af7f0c70 R11: ffff8880af7f03c0 R12: fffffbfff13b22be
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f622d1c1700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555565c5848 CR3: 000000008fd1a000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 queued_write_lock include/asm-generic/qrwlock.h:134 [inline]
 do_raw_write_lock+0xc2/0x1d0 kernel/locking/spinlock_debug.c:203
 neigh_ifdown+0x41/0x350 net/core/neighbour.c:295
 ndisc_netdev_event+0x2e1/0x3f0 net/ipv6/ndisc.c:1778
 notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93
 call_netdevice_notifiers_info net/core/dev.c:1667 [inline]
 call_netdevice_notifiers net/core/dev.c:1683 [inline]
 __dev_notify_flags+0x187/0x260 net/core/dev.c:6842
 dev_change_flags+0xe6/0x130 net/core/dev.c:6873
 do_setlink+0x83f/0x2bf0 net/core/rtnetlink.c:2092
 rtnl_group_changelink net/core/rtnetlink.c:2512 [inline]
 rtnl_newlink+0xccc/0x1860 net/core/rtnetlink.c:2666
 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4320
 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2446
 netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline]
 netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320
 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1891
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f622e84c059
RSP: 002b:00007f622d1c1168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f622e95ef60 RCX: 00007f622e84c059
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000006
RBP: 00007f622e8a608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff2fb2678f R14: 00007f622d1c1300 R15: 0000000000022000
Code: 49 c1 ec 03 41 83 e6 07 48 b8 00 00 00 00 00 fc ff df 49 01 c4 eb 02 f3 90 41 0f b6 04 24 44 38 f0 7f 08 84 c0 0f 85 f6 00 00 00 <0f> b6 03 84 c0 75 e5 f0 44 0f b0 2b 84 c0 75 dc 49 89 dd 49 89 
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9916 Comm: syz-executor.5 Not tainted 4.14.262-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b1af8600 task.stack: ffff8880b1168000
RIP: 0010:perf_prepare_sample+0x48d/0x1370 kernel/events/core.c:6199
RSP: 0018:ffff8880ba507048 EFLAGS: 00000046
RAX: ffff8880b1af8600 RBX: ffff8880ba507110 RCX: 0000000000000000
RDX: 0000000000010100 RSI: ffff8880ba507240 RDI: ffff8880b29a3642
RBP: ffff8880ba507240 R08: 0000000000000000 R09: 00000000000a6012
R10: ffff8880b1af8f50 R11: ffff8880b1af8600 R12: 0000000000000000
R13: ffff8880b29a3500 R14: ffff8880ba507114 R15: ffff8880ba507110
FS:  00007f1f27364700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e323000 CR3: 00000000aaf4a000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __perf_event_output kernel/events/core.c:6282 [inline]
 perf_event_output_forward+0xc9/0x1f0 kernel/events/core.c:6300
 __perf_event_overflow+0x113/0x310 kernel/events/core.c:7549
 perf_swevent_hrtimer+0x220/0x350 kernel/events/core.c:8754
 __run_hrtimer kernel/time/hrtimer.c:1223 [inline]
 __hrtimer_run_queues+0x30b/0xc80 kernel/time/hrtimer.c:1287
 hrtimer_interrupt+0x1e6/0x5e0 kernel/time/hrtimer.c:1321
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1079 [inline]
 smp_apic_timer_interrupt+0x117/0x5e0 arch/x86/kernel/apic/apic.c:1104
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline]
RIP: 0010:kmem_cache_free+0x173/0x2b0 mm/slab.c:3759
RSP: 0018:ffff8880ba5076b0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000007 RBX: ffff88809e81a340 RCX: 1ffff1101635f1e9
RDX: 0000000000000000 RSI: ffff8880b1af8f28 RDI: 0000000000000286
RBP: ffff8880b553ca80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: ffffffff85be7e18 R14: 0000000000000000 R15: ffff8880a3349680
 kfree_skbmem+0x98/0x100 net/core/skbuff.c:595
 __kfree_skb net/core/skbuff.c:655 [inline]
 consume_skb+0xed/0x380 net/core/skbuff.c:714
 netlink_broadcast_filtered+0x2ae/0x9e0 net/netlink/af_netlink.c:1496
 netlink_broadcast net/netlink/af_netlink.c:1518 [inline]
 nlmsg_multicast include/net/netlink.h:591 [inline]
 nlmsg_notify+0x129/0x1b0 net/netlink/af_netlink.c:2489
 __neigh_notify+0xd2/0x150 net/core/neighbour.c:2938
 neigh_cleanup_and_release+0x71/0xc0 net/core/neighbour.c:106
 neigh_del+0x161/0x1f0 net/core/neighbour.c:141
 neigh_forced_gc net/core/neighbour.c:190 [inline]
 neigh_alloc net/core/neighbour.c:315 [inline]
 __neigh_create+0xc5d/0x19b0 net/core/neighbour.c:499
 ip6_finish_output2+0x802/0x1f10 net/ipv6/ip6_output.c:117
 ip6_finish_output+0x5c6/0xd50 net/ipv6/ip6_output.c:192
 NF_HOOK_COND include/linux/netfilter.h:239 [inline]
 ip6_output+0x1c5/0x660 net/ipv6/ip6_output.c:209
 dst_output include/net/dst.h:470 [inline]
 NF_HOOK include/linux/netfilter.h:250 [inline]
 mld_sendpack+0x5fe/0xea0 net/ipv6/mcast.c:1657
 mld_send_cr net/ipv6/mcast.c:1953 [inline]
 mld_ifc_timer_expire+0x57c/0xcd0 net/ipv6/mcast.c:2452
 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280
 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319
 __run_timers kernel/time/timer.c:1637 [inline]
 run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650
 __do_softirq+0x24d/0x9ff kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x193/0x240 kernel/softirq.c:409
 exiting_irq arch/x86/include/asm/apic.h:638 [inline]
 smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
 </IRQ>
RIP: 0010:__write_once_size include/linux/compiler.h:212 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x4a/0x50 kernel/kcov.c:90
RSP: 0018:ffff8880b116f698 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff10
RAX: 0000000000040000 RBX: ffff8880b1af8600 RCX: ffffc900074cc000
RDX: 000000000000678f RSI: ffffffff8319d755 RDI: ffffffff87ccf240
RBP: ffffffff87ccf240 R08: 0000000000000000 R09: 0000000000020012
R10: ffff8880b1af8e88 R11: ffff8880b1af8600 R12: ffff8880a2330bc0
R13: ffffffff87ccf200 R14: 00000000000000d8 R15: ffff8880a2330bc0
 check_preemption_disabled+0x15/0x240 lib/smp_processor_id.c:14
 rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:360 [inline]
 rcu_is_watching+0x11/0xb0 kernel/rcu/tree.c:1130
 rcu_read_lock include/linux/rcupdate.h:630 [inline]
 __fget+0x38d/0x460 fs/file.c:687
 __fget_light fs/file.c:753 [inline]
 __fdget+0x185/0x1f0 fs/file.c:761
 fdget include/linux/file.h:59 [inline]
 do_select+0x9de/0x1290 fs/select.c:505
 core_sys_select+0x32f/0x6a0 fs/select.c:656
 do_pselect fs/select.c:733 [inline]
 SYSC_pselect6 fs/select.c:774 [inline]
 SyS_pselect6+0x358/0x3c0 fs/select.c:759
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f1f289ef059
RSP: 002b:00007f1f27364168 EFLAGS: 00000246 ORIG_RAX: 000000000000010e
RAX: ffffffffffffffda RBX: 00007f1f28b01f60 RCX: 00007f1f289ef059
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0e67d2ad1e0ff6b8
RBP: 00007f1f28a4908d R08: 0000000020000200 R09: 0000000000000000
R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc621053ef R14: 00007f1f27364300 R15: 0000000000022000
Code: 00 00 00 fc ff df 48 89 f2 48 c1 ea 03 0f b6 14 02 48 89 f0 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 c8 0a 00 00 66 44 01 7b 06 <e8> 7e 55 ef ff 41 f7 c4 00 08 00 00 0f 84 9b 00 00 00 e8 6c 55 
----------------
Code disassembly (best guess):
   0:	49 c1 ec 03          	shr    $0x3,%r12
   4:	41 83 e6 07          	and    $0x7,%r14d
   8:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   f:	fc ff df
  12:	49 01 c4             	add    %rax,%r12
  15:	eb 02                	jmp    0x19
  17:	f3 90                	pause
  19:	41 0f b6 04 24       	movzbl (%r12),%eax
  1e:	44 38 f0             	cmp    %r14b,%al
  21:	7f 08                	jg     0x2b
  23:	84 c0                	test   %al,%al
  25:	0f 85 f6 00 00 00    	jne    0x121
* 2b:	0f b6 03             	movzbl (%rbx),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	75 e5                	jne    0x17
  32:	f0 44 0f b0 2b       	lock cmpxchg %r13b,(%rbx)
  37:	84 c0                	test   %al,%al
  39:	75 dc                	jne    0x17
  3b:	49 89 dd             	mov    %rbx,%r13
  3e:	49                   	rex.WB
  3f:	89                   	.byte 0x89

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/26 06:32 linux-4.14.y 4ba8e26127c3 2cbffd88 .config console log report info ci2-linux-4-14 BUG: soft lockup in rtnl_newlink
* Struck through repros no longer work on HEAD.