syzbot


BUG: soft lockup in ipv6_rcv

Status: premoderation: reported on 2024/07/15 22:49
Reported-by: syzbot+51762af1c9660db661c3@syzkaller.appspotmail.com
First crash: 91d, last: 75d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in ipv6_rcv (2) net 1 384d 384d 0/28 closed as invalid on 2023/10/27 13:35
upstream BUG: soft lockup in ipv6_rcv net 24 1898d 1903d 0/28 auto-closed as invalid on 2019/10/25 14:11
android-5-15 BUG: soft lockup in ipv6_rcv origin:lts C done 17 60d 179d 0/2 upstream: reported C repro on 2024/04/19 17:11
linux-4.19 BUG: soft lockup in ipv6_rcv C error 25 808d 1286d 0/1 upstream: reported C repro on 2021/04/08 17:19
android-54 BUG: soft lockup in ipv6_rcv 1 155d 155d 0/2 auto-obsoleted due to no activity on 2024/08/11 06:11
upstream INFO: rcu detected stall in ipv6_rcv (4) net C done done 6 29d 286d 0/28 upstream: reported C repro on 2024/01/03 13:15
upstream INFO: rcu detected stall in ipv6_rcv (3) net 1 504d 504d 0/28 auto-obsoleted due to no activity on 2023/08/28 06:25
upstream INFO: rcu detected stall in ipv6_rcv (2) C done 550 903d 1908d 0/28 auto-obsoleted due to no activity on 2023/04/19 23:54

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz.1.376:2667]
Modules linked in:
CPU: 1 PID: 2667 Comm: syz.1.376 Tainted: G        W         5.10.222-syzkaller-01494-gfd58936f3c1f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:arch_stack_walk+0x114/0x140 arch/x86/kernel/stacktrace.c:24
Code: ff 48 89 df e8 bd df 05 00 48 85 c0 74 1e 4c 89 f7 48 89 c6 41 ff d5 84 c0 74 11 48 89 df e8 d3 e0 05 00 83 bd 70 ff ff ff 00 <75> d5 65 48 8b 04 25 28 00 00 00 48 3b 45 d0 75 0f 48 83 c4 68 5b
RSP: 0000:ffffc90000170540 EFLAGS: 00000202
RAX: 0000000000170501 RBX: ffffc90000170540 RCX: 0000000000170501
RDX: 1ffff9200002e0aa RSI: ffffc90000170940 RDI: ffffc90000170598
RBP: ffffc900001705d0 R08: ffffc90000170628 R09: 0000000000000002
R10: ffffc90000170630 R11: dffffc0000000001 R12: ffff8881188293c0
R13: ffffffff8159b260 R14: ffffc90000170620 R15: 0000000000000000
FS:  00007f757aac66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f757bff20e0 CR3: 0000000122d9f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:121
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
 ____kasan_slab_free+0x121/0x160 mm/kasan/common.c:362
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370
 kasan_slab_free include/linux/kasan.h:220 [inline]
 slab_free_hook mm/slub.c:1595 [inline]
 slab_free_freelist_hook+0xc0/0x190 mm/slub.c:1621
 slab_free mm/slub.c:3203 [inline]
 kmem_cache_free+0xa9/0x1e0 mm/slub.c:3219
 kfree_skbmem+0x104/0x170
 __kfree_skb net/core/skbuff.c:695 [inline]
 kfree_skb+0xc1/0x320 net/core/skbuff.c:713
 ip6_mc_input+0x233/0x2a0 net/ipv6/ip6_input.c:574
 dst_input include/net/dst.h:443 [inline]
 ip6_rcv_finish+0x185/0x350 net/ipv6/ip6_input.c:80
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ipv6_rcv+0xee/0x270 net/ipv6/ip6_input.c:301
 __netif_receive_skb_one_core net/core/dev.c:5382 [inline]
 __netif_receive_skb+0x1c6/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 90 2a 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 54 f7 97 fc fb bf 01 00 00 00 <e8> 89 e6 ff ff fa bf 01 00 00 00 e8 de f8 97 fc 65 48 8b 1d 06 57
RSP: 0000:ffffc90001f37d60 EFLAGS: 00000246
RAX: 1ffff110231053be RBX: 1ffff920003e6fb0 RCX: ffffffff84b23e00
RDX: 1ffffffff0e10808 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90001f37df0 R08: ffffffff87084048 R09: ffffffff87084058
R10: ffffffff87084050 R11: ffffffff87084043 R12: ffffc90001f37d80
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff920003e6fac
 irqentry_exit_cond_resched kernel/entry/common.c:365 [inline]
 irqentry_exit+0x4f/0x60 kernel/entry/common.c:395
 sysvec_irq_work+0xc8/0xd0 arch/x86/kernel/irq_work.c:17
 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:661
