[Android 6.1] BUG: unable to handle kernel paging request in bpf_dispatcher_xdp_func

3 views
Skip to first unread message

syzbot

unread,
Nov 2, 2023, 6:48:30 AM11/2/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4bbeaddf9a63 Revert "ANDROID: KVM: arm64: Don't allocate f..
git tree: android14-6.1
console output: https://syzkaller.appspot.com/x/log.txt?x=11be2d07680000
kernel config: https://syzkaller.appspot.com/x/.config?x=e9500dd6486f6367
dashboard link: https://syzkaller.appspot.com/bug?extid=58634c208a101ea760cb
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12a98a3b680000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=112aa1a5680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/aea845cf88b2/disk-4bbeaddf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5052c14f2f35/vmlinux-4bbeaddf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6c6005d7245a/bzImage-4bbeaddf.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+58634c...@syzkaller.appspotmail.com

BUG: unable to handle page fault for address: ffffffc90003697c
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 6c12067 P4D 6c12067 PUD 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 13441 Comm: syz-executor289 Not tainted 6.1.43-syzkaller-00254-g4bbeaddf9a63 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:0xffffffc90003697c
Code: Unable to access opcode bytes at 0xffffffc900036952.
RSP: 0018:ffffc90003697881 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffc90003697c00 RCX: ffff88810f712880
RDX: ffffffffa0001750 RSI: ffffc90003699050 RDI: ffffc90003697c00
RBP: ffffc900036978a8 R08: ffffffff842f90cd R09: ffffed1021ee2511
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90003699030 R14: ffffffffa0001750 R15: ffffc90003699050
FS: 00007fd4c70436c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffc900036952 CR3: 0000000124524000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bpf_dispatcher_xdp_func+0x25/0x30 net/core/filter.c:11426
__bpf_prog_run include/linux/filter.h:600 [inline]
bpf_prog_run_xdp include/linux/filter.h:775 [inline]
bpf_test_run+0x470/0xa40 net/bpf/test_run.c:400
bpf_prog_test_run_xdp+0x7a7/0x1130 net/bpf/test_run.c:1389
bpf_prog_test_run+0x3b0/0x630 kernel/bpf/syscall.c:3635
__sys_bpf+0x59f/0x7f0 kernel/bpf/syscall.c:4990
__do_sys_bpf kernel/bpf/syscall.c:5076 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5074 [inline]
__x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5074
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:0x7fd4c7083dc9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 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:00007fd4c7043168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fd4c710e3c8 RCX: 00007fd4c7083dc9
RDX: 0000000000000048 RSI: 0000000020001480 RDI: 000000000000000a
RBP: 00007fd4c710e3c0 R08: 00007fd4c70436c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd4c710e3cc
R13: 0000000000000016 R14: 00007fff3e87a7e0 R15: 00007fff3e87a8c8
</TASK>
Modules linked in:
CR2: ffffffc90003697c
---[ end trace 0000000000000000 ]---
RIP: 0010:0xffffffc90003697c
Code: Unable to access opcode bytes at 0xffffffc900036952.
RSP: 0018:ffffc90003697881 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffc90003697c00 RCX: ffff88810f712880
RDX: ffffffffa0001750 RSI: ffffc90003699050 RDI: ffffc90003697c00
RBP: ffffc900036978a8 R08: ffffffff842f90cd R09: ffffed1021ee2511
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90003699030 R14: ffffffffa0001750 R15: ffffc90003699050
FS: 00007fd4c70436c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffc900036952 CR3: 0000000124524000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Nov 3, 2023, 4:58:07 AM11/3/23
to syzkaller-a...@googlegroups.com
syzbot has bisected this issue to:

commit dbe69b29988465b011f198f2797b1c2b6980b50e
Author: Jiri Olsa <jo...@kernel.org>
Date: Tue Oct 18 07:59:34 2022 +0000

bpf: Fix dispatcher patchable function entry to 5 bytes nop

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=139c60d7680000
start commit: 4bbeaddf9a63 Revert "ANDROID: KVM: arm64: Don't allocate f..
git tree: android14-6.1
final oops: https://syzkaller.appspot.com/x/report.txt?x=105c60d7680000
console output: https://syzkaller.appspot.com/x/log.txt?x=179c60d7680000
Reported-by: syzbot+58634c...@syzkaller.appspotmail.com
Fixes: dbe69b299884 ("bpf: Fix dispatcher patchable function entry to 5 bytes nop")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages