[Android 5.10] general protection fault in fuse_file_put

0 views
Skip to first unread message

syzbot

unread,
Aug 13, 2023, 9:55:04 PM8/13/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8a427269c016 Merge branch 'android13-5.10' into branch 'an..
git tree: android13-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1547b3c3a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=fefd86e1c1b1e951
dashboard link: https://syzkaller.appspot.com/bug?extid=b77a26994d98fd499901
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=177b5eada80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=124eda9ba80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/42a188936754/disk-8a427269.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0d4218277015/vmlinux-8a427269.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a504bff7c461/bzImage-8a427269.xz

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

RBP: 00007fd141a04400 R08: 00007fd1418f3fa6 R09: 0000000000003331
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd1419d122c
R13: 00007fd1418f4210 R14: 0000000000000002 R15: 2f30656c69662f2e
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: 303 Comm: syz-executor401 Not tainted 5.10.187-syzkaller-00057-g8a427269c016 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:927 [inline]
RIP: 0010:fuse_file_put+0x11d/0x2310 fs/fuse/file.c:125
Code: 01 00 00 00 89 de e8 e2 79 6c 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 d5 a4 a9 ff 4c 8d bc 24 c0 00 00 00
RSP: 0018:ffffc90000c16f00 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff88811e7ca780 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000c172a0 R08: ffffffff81fe176e R09: ffffed1023cd4906
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000028 R14: ffff88811e6a4800 R15: ffff88811e6a4828
FS: 00007fd1418f46c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd1418f3fe8 CR3: 000000011e50d000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
fuse_sync_release+0x81/0xb0 fs/fuse/file.c:393
fuse_create_open fs/fuse/dir.c:794 [inline]
fuse_atomic_open+0x26d7/0x31a0 fs/fuse/dir.c:855
atomic_open fs/namei.c:3120 [inline]
lookup_open fs/namei.c:3225 [inline]
open_last_lookups fs/namei.c:3323 [inline]
path_openat+0xff0/0x3000 fs/namei.c:3512
do_filp_open+0x21c/0x460 fs/namei.c:3542
do_sys_openat2+0x13f/0x6f0 fs/open.c:1217
do_sys_open fs/open.c:1233 [inline]
__do_sys_openat fs/open.c:1249 [inline]
__se_sys_openat fs/open.c:1244 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1244
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fd141975fa9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 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:00007fd1418f4208 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd141a04408 RCX: 00007fd141975fa9
RDX: 0000000000000c41 RSI: 0000000020002000 RDI: ffffffffffffff9c
RBP: 00007fd141a04400 R08: 00007fd1418f3fa6 R09: 0000000000003331
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd1419d122c
R13: 00007fd1418f4210 R14: 0000000000000002 R15: 2f30656c69662f2e
Modules linked in:
---[ end trace 4a710b76a10e457f ]---
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:927 [inline]
RIP: 0010:fuse_file_put+0x11d/0x2310 fs/fuse/file.c:125
Code: 01 00 00 00 89 de e8 e2 79 6c 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 d5 a4 a9 ff 4c 8d bc 24 c0 00 00 00
RSP: 0018:ffffc90000c16f00 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff88811e7ca780 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000c172a0 R08: ffffffff81fe176e R09: ffffed1023cd4906
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000028 R14: ffff88811e6a4800 R15: ffff88811e6a4828
FS: 00007fd1418f46c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd1419cc638 CR3: 000000011e50d000 CR4: 00000000003506b0
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 e2 79 6c ff call 0xff6c79ed
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 d5 a4 a9 ff call 0xffa9a50d
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
Reply all
Reply to author
Forward
0 new messages