syzbot


BUG: unable to handle kernel paging request in bpf_test_run

Status: auto-obsoleted due to no activity on 2023/10/23 16:24
Reported-by: syzbot+d2061d70ff7f1cd81afe@syzkaller.appspotmail.com
First crash: 508d, last: 508d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel NULL pointer dereference in bpf_test_run origin:lts-only C done 1 428d 428d 0/3 upstream: reported C repro on 2023/10/13 04:35

Sample crash report:
BUG: unable to handle page fault for address: ffffffffa000078c
#PF: supervisor write access in kernel mode
#PF: error_code(0x0003) - permissions violation
PGD 6a12067 P4D 6a12067 PUD 6a13063 PMD 108fcb067 PTE 108dcb161
Oops: 0003 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7427 Comm: syz-executor.4 Not tainted 6.1.25-syzkaller-00056-g0ee75a672ca5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:bpf_test_run+0x4be/0xa40
Code: 08 4c 89 ef e8 63 7d 92 fd 48 8b 7c 24 38 48 8b 74 24 30 41 ff 55 00 41 89 c7 4c 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 75 43 <45> 89 3e 48 8d bc 24 60 01 00 00 be 01 00 00 00 8b 54 24 2c 48 8d
RSP: 0018:ffffc900020cf8e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc900020cf9e0 RCX: 0000000000040000
RDX: ffffc9000185c000 RSI: 0000000000000390 RDI: 0000000000000391
RBP: ffffc900020cfaf0 R08: ffffffff8166edc1 R09: fffff52000419f4b
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffffff840fc3d5 R14: ffffffffa000078c R15: 000000007fff0000
FS:  00007f6da9d596c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffa000078c CR3: 000000014481b000 CR4: 00000000003506a0
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+0x3b0/0x630 kernel/bpf/syscall.c:3630
 __sys_bpf+0x59f/0x7f0 kernel/bpf/syscall.c:4985
 __do_sys_bpf kernel/bpf/syscall.c:5071 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5069 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5069
 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:0x7f6da907cb29
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:00007f6da9d590c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f6da919bf80 RCX: 00007f6da907cb29
RDX: 0000000000000048 RSI: 0000000020000000 RDI: 000000000000000a
RBP: 00007f6da90c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6da919bf80 R15: 00007fff1b8d4e18
 </TASK>
Modules linked in:
CR2: ffffffffa000078c
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_test_run+0x4be/0xa40
Code: 08 4c 89 ef e8 63 7d 92 fd 48 8b 7c 24 38 48 8b 74 24 30 41 ff 55 00 41 89 c7 4c 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 75 43 <45> 89 3e 48 8d bc 24 60 01 00 00 be 01 00 00 00 8b 54 24 2c 48 8d
RSP: 0018:ffffc900020cf8e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc900020cf9e0 RCX: 0000000000040000
RDX: ffffc9000185c000 RSI: 0000000000000390 RDI: 0000000000000391
RBP: ffffc900020cfaf0 R08: ffffffff8166edc1 R09: fffff52000419f4b
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffffff840fc3d5 R14: ffffffffa000078c R15: 000000007fff0000
FS:  00007f6da9d596c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffa000078c CR3: 000000014481b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	08 4c 89 ef          	or     %cl,-0x11(%rcx,%rcx,4)
   4:	e8 63 7d 92 fd       	call   0xfd927d6c
   9:	48 8b 7c 24 38       	mov    0x38(%rsp),%rdi
   e:	48 8b 74 24 30       	mov    0x30(%rsp),%rsi
  13:	41 ff 55 00          	call   *0x0(%r13)
  17:	41 89 c7             	mov    %eax,%r15d
  1a:	4c 89 f0             	mov    %r14,%rax
  1d:	48 c1 e8 03          	shr    $0x3,%rax
  21:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax
  26:	84 c0                	test   %al,%al
  28:	75 43                	jne    0x6d
* 2a:	45 89 3e             	mov    %r15d,(%r14) <-- trapping instruction
  2d:	48 8d bc 24 60 01 00 	lea    0x160(%rsp),%rdi
  34:	00
  35:	be 01 00 00 00       	mov    $0x1,%esi
  3a:	8b 54 24 2c          	mov    0x2c(%rsp),%edx
  3e:	48                   	rex.W
  3f:	8d                   	.byte 0x8d

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/25 16:18 android14-6.1 0ee75a672ca5 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in bpf_test_run
* Struck through repros no longer work on HEAD.