syzbot


BUG: soft lockup in ip_list_rcv (2)

Status: auto-closed as invalid on 2022/06/25 08:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 216d, last: 216d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in ip_list_rcv 1 717d 717d 0/24 auto-closed as invalid on 2021/03/11 09:36
upstream INFO: rcu detected stall in ip_list_rcv (4) 1 147d 147d 0/24 auto-closed as invalid on 2022/09/01 16:20
upstream INFO: rcu detected stall in ip_list_rcv (2) 3 644d 723d 0/24 auto-closed as invalid on 2021/05/23 12:59
upstream INFO: rcu detected stall in ip_list_rcv (3) 1 336d 336d 0/24 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in ip_list_rcv C error done 3 789d 815d 17/24 fixed on 2020/11/16 12:12

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 143s! [syz-fuzzer:3592]
Modules linked in:
irq event stamp: 0
hardirqs last  enabled at (0): [<0000000000000000>] 0x0
hardirqs last disabled at (0): [<ffffffff81460ce3>] copy_process+0x2013/0x6fe0 kernel/fork.c:2173
softirqs last  enabled at (0): [<ffffffff81460d2b>] copy_process+0x205b/0x6fe0 kernel/fork.c:2177
softirqs last disabled at (0): [<0000000000000000>] 0x0
CPU: 0 PID: 3592 Comm: syz-fuzzer Not tainted 5.18.0-rc3-next-20220422-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kvm_wait+0x98/0x100 arch/x86/kernel/kvm.c:1058
Code: fa 83 e2 07 38 d0 7f 04 84 c0 75 63 0f b6 07 40 38 c6 74 35 48 83 c4 10 c3 c3 e8 23 91 4b 00 eb 07 0f 00 2d da b1 94 08 fb f4 <48> 83 c4 10 c3 89 74 24 0c 48 89 3c 24 e8 56 8f 4b 00 8b 74 24 0c
RSP: 0000:ffffc900000065d8 EFLAGS: 00000246
RAX: 0000000000000007 RBX: 0000000000000000 RCX: 1ffffffff1b73199
RDX: 0000000000000000 RSI: ffffffff81807171 RDI: ffffffff8134dffd
RBP: ffff8880194bc448 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81807158 R11: 0000000000000001 R12: 0000000000000000
R13: ffffed1003297889 R14: 0000000000000001 R15: ffff8880b9c3ae40
FS:  000000c000533090(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000e00000 CR3: 000000001dd38000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x8c7/0xb50 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [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+0x200/0x2a0 kernel/locking/spinlock_debug.c:115
 spin_lock include/linux/spinlock.h:354 [inline]
 task_lock include/linux/sched/task.h:170 [inline]
 __get_task_comm+0x23/0x50 fs/exec.c:1219
 __set_page_owner_handle mm/page_owner.c:174 [inline]
 __set_page_owner+0x253/0x380 mm/page_owner.c:192
 prep_new_page mm/page_alloc.c:2394 [inline]
 get_page_from_freelist+0xba2/0x3e00 mm/page_alloc.c:4135
 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5356
 alloc_pages+0x1aa/0x310 mm/mempolicy.c:2273
 alloc_slab_page mm/slub.c:1797 [inline]
 allocate_slab+0x26c/0x3c0 mm/slub.c:1942
 new_slab mm/slub.c:2002 [inline]
 ___slab_alloc+0x985/0xd90 mm/slub.c:3002
 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3089
 slab_alloc_node mm/slub.c:3180 [inline]
 slab_alloc mm/slub.c:3222 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3229 [inline]
 kmem_cache_alloc+0x360/0x3b0 mm/slub.c:3239
 skb_clone+0x170/0x3c0 net/core/skbuff.c:1520
 dev_queue_xmit_nit+0x393/0xb20 net/core/dev.c:2263
 xmit_one net/core/dev.c:3532 [inline]
 dev_hard_start_xmit+0xad/0x920 net/core/dev.c:3553
 sch_direct_xmit+0x19f/0xbe0 net/sched/sch_generic.c:342
 __dev_xmit_skb net/core/dev.c:3764 [inline]
 __dev_queue_xmit+0x1572/0x3b10 net/core/dev.c:4173
 neigh_hh_output include/net/neighbour.h:533 [inline]
 neigh_output include/net/neighbour.h:547 [inline]
 ip_finish_output2+0x14df/0x2170 net/ipv4/ip_output.c:228
 __ip_finish_output net/ipv4/ip_output.c:306 [inline]
 __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:288
 ip_finish_output+0x32/0x280 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip_output+0x196/0x310 net/ipv4/ip_output.c:430
 dst_output include/net/dst.h:451 [inline]
 ip_local_out net/ipv4/ip_output.c:126 [inline]
 __ip_queue_xmit+0x8fe/0x1c00 net/ipv4/ip_output.c:532
 __tcp_transmit_skb+0x190e/0x38b0 net/ipv4/tcp_output.c:1402
 __tcp_send_ack.part.0+0x3a7/0x760 net/ipv4/tcp_output.c:3970
 __tcp_send_ack net/ipv4/tcp_output.c:3976 [inline]
 tcp_send_ack+0x7d/0xa0 net/ipv4/tcp_output.c:3976
 __tcp_ack_snd_check+0x156/0x9c0 net/ipv4/tcp_input.c:5493
 tcp_rcv_established+0x18cc/0x2030 net/ipv4/tcp_input.c:5935
 tcp_v4_do_rcv+0x66c/0x980 net/ipv4/tcp_ipv4.c:1660
 tcp_v4_rcv+0x380f/0x3bc0 net/ipv4/tcp_ipv4.c:2074
 ip_protocol_deliver_rcu+0xa3/0xb30 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x2ee/0x4c0 net/ipv4/ip_input.c:233
 NF_HOOK include/linux/netfilter.h:307 [inline]
 NF_HOOK include/linux/netfilter.h:301 [inline]
 ip_local_deliver+0x1b3/0x200 net/ipv4/ip_input.c:254
 dst_input include/net/dst.h:461 [inline]
 ip_sublist_rcv_finish+0x9a/0x2c0 net/ipv4/ip_input.c:568
 ip_list_rcv_finish net/ipv4/ip_input.c:618 [inline]
 ip_sublist_rcv+0x538/0x990 net/ipv4/ip_input.c:626
 ip_list_rcv+0x31a/0x470 net/ipv4/ip_input.c:661
 __netif_receive_skb_list_ptype net/core/dev.c:5478 [inline]
 __netif_receive_skb_list_core+0x548/0x8f0 net/core/dev.c:5526
 __netif_receive_skb_list net/core/dev.c:5578 [inline]
 netif_receive_skb_list_internal+0x75e/0xd80 net/core/dev.c:5669
 gro_normal_list include/net/gro.h:430 [inline]
 gro_normal_list include/net/gro.h:426 [inline]
 napi_complete_done+0x1f1/0x880 net/core/dev.c:6010
 virtqueue_napi_complete drivers/net/virtio_net.c:366 [inline]
 virtnet_poll+0xc9b/0x11a0 drivers/net/virtio_net.c:1613
 __napi_poll+0xb3/0x6e0 net/core/dev.c:6443
 napi_poll net/core/dev.c:6510 [inline]
 net_rx_action+0x8ec/0xc60 net/core/dev.c:6597
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 common_interrupt+0xa9/0xc0 arch/x86/kernel/irq.c:240
 </IRQ>
 <TASK>
 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:640
RIP: 0010:read_word_at_a_time+0x0/0x20 include/asm-generic/rwonce.h:84
Code: 89 34 24 e8 c2 3c a7 fd 48 8b 34 24 e9 74 ff ff ff 48 89 df e8 01 3d a7 fd eb b6 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 <53> be 01 00 00 00 48 89 fb e8 62 3f a7 fd 48 8b 03 5b c3 66 66 2e
RSP: 0000:ffffc90002e4f858 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff8880194bc330 RCX: 0000000000000000
RDX: 0000000000000010 RSI: ffff8880194bc330 RDI: ffff8880194bc330
RBP: 8080808080808080 R08: 0000000000000001 R09: 0000000000000003
R10: fffff520005c9f0c R11: 0000000000000001 R12: 0000000000000010
R13: 0000000000000000 R14: fefefefefefefeff R15: ffff88801234f0e8
 strscpy+0xa1/0x2a0 lib/string.c:203
 strscpy include/linux/fortify-string.h:170 [inline]
 strscpy_pad+0x20/0x70 lib/string_helpers.c:788
 __get_task_comm+0x35/0x50 fs/exec.c:1221
 __set_page_owner_handle mm/page_owner.c:174 [inline]
 __set_page_owner+0x253/0x380 mm/page_owner.c:192
 prep_new_page mm/page_alloc.c:2394 [inline]
 get_page_from_freelist+0xba2/0x3e00 mm/page_alloc.c:4135
 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5356
 alloc_pages+0x1aa/0x310 mm/mempolicy.c:2273
 __pte_alloc_one include/asm-generic/pgalloc.h:63 [inline]
 pte_alloc_one+0x16/0x230 arch/x86/mm/pgtable.c:33
 __pte_alloc+0x69/0x250 mm/memory.c:469
 do_anonymous_page mm/memory.c:4045 [inline]
 handle_pte_fault mm/memory.c:4902 [inline]
 __handle_mm_fault+0x2ced/0x33d0 mm/memory.c:5043
 handle_mm_fault+0x1c8/0x790 mm/memory.c:5141
 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397
 handle_page_fault arch/x86/mm/fault.c:1484 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x465d57
Code: f0 c5 fe 6f 26 4c 01 de 48 29 c3 c5 fe 6f 06 c5 fe 6f 4e 20 c5 fe 6f 56 40 c5 fe 6f 5e 60 48 01 c6 c5 fd 7f 07 c5 fd 7f 4f 20 <c5> fd 7f 57 40 c5 fd 7f 5f 60 48 01 c7 48 29 c3 77 cf 48 01 c3 48
RSP: 002b:000000c0003b7c08 EFLAGS: 00010206
RAX: 0000000000000080 RBX: 0000000000000975 RCX: 000000c00039e000
RDX: 000000c000396000 RSI: 000000c00039d68b RDI: 000000c000dfffc0
RBP: 000000c0003b7c38 R08: 000000c000396000 R09: 000000c000396000
R10: 000000c000df89b5 R11: 000000000000000b R12: 00000000000022ec
R13: 0000000000007ff0 R14: 000000c0002d6680 R15: 0000000000000002
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.18.0-rc3-next-20220422-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kvm_wait+0x98/0x100 arch/x86/kernel/kvm.c:1058
Code: fa 83 e2 07 38 d0 7f 04 84 c0 75 63 0f b6 07 40 38 c6 74 35 48 83 c4 10 c3 c3 e8 23 91 4b 00 eb 07 0f 00 2d da b1 94 08 fb f4 <48> 83 c4 10 c3 89 74 24 0c 48 89 3c 24 e8 56 8f 4b 00 8b 74 24 0c
RSP: 0018:ffffc90000de0b80 EFLAGS: 00000246
RAX: 0000000000000007 RBX: 0000000000000000 RCX: 1ffffffff1b73199
RDX: 0000000000000000 RSI: ffffffff81807171 RDI: ffffffff8134dffd
RBP: ffff88807e879898 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81807158 R11: 0000000000000000 R12: 0000000000000000
R13: ffffed100fd0f313 R14: 0000000000000001 R15: ffff8880b9d3ae40
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000d98000 CR3: 000000001dd38000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x8c7/0xb50 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [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+0x200/0x2a0 kernel/locking/spinlock_debug.c:115
 spin_lock include/linux/spinlock.h:354 [inline]
 tcp_write_timer+0x26/0x2b0 net/ipv4/tcp_timer.c:640
 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1444
 expire_timers kernel/time/timer.c:1489 [inline]
 __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1760
 __run_timers kernel/time/timer.c:1738 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1773
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:117 [inline]
RIP: 0010:acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:559
Code: 89 de e8 5d 0c 09 f8 84 db 75 ac e8 74 08 09 f8 e8 6f 5a 0f f8 eb 0c e8 68 08 09 f8 0f 00 2d a1 0d c2 00 e8 5c 08 09 f8 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 d7 0a 09 f8 48 85 db
RSP: 0018:ffffc90000d77d20 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888011929d80 RSI: ffffffff897116c4 RDI: ffffffff897116b1
RBP: ffff888145314064 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81807158 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888145314000 R14: ffff888145314064 R15: ffff888145028804
 acpi_idle_enter+0x369/0x510 drivers/acpi/processor_idle.c:696
 cpuidle_enter_state+0x1b1/0xc80 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x3e8/0x590 kernel/sched/idle.c:303
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:400
 start_secondary+0x224/0x2c0 arch/x86/kernel/smpboot.c:267
 secondary_startup_64_no_verify+0xce/0xdb
 </TASK>
----------------
Code disassembly (best guess):
   0:	fa                   	cli
   1:	83 e2 07             	and    $0x7,%edx
   4:	38 d0                	cmp    %dl,%al
   6:	7f 04                	jg     0xc
   8:	84 c0                	test   %al,%al
   a:	75 63                	jne    0x6f
   c:	0f b6 07             	movzbl (%rdi),%eax
   f:	40 38 c6             	cmp    %al,%sil
  12:	74 35                	je     0x49
  14:	48 83 c4 10          	add    $0x10,%rsp
  18:	c3                   	retq
  19:	c3                   	retq
  1a:	e8 23 91 4b 00       	callq  0x4b9142
  1f:	eb 07                	jmp    0x28
  21:	0f 00 2d da b1 94 08 	verw   0x894b1da(%rip)        # 0x894b202
  28:	fb                   	sti
  29:	f4                   	hlt
* 2a:	48 83 c4 10          	add    $0x10,%rsp <-- trapping instruction
  2e:	c3                   	retq
  2f:	89 74 24 0c          	mov    %esi,0xc(%rsp)
  33:	48 89 3c 24          	mov    %rdi,(%rsp)
  37:	e8 56 8f 4b 00       	callq  0x4b8f92
  3c:	8b 74 24 0c          	mov    0xc(%rsp),%esi

Crashes (8):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/04/25 20:57 linux-next e7d6987e09a3 152baedd .config log report info BUG: soft lockup in ip_list_rcv
ci-upstream-linux-next-kasan-gce-root 2022/04/26 08:35 linux-next e7d6987e09a3 1fa34c1b .config log report info INFO: rcu detected stall in ip_list_rcv
ci-upstream-linux-next-kasan-gce-root 2022/04/26 07:53 linux-next e7d6987e09a3 1fa34c1b .config log report INFO: rcu detected stall in ip_list_rcv
ci-upstream-linux-next-kasan-gce-root 2022/04/26 04:37 linux-next e7d6987e09a3 152baedd .config log report info INFO: rcu detected stall in ip_list_rcv
ci-upstream-linux-next-kasan-gce-root 2022/04/26 03:11 linux-next e7d6987e09a3 152baedd .config log report info INFO: rcu detected stall in ip_list_rcv
ci-upstream-linux-next-kasan-gce-root 2022/04/26 00:32 linux-next e7d6987e09a3 152baedd .config log report info INFO: rcu detected stall in ip_list_rcv
ci-upstream-linux-next-kasan-gce-root 2022/04/25 23:53 linux-next e7d6987e09a3 152baedd .config log report info INFO: rcu detected stall in ip_list_rcv
ci-upstream-linux-next-kasan-gce-root 2022/04/25 22:28 linux-next e7d6987e09a3 152baedd .config log report info INFO: rcu detected stall in ip_list_rcv
* Struck through repros no longer work on HEAD.