general protection fault in path_openat

9 views
Skip to first unread message

syzbot

unread,
Jan 30, 2020, 4:23:14 AM1/30/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: cac5f790 Merge 5.4.16 into android-5.4
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=15b48df1e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=31baa30a46510cb7
dashboard link: https://syzkaller.appspot.com/bug?extid=48b1e0dc353b36cd8bd1
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

Unfortunately, I don't have any reproducer for this crash yet.

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 24584 Comm: udevd Not tainted 5.4.16-syzkaller-01236-gcac5f7901828 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_last fs/namei.c:3369 [inline]
RIP: 0010:path_openat+0x324/0x3c00 fs/namei.c:3646
Code: 48 89 84 24 00 01 00 00 42 80 3c 38 00 74 08 48 89 df e8 5f ac f8 ff 48 89 5c 24 38 48 8b 1b 48 8d 7b 04 48 89 f8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 4b 24 00 00 8b 43 04 89 84 24 08 01 00 00
RSP: 0018:ffff8881d8c7f4c0 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881d8c7f6e8
RDX: ffff8881d7b1e798 RSI: 0000000000000000 RDI: 0000000000000004
RBP: ffff8881d8c7f790 R08: ffffffff817828c1 R09: 0000000000000003
R10: ffffed103b18fe4b R11: 0000000000000004 R12: ffff8881d8c7f7e8
R13: ffff8881ae015800 R14: ffff8881d8c7f9f0 R15: dffffc0000000000
FS: 00007f06356b37a0(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdf0096fc8 CR3: 000000019ac57006 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
do_filp_open+0x1f7/0x430 fs/namei.c:3676
do_open_execat+0x178/0x860 fs/exec.c:857
open_exec+0x3d/0x60 fs/exec.c:889
load_elf_binary+0x1abd/0x3720 fs/binfmt_elf.c:756
search_binary_handler+0x190/0x5e0 fs/exec.c:1659
exec_binprm fs/exec.c:1702 [inline]
__do_execve_file+0x12a2/0x1c00 fs/exec.c:1822
do_execveat_common fs/exec.c:1868 [inline]
do_execve fs/exec.c:1885 [inline]
__do_sys_execve fs/exec.c:1961 [inline]
__se_sys_execve fs/exec.c:1956 [inline]
__x64_sys_execve+0x94/0xb0 fs/exec.c:1956
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f0634d97207
Code: 77 19 f4 48 89 d7 44 89 c0 0f 05 48 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 f7 d8 64 41 89 01 eb df b8 3b 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 f3 c3 48 8b 15 00 8c 2d 00 f7 d8 64 89 02
RSP: 002b:00007fffd30bd468 EFLAGS: 00000202 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f0634d97207
RDX: 0000000000b94c70 RSI: 00007fffd30bd560 RDI: 00007fffd30be570
RBP: 0000000000625500 R08: 0000000000000197 R09: 0000000000000197
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000b94c70
R13: 0000000000000007 R14: 0000000000b45030 R15: 0000000000000005
Modules linked in:
---[ end trace 9ec228a4d1b50ae3 ]---
RIP: 0010:do_last fs/namei.c:3369 [inline]
RIP: 0010:path_openat+0x324/0x3c00 fs/namei.c:3646
Code: 48 89 84 24 00 01 00 00 42 80 3c 38 00 74 08 48 89 df e8 5f ac f8 ff 48 89 5c 24 38 48 8b 1b 48 8d 7b 04 48 89 f8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 4b 24 00 00 8b 43 04 89 84 24 08 01 00 00
RSP: 0018:ffff8881d8c7f4c0 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881d8c7f6e8
RDX: ffff8881d7b1e798 RSI: 0000000000000000 RDI: 0000000000000004
RBP: ffff8881d8c7f790 R08: ffffffff817828c1 R09: 0000000000000003
R10: ffffed103b18fe4b R11: 0000000000000004 R12: ffff8881d8c7f7e8
R13: ffff8881ae015800 R14: ffff8881d8c7f9f0 R15: dffffc0000000000
FS: 00007f06356b37a0(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc91c95fd8 CR3: 000000019ac57003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 31, 2020, 7:38:11 PM1/31/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: f683c8dc ANDROID: kallsyms: strip hashes from static funct..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=10e4c776e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c7f9f38a751ee458
dashboard link: https://syzkaller.appspot.com/bug?extid=48b1e0dc353b36cd8bd1
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=174665bee00000

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9756 Comm: blkid Not tainted 5.4.16-syzkaller-01243-gf683c8dc7f32 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_last fs/namei.c:3369 [inline]
RIP: 0010:path_openat+0x324/0x3c00 fs/namei.c:3646
Code: 48 89 84 24 00 01 00 00 42 80 3c 38 00 74 08 48 89 df e8 5f ac f8 ff 48 89 5c 24 38 48 8b 1b 48 8d 7b 04 48 89 f8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 4b 24 00 00 8b 43 04 89 84 24 08 01 00 00
RSP: 0018:ffff8881c5e97920 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881c5e97b48
RDX: ffff8881c6ee9298 RSI: 0000000000000000 RDI: 0000000000000004
RBP: ffff8881c5e97bf0 R08: ffffffff817828f1 R09: 0000000000000003
R10: ffffed1038bd2ed7 R11: 0000000000000004 R12: ffff8881c5e97c48
R13: ffff8881ced01e00 R14: ffff8881c5e97e40 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffd0216b50 CR3: 00000001c95d7003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
do_filp_open+0x1f7/0x430 fs/namei.c:3676
do_sys_open+0x36f/0x7a0 fs/open.c:1109
__do_sys_open fs/open.c:1127 [inline]
__se_sys_open fs/open.c:1122 [inline]
__x64_sys_open+0x87/0x90 fs/open.c:1122
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f7fe72e31a7
Code: c3 66 90 c7 05 fa af 20 00 16 00 00 00 b8 ff ff ff ff c3 f7 d8 89 05 ec af 20 00 83 c8 ff c3 90 90 90 90 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8d 0d cd af 20 00 31 d2 48 29 c2 89
RSP: 002b:00007ffe0ca087b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000400f31 RCX: 00007f7fe72e31a7
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 00007f7fe72e7282
RBP: 0000000000000001 R08: 00007f7fe74ee570 R09: 0000000000000000
R10: ffffffffffffffb0 R11: 0000000000000246 R12: 00007f7fe74ee090
R13: 00007f7fe74ed040 R14: 0000000000000000 R15: 00007f7fe74ee570
Modules linked in:
---[ end trace 1e5cc2f6953b1a00 ]---
RIP: 0010:do_last fs/namei.c:3369 [inline]
RIP: 0010:path_openat+0x324/0x3c00 fs/namei.c:3646
Code: 48 89 84 24 00 01 00 00 42 80 3c 38 00 74 08 48 89 df e8 5f ac f8 ff 48 89 5c 24 38 48 8b 1b 48 8d 7b 04 48 89 f8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 4b 24 00 00 8b 43 04 89 84 24 08 01 00 00
RSP: 0018:ffff8881c5e97920 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881c5e97b48
RDX: ffff8881c6ee9298 RSI: 0000000000000000 RDI: 0000000000000004
RBP: ffff8881c5e97bf0 R08: ffffffff817828f1 R09: 0000000000000003
R10: ffffed1038bd2ed7 R11: 0000000000000004 R12: ffff8881c5e97c48
R13: ffff8881ced01e00 R14: ffff8881c5e97e40 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffd0216b50 CR3: 00000001c95d7003 CR4: 00000000001606e0
Reply all
Reply to author
Forward
0 new messages