RIP: 0010:exit_to_user_mode_loop+0x41/0xd0 kernel/entry/common.c:159
Code: 89 fe eb 22 e8 80 49 52 00 e8 1b 8e f0 00 fa 65 48 8b 05 d2 08 a9 7e 48 8b 18 f7 c3 0e 30 08 00 0f 84 87 00 00 00 fb f6 c3 08 <74> 05 e8 58 ab 57 03 f7 c3 00 10 00 00 74 08 4c 89 f7 e8 08 70 34
RSP: 0000:ffffc90001f37ee0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000010000
RDX: 1ffffffff0e10808 RSI: 0000000000000008 RDI: ffffc90001f37f58
RBP: ffffc90001f37ef0 R08: ffffffff87084048 R09: ffffffff87084058
R10: ffffffff87084050 R11: ffffffff87084043 R12: ffffffff84c00c7a
R13: 0000000000000000 R14: ffffc90001f37f58 R15: 0000000000000000
 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:0x7f757be673b9
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:00007f757aac6048 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00007f757bff6058 RCX: 00007f757be673b9
RDX: 00000000200006c0 RSI: 0000000000005452 RDI: 0000000000000004
RBP: 00007f757bed48e6 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f757bff6058 R15: 00007ffd140fc1b8
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 1111 Comm: syz.0.158 Tainted: G        W         5.10.222-syzkaller-01494-gfd58936f3c1f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:irq_work_run_list+0x274/0x2c0 kernel/irq_work.c:171
Code: 00 00 00 fc ff df 74 bf e8 f9 f3 f2 ff e9 43 ff ff ff e8 ef f3 f2 ff eb 0c e8 e8 f3 f2 ff eb 0a e8 e1 f3 f2 ff 4c 8b 64 24 10 <48> c7 44 24 20 0e 36 e0 45 4b c7 44 25 00 00 00 00 00 65 48 8b 04
RSP: 0018:ffffc90000007340 EFLAGS: 00000046
RAX: ffffffff8177b518 RBX: 0000000000000000 RCX: ffff888112efbb40
RDX: 0000000000010100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900000073e8 R08: ffffffff8177b36b R09: ffffed1024d69468
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000e6c
R13: dffffc0000000000 R14: ffff8881f7052fb8 R15: 0000000000000046
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f018ae86120 CR3: 0000000140bad000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 irq_work_run+0xb6/0xf0 kernel/irq_work.c:180
 __sysvec_irq_work+0x66/0x1b0 arch/x86/kernel/irq_work.c:22
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline]
 sysvec_irq_work+0xb7/0xd0 arch/x86/kernel/irq_work.c:17
 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:661
RIP: 0010:unwind_get_return_address+0x48/0x90 arch/x86/kernel/unwind_frame.c:19
Code: 0f b6 04 30 84 c0 75 48 83 3b 00 74 3a 48 83 c3 48 49 89 df 49 c1 ef 03 43 80 3c 37 00 74 08 48 89 df e8 3b 2f 76 00 48 8b 3b <e8> b3 1a 14 00 85 c0 74 14 43 80 3c 37 00 74 08 48 89 df e8 20 2f
RSP: 0018:ffffc90000007518 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc90000007588 RCX: 0000000000007501
RDX: 1ffff92000000eaa RSI: ffffc90000cb7a10 RDI: ffffffff813f1f63
RBP: ffffc90000007530 R08: ffffc90000007628 R09: 000000000000001f
R10: ffffc90000007630 R11: dffffc0000000001 R12: ffff888112efbb40
R13: ffffffff8159b260 R14: dffffc0000000000 R15: 1ffff92000000eb1
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:121
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:430 [inline]
 ____kasan_kmalloc+0xdb/0x110 mm/kasan/common.c:509
 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:518
 kasan_kmalloc include/linux/kasan.h:254 [inline]
 kmem_cache_alloc_trace+0x18a/0x2e0 mm/slub.c:2974
 kmalloc include/linux/slab.h:552 [inline]
 dst_cow_metrics_generic+0x55/0x1c0 net/core/dst.c:201
 dst_metrics_write_ptr include/net/dst.h:117 [inline]
 dst_metric_set include/net/dst.h:178 [inline]
 icmp6_dst_alloc+0x385/0x560 net/ipv6/route.c:3177
 ndisc_send_skb+0x25a/0xc00 net/ipv6/ndisc.c:489
 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:__kernel_text_address+0x0/0x110 kernel/extable.c:104
Code: c0 00 00 60 86 48 39 c7 0f 93 c0 48 c7 c1 c0 ba e4 86 48 39 cf 0f 92 c1 20 c1 0f b6 c1 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 <55> 48 89 e5 41 57 41 56 53 48 89 fb 48 c7 c0 00 00 00 81 41 be 01
RSP: 0018:ffffc90000cb73f0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc90000cb7468 RCX: 0000000000cb7401
RDX: 1ffff92000196e86 RSI: ffffc90000cb76c8 RDI: ffffffff81ad2626
RBP: ffffc90000cb7410 R08: ffffc90000cb7508 R09: 0000000000000000
R10: ffffc90000cb7510 R11: dffffc0000000001 R12: ffff888112efbb40
R13: ffffffff8159b260 R14: dffffc0000000000 R15: 1ffff92000196e8d
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 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:0x7fbfd2aaf3b9
Code: Unable to access opcode bytes at RIP 0x7fbfd2aaf38f.
RSP: 002b:00007fbfd170e048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007fbfd2c3e058 RCX: 00007fbfd2aaf3b9
RDX: 00000000200006c0 RSI: 0000000000005452 RDI: 0000000000000004
RBP: 00007fbfd2b1c8e6 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fbfd2c3e058 R15: 00007ffd9ea040f8

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/01 14:48 android13-5.10-lts fd58936f3c1f 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf BUG: soft lockup in ipv6_rcv
2024/07/23 03:21 android13-5.10-lts 1240968f7644 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf BUG: soft lockup in ipv6_rcv
2024/07/15 22:48 android13-5.10-lts 3feee789f446 e8709b21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf BUG: soft lockup in ipv6_rcv
* Struck through repros no longer work on HEAD.