syzbot


BUG: unable to handle kernel paging request in bpf_prog_ADDR

Status: upstream: reported C repro on 2025/07/20 09:48
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+e3a55fc3331942c2caaf@syzkaller.appspotmail.com
First crash: 7d22h, last: 7d21h
Bug presence (2)
Date Name Commit Repro Result
2025/07/20 linux-6.6.y (ToT) d96eb99e2f0e C [report] BUG: unable to handle kernel paging request in bpf_prog_ADDR
2025/07/20 upstream (ToT) f4a40a4282f4 C Didn't crash
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in bpf_prog_ADDR (3) bpf net 8 C done 6 380d 379d 28/29 fixed on 2024/10/22 11:56
upstream BUG: unable to handle kernel paging request in bpf_prog_ADDR kernel 8 C done 13 2184d 2200d 12/29 fixed on 2019/08/27 17:15
upstream BUG: sleeping function called from invalid context in do_user_addr_fault (2) 8 syz done error 27 1111d 1675d 0/29 auto-obsoleted due to no activity on 2023/12/05 09:08
upstream BUG: unable to handle kernel paging request in bpf_prog_ADDR (2) bpf 8 C 3 461d 475d 25/29 fixed on 2024/06/05 13:52
upstream BUG: unable to handle kernel NULL pointer dereference in bpf_prog_ADDR net bpf 10 syz error error 19 1506d 1820d 0/29 auto-obsoleted due to no activity on 2023/04/14 06:50

Sample crash report:
BUG: unable to handle page fault for address: 00000000799c5840
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 770e7067 P4D 770e7067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5945 Comm: syz.0.16 Not tainted 6.6.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:bpf_prog_40e58f572301565e+0x5c/0x9f
Code: 0a b8 02 00 00 00 41 5d 5b c9 c3 48 89 df 48 8b b7 d8 00 00 00 48 63 f6 48 8b 57 50 48 89 f0 48 83 c0 08 48 39 c2 77 02 eb dc <48> 0f b7 5e 00 49 89 dd 48 81 fb 0f ff 07 00 74 00 48 c1 e3 20 66
RSP: 0018:ffffc9000461faa0 EFLAGS: 00010286
RAX: 00000000799c5848 RBX: 0000000000000000 RCX: ffff8880299b9e00
RDX: ffff8880799c584e RSI: 00000000799c5840 RDI: ffff8880771e5280
RBP: ffffc9000461fab0 R08: ffffffff8e4a7cef R09: 1ffffffff1c94f9d
R10: dffffc0000000000 R11: fffffbfff1c94f9e R12: ffffc900020ab030
R13: ffffc9000461fd00 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000555563120500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000799c5840 CR3: 000000007702d000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 bpf_dispatcher_nop_func include/linux/bpf.h:1213 [inline]
 __bpf_prog_run include/linux/filter.h:612 [inline]
 bpf_prog_run include/linux/filter.h:619 [inline]
 bpf_test_run+0x2c7/0x810 net/bpf/test_run.c:424
 bpf_prog_test_run_skb+0xa67/0x11c0 net/bpf/test_run.c:1050
 bpf_prog_test_run+0x321/0x390 kernel/bpf/syscall.c:4123
 __sys_bpf+0x440/0x800 kernel/bpf/syscall.c:5485
 __do_sys_bpf kernel/bpf/syscall.c:5571 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5569 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5569
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4d6b98e9a9
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:00007ffd1ce5e5c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f4d6bbb5fa0 RCX: 00007f4d6b98e9a9
RDX: 000000000000004c RSI: 00002000000011c0 RDI: 000000000000000a
RBP: 00007f4d6ba10d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4d6bbb5fa0 R14: 00007f4d6bbb5fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
CR2: 00000000799c5840
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_prog_40e58f572301565e+0x5c/0x9f
Code: 0a b8 02 00 00 00 41 5d 5b c9 c3 48 89 df 48 8b b7 d8 00 00 00 48 63 f6 48 8b 57 50 48 89 f0 48 83 c0 08 48 39 c2 77 02 eb dc <48> 0f b7 5e 00 49 89 dd 48 81 fb 0f ff 07 00 74 00 48 c1 e3 20 66
RSP: 0018:ffffc9000461faa0 EFLAGS: 00010286
RAX: 00000000799c5848 RBX: 0000000000000000 RCX: ffff8880299b9e00
RDX: ffff8880799c584e RSI: 00000000799c5840 RDI: ffff8880771e5280
RBP: ffffc9000461fab0 R08: ffffffff8e4a7cef R09: 1ffffffff1c94f9d
R10: dffffc0000000000 R11: fffffbfff1c94f9e R12: ffffc900020ab030
R13: ffffc9000461fd00 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000555563120500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000799c5840 CR3: 000000007702d000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
   0:	0a b8 02 00 00 00    	or     0x2(%rax),%bh
   6:	41 5d                	pop    %r13
   8:	5b                   	pop    %rbx
   9:	c9                   	leave
   a:	c3                   	ret
   b:	48 89 df             	mov    %rbx,%rdi
   e:	48 8b b7 d8 00 00 00 	mov    0xd8(%rdi),%rsi
  15:	48 63 f6             	movslq %esi,%rsi
  18:	48 8b 57 50          	mov    0x50(%rdi),%rdx
  1c:	48 89 f0             	mov    %rsi,%rax
  1f:	48 83 c0 08          	add    $0x8,%rax
  23:	48 39 c2             	cmp    %rax,%rdx
  26:	77 02                	ja     0x2a
  28:	eb dc                	jmp    0x6
* 2a:	48 0f b7 5e 00       	movzwq 0x0(%rsi),%rbx <-- trapping instruction
  2f:	49 89 dd             	mov    %rbx,%r13
  32:	48 81 fb 0f ff 07 00 	cmp    $0x7ff0f,%rbx
  39:	74 00                	je     0x3b
  3b:	48 c1 e3 20          	shl    $0x20,%rbx
  3f:	66                   	data16

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/20 09:48 linux-6.6.y d96eb99e2f0e 7117feec .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf BUG: unable to handle kernel paging request in bpf_prog_ADDR
* Struck through repros no longer work on HEAD.