syzbot


BUG: unable to handle kernel paging request in bpf_dispatcher_xdp

Status: upstream: reported C repro on 2023/04/02 08:52
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+08ba1e474d350b613604@syzkaller.appspotmail.com
First crash: 441d, last: 136d
Fix commit to backport (bisect log) :
tree: upstream
commit 4121d4481b72501aa4d22680be4ea1096d69d133
Author: Jiri Olsa <jolsa@kernel.org>
Date: Wed Dec 14 12:35:42 2022 +0000

  bpf: Synchronize dispatcher update with bpf_dispatcher_xdp_func

  
Bug presence (2)
Date Name Commit Repro Result
2023/07/20 linux-6.1.y (ToT) a456e1743881 C [report] invalid opcode in bpf_dispatcher_xdp
2023/07/20 upstream (ToT) bfa3037d8280 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: unable to handle kernel paging request in bpf_dispatcher_xdp origin:lts missing-backport C done error 20 6d19h 334d 0/2 upstream: reported C repro on 2023/07/18 23:26
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/09/02 17:23 6h00m fix candidate upstream job log (1)

Sample crash report:
BUG: unable to handle page fault for address: ffffffff93284e92
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD cc91067 P4D cc91067 PUD cc92063 PMD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6265 Comm: syz-executor344 Not tainted 6.1.38-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:bpf_dispatcher_xdp+0x863/0x1000
Code: cb 08 00 00 ff e2 90 48 81 fa f4 4d 00 a0 7f 17 48 81 fa f4 4d 00 a0 0f 84 5e 0a 00 00 ff e2 0f 1f 84 00 00 00 00 00 48 81 fa <4c> 4e 00 a0 0f 84 9f 0a 00 00 ff e2 ff e2 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90003cff978 EFLAGS: 00010046
RAX: ffffffff8888ca83 RBX: ffffc90003cffa60 RCX: ffff88807af89dc0
RDX: ffffffffa0004c48 RSI: ffffc90003d87048 RDI: ffffc90003cffc80
RBP: ffffc90003cffb70 R08: ffffffff88beb6b7 R09: ffffed100f5f13b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90003d87030 R14: 0000000000000000 R15: ffffc90003cffc60
FS:  000055555573f380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff93284e92 CR3: 00000000276e6000 CR4: 00000000003506f0
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:0x7fdb313ebda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe609ee968 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdb313ebda9
RDX: 0000000000000048 RSI: 0000000020000180 RDI: 000000000000000a
RBP: 0000000000000000 R08: 00000000000000a0 R09: 00000000000000a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
CR2: ffffffff93284e92
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_dispatcher_xdp+0x863/0x1000
Code: cb 08 00 00 ff e2 90 48 81 fa f4 4d 00 a0 7f 17 48 81 fa f4 4d 00 a0 0f 84 5e 0a 00 00 ff e2 0f 1f 84 00 00 00 00 00 48 81 fa <4c> 4e 00 a0 0f 84 9f 0a 00 00 ff e2 ff e2 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90003cff978 EFLAGS: 00010046
RAX: ffffffff8888ca83 RBX: ffffc90003cffa60 RCX: ffff88807af89dc0
RDX: ffffffffa0004c48 RSI: ffffc90003d87048 RDI: ffffc90003cffc80
RBP: ffffc90003cffb70 R08: ffffffff88beb6b7 R09: ffffed100f5f13b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90003d87030 R14: 0000000000000000 R15: ffffc90003cffc60
FS:  000055555573f380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff93284e92 CR3: 00000000276e6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/19 02:15 linux-6.1.y 61fd484b2cf6 022df2bb .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel paging request in bpf_dispatcher_xdp
2024/02/01 10:03 linux-6.1.y e5c3b988b827 373b66cd .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel paging request in bpf_dispatcher_xdp
2023/11/14 02:25 linux-6.1.y fb2635ac69ab cb976f63 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel paging request in bpf_dispatcher_xdp
2023/11/11 06:12 linux-6.1.y fb2635ac69ab d80eec66 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in bpf_dispatcher_xdp
2023/11/03 02:21 linux-6.1.y 4a61839152cc c4ac074c .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf general protection fault in bpf_dispatcher_xdp
2023/10/30 14:02 linux-6.1.y 32c9cdbe383c b5729d82 .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_dispatcher_xdp
2023/10/26 12:03 linux-6.1.y 32c9cdbe383c 23afc60f .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_dispatcher_xdp
2023/10/20 14:42 linux-6.1.y 7d24402875c7 361b23dc .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_dispatcher_xdp
2023/10/12 10:13 linux-6.1.y 082280fe94a0 1b231e3c .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_dispatcher_xdp
2023/10/12 09:08 linux-6.1.y 082280fe94a0 1b231e3c .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_dispatcher_xdp
2023/10/10 07:33 linux-6.1.y ecda77b46871 c9be5398 .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_dispatcher_xdp
2023/10/06 14:57 linux-6.1.y ecda77b46871 ea12a918 .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_dispatcher_xdp
2023/09/28 03:35 linux-6.1.y d23900f974e0 c2ab1e5d .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_dispatcher_xdp
2023/09/26 21:47 linux-6.1.y d23900f974e0 0b6a67ac .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_dispatcher_xdp
2023/04/02 08:52 linux-6.1.y 3b29299e5f60 f325deb0 .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_dispatcher_xdp
2023/11/02 19:50 linux-6.1.y 4a61839152cc c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf general protection fault in bpf_dispatcher_xdp
* Struck through repros no longer work on HEAD.