syzbot


BUG: soft lockup in __netif_receive_skb_core

Status: premoderation: reported on 2024/08/16 15:05
Reported-by: syzbot+b85a36510afd5f067438@syzkaller.appspotmail.com
First crash: 50d, last: 50d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in __netif_receive_skb_core (2) batman 1 254d 254d 0/28 auto-obsoleted due to no activity on 2024/04/24 15:36
upstream INFO: rcu detected stall in __netif_receive_skb_core mm 1 1127d 1127d 0/28 auto-closed as invalid on 2021/12/03 17:24
linux-6.1 INFO: rcu detected stall in __netif_receive_skb_core 2 16d 64d 0/3 upstream: reported on 2024/08/02 03:27
upstream INFO: rcu detected stall in __netif_receive_skb_core (3) net 3 109d 142d 0/28 auto-obsoleted due to no activity on 2024/09/16 00:52

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz.3.4640:18147]
Modules linked in:
CPU: 1 PID: 18147 Comm: syz.3.4640 Tainted: G        W         5.10.223-syzkaller-01561-g0890c03b8b7d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:__netif_receive_skb_core+0xd6c/0x3760 net/core/dev.c:5270
Code: e8 99 2b e1 fd 48 89 5c 24 08 48 8b 1b b8 28 03 00 00 48 01 c3 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 48 89 df e8 6a 2b e1 fd 4c 8b 33 4d 85 f6 0f 84 71 04 00 00
RSP: 0018:ffffc90000170a20 EFLAGS: 00000246
RAX: 1ffff11026e5c865 RBX: ffff8881372e4328 RCX: dffffc0000000000
RDX: ffff8881121093c0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000170bf0 R08: ffffffff83c7161a R09: ffffffff83c70dbd
R10: 0000000000000002 R11: ffff8881121093c0 R12: 0000000000000001
R13: ffff88813cb48b40 R14: 0000000000000001 R15: 1ffff1102796916a
FS:  00007f1c925f96c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555fdd7d0 CR3: 0000000131888000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 __netif_receive_skb_one_core net/core/dev.c:5380 [inline]
 __netif_receive_skb+0x11c/0x530 net/core/dev.c:5496
 process_backlog+0x31c/0x650 net/core/dev.c:6403
 napi_poll net/core/dev.c:6854 [inline]
 net_rx_action+0x516/0x10d0 net/core/dev.c:6924
 __do_softirq+0x268/0x5bb kernel/softirq.c:309
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:405 [inline]
 __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:preempt_schedule_irq+0xc2/0x140 kernel/sched/core.c:5065
Code: 4c 89 e7 e8 f0 22 f7 fc f6 44 24 21 02 74 0b 0f 0b 48 f7 03 08 00 00 00 74 4d bf 01 00 00 00 e8 a4 ee 97 fc fb bf 01 00 00 00 <e8> 89 e6 ff ff fa bf 01 00 00 00 e8 2e f0 97 fc 65 48 8b 1d 56 4e
RSP: 0018:ffffc900014cf6c0 EFLAGS: 00000246
RAX: 1ffff110224213be RBX: 1ffff92000299edc RCX: ffffffff84b24700
RDX: 1ffffffff0e10808 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc900014cf750 R08: ffffffff87084048 R09: ffffffff87084058
R10: ffffffff87084050 R11: ffffffff87084043 R12: ffffc900014cf6e0
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff92000299ed8
 irqentry_exit_cond_resched kernel/entry/common.c:365 [inline]
 irqentry_exit+0x4f/0x60 kernel/entry/common.c:395
 sysvec_apic_timer_interrupt+0xcb/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [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+0x82/0x2a0 mm/kasan/generic.c:189
Code: 00 00 00 00 fc ff df 4f 8d 34 1a 4d 89 f5 4d 29 cd 49 83 fd 10 7f 26 4d 85 ed 0f 84 44 01 00 00 49 f7 d2 4d 01 e2 41 80 39 00 <0f> 85 d2 01 00 00 49 ff c1 49 ff c2 75 ee e9 27 01 00 00 45 89 cf
RSP: 0018:ffffc900014cf840 EFLAGS: 00000246
RAX: 1ffff92000299f01 RBX: 000000000001ffff RCX: ffffffff84b1b796
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8711e578
RBP: ffffc900014cf868 R08: dffffc0000000000 R09: fffffbfff0e23caf
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffffffff0e23caf
R13: 0000000000000001 R14: fffffbfff0e23cb0 R15: ffff8881121093c0
 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37
 instrument_atomic_write include/linux/instrumented.h:86 [inline]
 rt_mutex_fastlock kernel/locking/rtmutex.c:1412 [inline]
 __rt_mutex_lock kernel/locking/rtmutex.c:1473 [inline]
 rt_mutex_lock+0x16/0x50 kernel/locking/rtmutex.c:1498
 process_notifier+0xe8/0x650 drivers/misc/uid_sys_stats.c:636
 notifier_call_chain kernel/notifier.c:83 [inline]
 blocking_notifier_call_chain+0xbb/0x140 kernel/notifier.c:337
 profile_task_exit+0x1e/0x30 kernel/profile.c:151
 do_exit+0x193/0x2a50 kernel/exit.c:800
 do_group_exit+0x141/0x310 kernel/exit.c:985
 get_signal+0x10a0/0x1410 kernel/signal.c:2782
 arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805
 handle_signal_work kernel/entry/common.c:145 [inline]
 exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline]
 irqentry_exit_to_user_mode+0x4e/0x80 kernel/entry/common.c:287
 irqentry_exit+0x12/0x60 kernel/entry/common.c:375
 sysvec_apic_timer_interrupt+0xcb/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0033:0x7f1c9397b9b9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1c925f90e8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00007f1c93b17f88 RCX: 00007f1c9397b9b9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f1c93b17f88
