syzbot


BUG: soft lockup in ndisc_send_rs

Status: premoderation: reported on 2024/08/09 16:52
Reported-by: syzbot+ebfcbaf495ec191884f9@syzkaller.appspotmail.com
First crash: 38d, last: 38d

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 246s! [syz.1.191:999]
Modules linked in:
CPU: 1 PID: 999 Comm: syz.1.191 Not tainted 6.1.90-syzkaller-00003-gbe8ff39d2e99 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:ndisc_send_rs+0x0/0x5f0 net/ipv6/ndisc.c:672
Code: 24 60 75 1e 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 92 3f f8 fc 4c 8b 64 24 08 e9 50 ff ff ff e8 93 9c 9b 00 0f 1f 00 <55> 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 20 48 89 55 b8 49
RSP: 0018:ffffc900001b0c58 EFLAGS: 00000246

RAX: 0000000000000100 RBX: 0000000000000000 RCX: 0000000000000101
RDX: ffffffff86030dc0 RSI: ffffc900001b0cc0 RDI: ffff888114e8c000
RBP: ffffc900001b0d30 R08: ffffffff84780ce6 R09: ffffed102297e06f
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888114bf04f0 R14: 1ffff92000036194 R15: ffff888114bf0370
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f42d01c8f98 CR3: 000000012f648000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 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: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:ffffc900009d7140 EFLAGS: 00000246

RAX: ffff88810edc8001 RBX: 000000000001ffff RCX: ffffffff8137df64
RDX: 0000000000000001 RSI: 0000000000000060 RDI: ffffc900009d7220
RBP: ffffc900009d7168 R08: dffffc0000000000 R09: fffff5200013ae44
R10: fffffffffffffff4 R11: dffffc0000000001 R12: 1ffff9200013ae44
R13: 000000000000000c R14: fffff5200013ae50 R15: 0000000000000060
 memset+0x23/0x40 mm/kasan/shadow.c:44
 __unwind_start+0x34/0x3a0 arch/x86/kernel/unwind_frame.c:378
 unwind_start arch/x86/include/asm/unwind.h:64 [inline]
 arch_stack_walk+0xdb/0x140 arch/x86/kernel/stacktrace.c:24
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 save_stack+0xf6/0x1e0 mm/page_owner.c:147
 __reset_page_owner+0x54/0x190 mm/page_owner.c:168
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1498 [inline]
 free_pcp_prepare mm/page_alloc.c:1572 [inline]
 free_unref_page_prepare+0x83d/0x850 mm/page_alloc.c:3498
 free_unref_page+0xb2/0x5c0 mm/page_alloc.c:3594
 free_the_page mm/page_alloc.c:798 [inline]
 __free_pages+0x61/0xf0 mm/page_alloc.c:5803
 __vunmap+0x9f3/0xb60 mm/vmalloc.c:2728
 __vfree mm/vmalloc.c:2776 [inline]
 vfree+0x5c/0x80 mm/vmalloc.c:2807
 kcov_put kernel/kcov.c:428 [inline]
 kcov_close+0x2b/0x50 kernel/kcov.c:524
 __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
 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:316
 irqentry_exit+0x12/0x40 kernel/entry/common.c:419
 sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0033:0x7fcd67d779f9
Code: Unable to access opcode bytes at 0x7fcd67d779cf.
RSP: 002b:00007fcd68ae3038 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00007fcd67f05f80 RCX: 00007fcd67d779f9
RDX: 00000000200006c0 RSI: 0000000000005452 RDI: 0000000000000003
RBP: 00007fcd67de58ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fcd67f05f80 R15: 00007ffc7c4854b8
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 1302 Comm: kworker/u4:22 Not tainted 6.1.90-syzkaller-00003-gbe8ff39d2e99 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:__sanitizer_cov_trace_pc+0x5d/0x60 kernel/kcov.c:225
Code: 0b 00 00 83 fa 02 75 21 48 8b 91 50 0b 00 00 48 8b 32 48 8d 7e 01 8b 89 4c 0b 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2 08 5d <c3> 66 90 55 48 89 e5 4c 8b 45 08 65 48 8b 15 a0 ca 8c 7e 65 8b 05
RSP: 0018:ffffc9000874f838 EFLAGS: 00000293
RAX: ffffffff816c074c RBX: 1ffff1103ee27885 RCX: ffff88811690bcc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000874f958 R08: ffffffff816c0715 R09: ffffed103ee071fb
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: 0000000800000000 R14: ffff8881f713c428 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020207000 CR3: 0000000006e0f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x80 kernel/smp.c:1166
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1334 [inline]
 text_poke_bp_batch+0x1e9/0x730 arch/x86/kernel/alternative.c:1534
 text_poke_flush arch/x86/kernel/alternative.c:1725 [inline]
 text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:1732
 arch_jump_label_transform_apply+0x15/0x30 arch/x86/kernel/jump_label.c:146
 __jump_label_update+0x36a/0x380 kernel/jump_label.c:455
 jump_label_update+0x3af/0x450 kernel/jump_label.c:801
 static_key_enable_cpuslocked+0x12f/0x250 kernel/jump_label.c:177
 static_key_enable+0x1a/0x30 kernel/jump_label.c:190
 toggle_allocation_gate+0xbf/0x450 mm/kfence/core.c:804
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/09 16:51 android14-6.1 be8ff39d2e99 a83d9288 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in ndisc_send_rs
* Struck through repros no longer work on HEAD.