syzbot


BUG: unable to handle kernel paging request in bpf_prog_ADDR_F

Status: moderation: reported on 2022/06/02 01:53
Reported-by: syzbot+b9b16a0f741fb57ab039@syzkaller.appspotmail.com
First crash: 27d, last: 10h23m

Sample crash report:
BUG: unable to handle page fault for address: ffffffffa0002010
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD ba8f067 P4D ba8f067 PUD ba90063 PMD 16a92067 PTE 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 12650 Comm: syz-executor.3 Not tainted 5.18.0-syzkaller-04993-gd08af2c46881 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bpf_prog_9d4bccaf8ccaf0dc_F+0x0/0xd
Code: Unable to access opcode bytes at RIP 0xffffffffa0001fe6.
RSP: 0018:ffffc9000306f240 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffffc900038e3000 RCX: 0000000000000000
RDX: 1ffff9200071c606 RSI: ffffc900038e3048 RDI: 00000000ffff8880
RBP: ffffc9000306f248 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff81839fef R11: 0000000000000000 R12: 0000000000000001
R13: ffff888025291d80 R14: ffff88805f4b8000 R15: 0000000000000001
FS:  00007f73a55dd700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffa0001fe6 CR3: 0000000079835000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_dispatcher_nop_func include/linux/bpf.h:869 [inline]
 __bpf_prog_run include/linux/filter.h:628 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2046 [inline]
 bpf_trace_run4+0x124/0x360 kernel/trace/bpf_trace.c:2085
 __bpf_trace_sched_switch+0x115/0x160 include/trace/events/sched.h:222
 __traceiter_sched_switch+0x68/0xb0 include/trace/events/sched.h:222
 trace_sched_switch include/trace/events/sched.h:222 [inline]
 __schedule+0x145b/0x4b30 kernel/sched/core.c:6388
 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:6556
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35
 __mutex_lock_common kernel/locking/mutex.c:728 [inline]
 __mutex_lock+0xfee/0x1350 kernel/locking/mutex.c:747
 _vm_unmap_aliases.part.0+0x382/0x500 mm/vmalloc.c:2125
 _vm_unmap_aliases mm/vmalloc.c:2101 [inline]
 vm_remove_mappings mm/vmalloc.c:2626 [inline]
 __vunmap+0x6d5/0xd30 mm/vmalloc.c:2653
 __vfree+0x3c/0xd0 mm/vmalloc.c:2715
 vfree+0x5a/0x90 mm/vmalloc.c:2746
 bpf_jit_binary_free kernel/bpf/core.c:1080 [inline]
 bpf_jit_free+0x21a/0x2b0 kernel/bpf/core.c:1203
 jit_subprogs kernel/bpf/verifier.c:13683 [inline]
 fixup_call_args kernel/bpf/verifier.c:13712 [inline]
 bpf_check+0x71ab/0xbbc0 kernel/bpf/verifier.c:15063
 bpf_prog_load+0xfb2/0x2250 kernel/bpf/syscall.c:2575
 __sys_bpf+0x11a1/0x5700 kernel/bpf/syscall.c:4917
 __do_sys_bpf kernel/bpf/syscall.c:5021 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5019 [inline]
 __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5019
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f73a4489109
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f73a55dd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f73a459bf60 RCX: 00007f73a4489109
RDX: 0000000000000070 RSI: 0000000020000440 RDI: 0000000000000005
RBP: 00007f73a44e308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc13f6ab2f R14: 00007f73a55dd300 R15: 0000000000022000
 </TASK>
Modules linked in:
CR2: ffffffffa0002010
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_prog_9d4bccaf8ccaf0dc_F+0x0/0xd
Code: Unable to access opcode bytes at RIP 0xffffffffa0001fe6.
RSP: 0018:ffffc9000306f240 EFLAGS: 00010046

RAX: dffffc0000000000 RBX: ffffc900038e3000 RCX: 0000000000000000
RDX: 1ffff9200071c606 RSI: ffffc900038e3048 RDI: 00000000ffff8880
RBP: ffffc9000306f248 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff81839fef R11: 0000000000000000 R12: 0000000000000001
R13: ffff888025291d80 R14: ffff88805f4b8000 R15: 0000000000000001
FS:  00007f73a55dd700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffa0001fe6 CR3: 0000000079835000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-kasan-gce 2022/06/04 08:48 bpf d08af2c46881 c8857892 .config log report info BUG: unable to handle kernel paging request in bpf_prog_ADDR_F
ci-upstream-bpf-next-kasan-gce 2022/06/25 01:13 bpf-next 395e942d34a2 a5dbd430 .config log report info BUG: unable to handle kernel paging request in bpf_prog_ADDR_F
ci-upstream-bpf-next-kasan-gce 2022/05/29 01:48 bpf-next 7e062cda7d90 a46af346 .config log report info BUG: unable to handle kernel paging request in bpf_prog_ADDR_F