syzbot


BUG: unable to handle kernel paging request in bpf_prog_test_run_xdp

Status: auto-obsoleted due to no activity on 2024/02/21 19:18
Reported-by: syzbot+de816911310b64b83a52@syzkaller.appspotmail.com
First crash: 160d, last: 160d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Write in bpf_prog_test_run_xdp bpf net C done 18 798d 815d 22/26 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in bpf_prog_test_run_xdp bpf net C 2 29d 42d 0/26 upstream: reported C repro on 2024/03/10 09:16

Sample crash report:
kernel tried to execute NX-protected page - exploit attempt? (uid: 0)
BUG: unable to handle page fault for address: ffffc90004e97978
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0011) - permissions violation
PGD 12400067 P4D 12400067 PUD 12616067 PMD 1f4da067 PTE 800000004c5c6163
Oops: 0011 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5347 Comm: syz-executor.1 Not tainted 6.1.62-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:0xffffc90004e97978
Code: ff ff 10 00 00 00 00 00 00 00 87 02 01 00 00 00 00 00 78 79 e9 04 00 c9 ff ff 18 00 00 00 00 00 00 00 60 7c e9 04 00 c9 ff ff <e4> ef bb 88 ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffffc90004e97978 EFLAGS: 00010287
RAX: ffffffff888bf233 RBX: ffffc90004e97a60 RCX: 0000000000040000
RDX: ffffffffa0001dcc RSI: ffffc9000503b048 RDI: ffffc90004e97c80
RBP: ffffc90004e97b70 R08: ffffffff88bc44c7 R09: ffffed1009007001
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc9000503b030 R14: 0000000000000000 R15: ffffc90004e97c60
FS:  00007f07356ee6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90004e97978 CR3: 0000000057e91000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_prog_test_run_xdp+0x7a7/0x1130 net/bpf/test_run.c:1389
 bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3633
 __sys_bpf+0x3eb/0x6c0 kernel/bpf/syscall.c:4986
 __do_sys_bpf kernel/bpf/syscall.c:5072 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5070 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5070
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0734a7cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f07356ee0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f0734b9c120 RCX: 00007f0734a7cae9
RDX: 0000000000000048 RSI: 0000000020001480 RDI: 000000000000000a
RBP: 00007f0734ac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f0734b9c120 R15: 00007fff21843548
 </TASK>
Modules linked in:
CR2: ffffc90004e97978
---[ end trace 0000000000000000 ]---
RIP: 0010:0xffffc90004e97978
Code: ff ff 10 00 00 00 00 00 00 00 87 02 01 00 00 00 00 00 78 79 e9 04 00 c9 ff ff 18 00 00 00 00 00 00 00 60 7c e9 04 00 c9 ff ff <e4> ef bb 88 ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffffc90004e97978 EFLAGS: 00010287
RAX: ffffffff888bf233 RBX: ffffc90004e97a60 RCX: 0000000000040000
RDX: ffffffffa0001dcc RSI: ffffc9000503b048 RDI: ffffc90004e97c80
RBP: ffffc90004e97b70 R08: ffffffff88bc44c7 R09: ffffed1009007001
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc9000503b030 R14: 0000000000000000 R15: ffffc90004e97c60
FS:  00007f07356ee6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90004e97978 CR3: 0000000057e91000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/13 19:17 linux-6.1.y fb2635ac69ab cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel paging request in bpf_prog_test_run_xdp
* Struck through repros no longer work on HEAD.