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

3 views
Skip to first unread message

syzbot

unread,
Jul 18, 2023, 7:26:54 PM7/18/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6c695fad68dc ANDROID: fuse-bpf: Add partial flock support
git tree: android14-6.1
console output: https://syzkaller.appspot.com/x/log.txt?x=1302cafaa80000
kernel config: https://syzkaller.appspot.com/x/.config?x=b75c7b7ab5a09aff
dashboard link: https://syzkaller.appspot.com/bug?extid=6eba52e4fa9c661eb6e9
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=15be4621a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16f6131aa80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/97e96f162158/disk-6c695fad.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1de7428dd623/vmlinux-6c695fad.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7d0406515463/bzImage-6c695fad.xz

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

BUG: unable to handle page fault for address: ffffffff840fbff7
#PF: supervisor write access in kernel mode
#PF: error_code(0x0003) - permissions violation
PGD 6a12067 P4D 6a12067 PUD 6a13063 PMD 40001e1
Oops: 0003 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 12284 Comm: syz-executor345 Not tainted 6.1.25-syzkaller-00034-g6c695fad68dc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:bpf_dispatcher_xdp+0x7f9/0x1000
Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 48 81 fa 4c 1e 00 a0 7f 37 48 81 fa 5c 1d 00
RSP: 0018:ffffc900009478b0 EFLAGS: 00010246
RAX: ffffffff840fbff7 RBX: ffffc90000947c00 RCX: ffff8881110e2880
RDX: ffffffffa0001d5c RSI: ffffc90002285050 RDI: ffffc90000947c00
RBP: ffffc900009478d0 R08: ffffffff8428d84d R09: ffffed102221c511
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90002285030 R14: ffffffffa0001d5c R15: ffffc90002285050
FS: 0000555556f42380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff840fbff7 CR3: 000000011bebe000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__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: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:0x7f4c38a9fda9
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:00007ffd09bad0f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4c38a9fda9
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: ffffffff840fbff7
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_dispatcher_xdp+0x7f9/0x1000
Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 48 81 fa 4c 1e 00 a0 7f 37 48 81 fa 5c 1d 00
RSP: 0018:ffffc900009478b0 EFLAGS: 00010246
RAX: ffffffff840fbff7 RBX: ffffc90000947c00 RCX: ffff8881110e2880
RDX: ffffffffa0001d5c RSI: ffffc90002285050 RDI: ffffc90000947c00
RBP: ffffc900009478d0 R08: ffffffff8428d84d R09: ffffed102221c511
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90002285030 R14: ffffffffa0001d5c R15: ffffc90002285050
FS: 0000555556f42380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff840fbff7 CR3: 000000011bebe000 CR4: 00000000003506a0
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 bug is already fixed, 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 change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

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

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

syzbot

unread,
Oct 31, 2023, 11:17:05 PM10/31/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=1474189b680000
start commit: 82fe654f5652 UPSTREAM: mm/page_alloc: use write_seqlock_ir..
git tree: android14-6.1
final oops: https://syzkaller.appspot.com/x/report.txt?x=1674189b680000
console output: https://syzkaller.appspot.com/x/log.txt?x=1274189b680000
kernel config: https://syzkaller.appspot.com/x/.config?x=e9500dd6486f6367
dashboard link: https://syzkaller.appspot.com/bug?extid=6eba52e4fa9c661eb6e9
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1533105f680000

Reported-by: syzbot+6eba52...@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