RBP: 00007f1c93b17f80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1c93b17f8c
R13: 0000000000000000 R14: 00007ffc6ffa25e0 R15: 00007ffc6ffa26c8
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 16781 Comm: syz.0.4401 Tainted: G        W         5.10.223-syzkaller-01561-g0890c03b8b7d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:tick_program_event+0x9f/0x120 kernel/time/tick-oneshot.c:45
Code: 35 0c 00 83 fb 04 74 69 e8 ae 31 0c 00 31 ff 44 89 f6 e8 54 35 0c 00 31 d2 45 85 f6 0f 95 c2 4c 89 ff 4c 89 e6 e8 91 78 ff ff <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 e8 81 31 0c 00 4c 89 ff be 04 00
RSP: 0018:ffffc90000007140 EFLAGS: 00000082
RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffff888111020000
RDX: 0000000000010502 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007168 R08: ffffffff815df1b2 R09: ffffffff815df07d
R10: 0000000000000002 R11: ffff888111020000 R12: 0000031f7676dc4d
R13: 7fffffffffffffff R14: 0000000000000000 R15: ffff8881f7026e80
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f058027f178 CR3: 000000000660f000 CR4: 00000000003506b0
DR0: 0010000010000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 hrtimer_interrupt+0x4cf/0x8b0 kernel/time/hrtimer.c:1722
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1083 [inline]
 __sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1100
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline]
 sysvec_apic_timer_interrupt+0xba/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__nlmsg_put+0x4c/0x1a0 net/netlink/af_netlink.c:2170
Code: 89 fb 49 bf 00 00 00 00 00 fc ff df e8 0d cf 86 fd 45 8d 66 13 41 83 e4 fc 48 89 df 44 89 e6 e8 5a f9 da ff 4c 89 fa 48 89 c3 <48> 8d 78 04 48 89 f8 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 9e 00
RSP: 0018:ffffc90000007398 EFLAGS: 00000296
RAX: ffff88813e884800 RBX: ffff88813e884800 RCX: ffff888111020000
RDX: dffffc0000000000 RSI: 0000000000000280 RDI: 000000000000001c
RBP: ffffc900000073d0 R08: ffffffff83bed474 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000001c
R13: 000000000000001d R14: 000000000000000c R15: dffffc0000000000
 nlmsg_put include/net/netlink.h:920 [inline]
 neigh_fill_info+0x195/0xd30 net/core/neighbour.c:2453
 __neigh_notify+0x9d/0x120 net/core/neighbour.c:3379
 neigh_cleanup_and_release+0x2c/0x1b0 net/core/neighbour.c:102
 neigh_del net/core/neighbour.c:198 [inline]
 neigh_remove_one+0x36b/0x3d0 net/core/neighbour.c:219
 neigh_forced_gc net/core/neighbour.c:252 [inline]
 neigh_alloc net/core/neighbour.c:430 [inline]
 ___neigh_create+0x484/0x1a10 net/core/neighbour.c:592
 __neigh_create+0x32/0x40 net/core/neighbour.c:680
 ip6_finish_output2+0x957/0x1850 net/ipv6/ip6_output.c:142
 __ip6_finish_output+0x5ec/0x780 net/ipv6/ip6_output.c:216
 ip6_finish_output+0x34/0x1e0 net/ipv6/ip6_output.c:226
 NF_HOOK_COND include/linux/netfilter.h:288 [inline]
 ip6_output+0x1f7/0x4c0 net/ipv6/ip6_output.c:249
 dst_output include/net/dst.h:437 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ndisc_send_skb+0x6e9/0xc00 net/ipv6/ndisc.c:509
 ndisc_send_rs+0x532/0x6a0 net/ipv6/ndisc.c:703
 addrconf_rs_timer+0x2d1/0x600 net/ipv6/addrconf.c:3963
 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1450
 expire_timers kernel/time/timer.c:1495 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1789
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1802
 __do_softirq+0x268/0x5bb kernel/softirq.c:309
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:405 [inline]
 __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:finish_task_switch+0x143/0x5a0 kernel/sched/core.c:3886
Code: 30 84 c0 0f 85 9f 01 00 00 c7 03 00 00 00 00 4c 89 e7 e8 c0 e3 68 03 49 8d 9d b8 0a 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 30 <84> c0 0f 85 93 01 00 00 80 63 03 bf 0f 1f 44 00 00 4d 85 ff 74 69
RSP: 0018:ffffc900001570c0 EFLAGS: 00000a02
RAX: 0000000000000000 RBX: ffff888111020ab8 RCX: 0000000000000002
RDX: 0000000040000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90000157110 R08: ffffffff8188e1b9 R09: fffffbfff0dc753b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f7055fc0
R13: ffff888111020000 R14: dffffc0000000000 R15: 0000000000000000
 context_switch kernel/sched/core.c:4049 [inline]
 __schedule+0xbee/0x1330 kernel/sched/core.c:4804
 preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:5065
 irqentry_exit_cond_resched kernel/entry/common.c:365 [inline]
 irqentry_exit+0x4f/0x60 kernel/entry/common.c:395
 sysvec_apic_timer_interrupt+0xcb/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:unwind_next_frame+0x31d/0x700 arch/x86/kernel/unwind_frame.c:295
Code: 83 c6 48 4c 89 f0 48 c1 e8 03 80 3c 10 00 74 08 4c 89 f7 e8 f5 2c 76 00 49 c7 06 00 00 00 00 b0 01 e9 8c 02 00 00 4d 8d 6e 50 <4c> 89 eb 48 c1 eb 03 80 3c 13 00 74 12 4c 89 ef e8 2e 2c 76 00 48
RSP: 0018:ffffc90000157398 EFLAGS: 00000283
RAX: ffffc90000157f30 RBX: ffffc90000157750 RCX: 0000000000157401
RDX: dffffc0000000000 RSI: ffffffff81a4187e RDI: ffffc90000157f48
RBP: ffffc90000157410 R08: ffffc90000157508 R09: 0000000000000001
R10: ffffc90000157510 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffc90000157470 R14: ffffc90000157420 R15: 1ffff9200002ae84
 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:121
 save_stack+0x97/0x240 mm/page_owner.c:146
 __reset_page_owner+0x36/0x150 mm/page_owner.c:174
 reset_page_owner include/linux/page_owner.h:28 [inline]
 free_pages_prepare mm/page_alloc.c:1349 [inline]
 free_pcp_prepare mm/page_alloc.c:1421 [inline]
 free_unref_page_prepare+0x2ae/0x2d0 mm/page_alloc.c:3336
 free_unref_page mm/page_alloc.c:3391 [inline]
 free_the_page+0x9e/0x370 mm/page_alloc.c:5407
 __free_pages+0x67/0xc0 mm/page_alloc.c:5418
 __vunmap+0x7bc/0x8f0 mm/vmalloc.c:2301
 __vfree mm/vmalloc.c:2349 [inline]
 vfree+0x5c/0x80 mm/vmalloc.c:2380
 kcov_put kernel/kcov.c:408 [inline]
 kcov_close+0x2b/0x50 kernel/kcov.c:510
 __fput+0x33d/0x7b0 fs/file_table.c:281
 ____fput+0x15/0x20 fs/file_table.c:314
 task_work_run+0x129/0x190 kernel/task_work.c:165
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc83/0x2a50 kernel/exit.c:863
 do_group_exit+0x141/0x310 kernel/exit.c:985
 get_signal+0x10a0/0x1410 kernel/signal.c:2782
 arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805
 handle_signal_work kernel/entry/common.c:145 [inline]
 exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline]
 syscall_exit_to_user_mode+0xa2/0x1a0 kernel/entry/common.c:274
 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7ffa558819b9
Code: Unable to access opcode bytes at RIP 0x7ffa5588198f.
RSP: 002b:00007ffa544de0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000000 RBX: 00007ffa55a1e060 RCX: 00007ffa558819b9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007ffa55a1e060
RBP: 00007ffa55a1e058 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffa55a1e064
R13: 0000000000000000 R14: 00007ffcf88c0680 R15: 00007ffcf88c0768

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/16 15:04 android13-5.10-lts 0890c03b8b7d e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf BUG: soft lockup in __netif_receive_skb_core
* Struck through repros no longer work on HEAD.