[Android 6.1] general protection fault in fuse_file_put

0 views
Skip to first unread message

syzbot

unread,
Jul 2, 2023, 9:38:50 AM7/2/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ed2a228522b9 ANDROID: fix build error when use cpu_cgroup_..
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=17a32a68a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=c25288e8257ec4da
dashboard link: https://syzkaller.appspot.com/bug?extid=fe729a5c30ac8c5d095f
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=163793f0a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15e77dd0a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/faee87725138/disk-ed2a2285.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/11133ca2cd73/vmlinux-ed2a2285.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1b78d440d6e6/bzImage-ed2a2285.xz

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

RSP: 002b:00007f98245be2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f982469a4c0 RCX: 00007f982460d419
RDX: 00000000000002f0 RSI: 0000000000000000 RDI: 00000000200002c0
RBP: 00007f9824667264 R08: 0000000000000002 R09: 0000000000003331
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f982469a4c8
R13: 00007f98245be2f0 R14: 2f30656c69662f2e R15: 0000000000000002
</TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 PID: 304 Comm: syz-executor193 Not tainted 6.1.25-syzkaller-00155-ged2a228522b9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:965 [inline]
RIP: 0010:fuse_file_put+0x11d/0x2420 fs/fuse/file.c:119
Code: 01 00 00 00 89 de e8 02 0d 60 ff 83 fb 01 0f 85 ee 00 00 00 4d 8d 6c 24 28 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 65 25 a6 ff 4c 8d bc 24 c0 00 00 00
RSP: 0018:ffffc90000e46ea0 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff88811af46540 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000e47240 R08: ffffffff8214db2e R09: ffffed1024401486
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000028 R14: ffff88812200a400 R15: ffff88812200a428
FS: 00007f98245be700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001140 CR3: 0000000109a54000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
fuse_sync_release+0x81/0xb0 fs/fuse/file.c:400
fuse_create_open+0x1bd3/0x3480 fs/fuse/dir.c:813
fuse_atomic_open+0x22e/0x3a0 fs/fuse/dir.c:875
atomic_open fs/namei.c:3276 [inline]
lookup_open fs/namei.c:3384 [inline]
open_last_lookups fs/namei.c:3481 [inline]
path_openat+0xf52/0x2d60 fs/namei.c:3711
do_filp_open+0x230/0x480 fs/namei.c:3741
do_sys_openat2+0x13f/0x850 fs/open.c:1333
do_sys_open fs/open.c:1349 [inline]
__do_sys_creat fs/open.c:1425 [inline]
__se_sys_creat fs/open.c:1419 [inline]
__x64_sys_creat+0x11f/0x160 fs/open.c:1419
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:0x7f982460d419
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007f98245be2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f982469a4c0 RCX: 00007f982460d419
RDX: 00000000000002f0 RSI: 0000000000000000 RDI: 00000000200002c0
RBP: 00007f9824667264 R08: 0000000000000002 R09: 0000000000003331
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f982469a4c8
R13: 00007f98245be2f0 R14: 2f30656c69662f2e R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:965 [inline]
RIP: 0010:fuse_file_put+0x11d/0x2420 fs/fuse/file.c:119
Code: 01 00 00 00 89 de e8 02 0d 60 ff 83 fb 01 0f 85 ee 00 00 00 4d 8d 6c 24 28 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 65 25 a6 ff 4c 8d bc 24 c0 00 00 00
RSP: 0018:ffffc90000e46ea0 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff88811af46540 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000e47240 R08: ffffffff8214db2e R09: ffffed1024401486
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000028 R14: ffff88812200a400 R15: ffff88812200a428
FS: 00007f98245be700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001140 CR3: 0000000109a54000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 01 00 add %eax,(%rax)
2: 00 00 add %al,(%rax)
4: 89 de mov %ebx,%esi
6: e8 02 0d 60 ff callq 0xff600d0d
b: 83 fb 01 cmp $0x1,%ebx
e: 0f 85 ee 00 00 00 jne 0x102
14: 4d 8d 6c 24 28 lea 0x28(%r12),%r13
19: 4c 89 e8 mov %r13,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 ef mov %r13,%rdi
33: e8 65 25 a6 ff callq 0xffa6259d
38: 4c 8d bc 24 c0 00 00 lea 0xc0(%rsp),%r15
3f: 00


---
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,
Jul 2, 2023, 11:29:31 PM7/2/23
to syzkaller-a...@googlegroups.com
syzbot has bisected this issue to:

commit 9ea87136d184cb4747e6fef7f9cac152687c566f
Author: Paul Lawrence <paulla...@google.com>
Date: Wed Jun 14 18:55:53 2023 +0000

ANDROID: fuse-bpf: Move FUSE_RELEASE to correct place

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=117e67eca80000
start commit: ed2a228522b9 ANDROID: fix build error when use cpu_cgroup_..
git tree: android14-6.1
final oops: https://syzkaller.appspot.com/x/report.txt?x=137e67eca80000
console output: https://syzkaller.appspot.com/x/log.txt?x=157e67eca80000
Reported-by: syzbot+fe729a...@syzkaller.appspotmail.com
Fixes: 9ea87136d184 ("ANDROID: fuse-bpf: Move FUSE_RELEASE to correct place")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Jul 3, 2023, 3:31:50 PM7/3/23
to syzkaller-a...@googlegroups.com
Bug presence analysis results: the bug reproduces only on Android 6.1.

syzbot has run the reproducer on other relevant kernel trees and got
the following results:

android14-6.1 (commit ed2a228522b9) on 2023/07/03:
general protection fault in fuse_file_put
Report: https://syzkaller.appspot.com/x/report.txt?x=15bc2910a80000

lts (commit b1644a0031cf) on 2023/07/03:
Didn't crash.

upstream (commit a901a3568fd2) on 2023/07/03:
Didn't crash.

More details can be found at:
https://syzkaller.appspot.com/bug?extid=fe729a5c30ac8c5d095f
Reply all
Reply to author
Forward
0 new messages