[Android 5.10] general protection fault in filename_create

0 views
Skip to first unread message

syzbot

unread,
Sep 2, 2023, 11:10:56 AM9/2/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c8ca447a86a2 UPSTREAM: mhi: pci_generic: Fix implicit conv..
git tree: android13-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=15d58e98680000
kernel config: https://syzkaller.appspot.com/x/.config?x=b36e48adaccc9898
dashboard link: https://syzkaller.appspot.com/bug?extid=de3a4eb8ab7419d55ee5
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=176ae9a8680000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1023f977a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3f5e073efeb4/disk-c8ca447a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6cc89432ccf5/vmlinux-c8ca447a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f8803a628b73/bzImage-c8ca447a.xz

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

general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 765 Comm: syz-executor383 Not tainted 5.10.192-syzkaller-00409-gc8ca447a86a2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:d_is_positive include/linux/dcache.h:461 [inline]
RIP: 0010:filename_create+0x225/0x750 fs/namei.c:3619
Code: 89 e2 e8 fe 96 ff ff 49 89 c4 48 3d 01 f0 ff ff 72 07 e8 ce 06 b7 ff eb 5f 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 70 04 00 00 4c 89 64 24 30 45 8b 24 24 bb
RSP: 0018:ffffc900019f7d40 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88811051e9c0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000
RBP: ffffc900019f7e30 R08: ffffffff81b6238b R09: ffffed10220a3d3e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 1ffff9200033efd5 R14: ffffc900019f7ea8 R15: 1ffff9200033efd4
FS: 00007f624fa536c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020006000 CR3: 0000000114ade000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
user_path_create fs/namei.c:3671 [inline]
do_mkdirat+0xcc/0x2c0 fs/namei.c:3811
__do_sys_mkdir fs/namei.c:3834 [inline]
__se_sys_mkdir fs/namei.c:3832 [inline]
__x64_sys_mkdir+0x60/0x70 fs/namei.c:3832
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f624fad6ea7
Code: ff ff 77 07 31 c0 c3 0f 1f 40 00 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 b8 53 00 00 00 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:00007f624fa530c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f624fad6ea7
RDX: 0000000000000000 RSI: 00000000000001ff RDI: 00000000200001c0
RBP: 00007f624fa530f0 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffdbc319317 R11: 0000000000000202 R12: 00000000200001c0
R13: 0000000000000001 R14: 0000000000000000 R15: 2f30656c69662f2e
Modules linked in:
---[ end trace 9c41858f5c97bcaf ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:d_is_positive include/linux/dcache.h:461 [inline]
RIP: 0010:filename_create+0x225/0x750 fs/namei.c:3619
Code: 89 e2 e8 fe 96 ff ff 49 89 c4 48 3d 01 f0 ff ff 72 07 e8 ce 06 b7 ff eb 5f 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 70 04 00 00 4c 89 64 24 30 45 8b 24 24 bb
RSP: 0018:ffffc900019f7d40 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88811051e9c0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000
RBP: ffffc900019f7e30 R08: ffffffff81b6238b R09: ffffed10220a3d3e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 1ffff9200033efd5 R14: ffffc900019f7ea8 R15: 1ffff9200033efd4
FS: 00007f624fa536c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdbc3192f8 CR3: 0000000114ade000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 89 e2 mov %esp,%edx
2: e8 fe 96 ff ff call 0xffff9705
7: 49 89 c4 mov %rax,%r12
a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax
10: 72 07 jb 0x19
12: e8 ce 06 b7 ff call 0xffb706e5
17: eb 5f jmp 0x78
19: 4c 89 e0 mov %r12,%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: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 70 04 00 00 jne 0x4a6
36: 4c 89 64 24 30 mov %r12,0x30(%rsp)
3b: 45 8b 24 24 mov (%r12),%r12d
3f: bb .byte 0xbb


---
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 overwrite 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