syzbot


general protection fault in path_openat

Status: fixed on 2021/10/12 13:38
Reported-by: syzbot+48b1e0dc353b36cd8bd1@syzkaller.appspotmail.com
Fix commit: 2c38e6140126 vfs: fix do_last() regression
First crash: 1757d, last: 1750d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in path_openat reiserfs C error inconclusive 52 323d 721d 0/28 auto-obsoleted due to no activity on 2024/04/12 10:28
android-5-10 general protection fault in path_openat C done 30 5d00h 550d 0/2 upstream: reported C repro on 2023/05/21 01:33
linux-4.19 general protection fault in path_openat C done 13 1751d 1757d 1/1 fixed on 2020/03/06 08:34
upstream general protection fault in path_openat ext4 C done 7 1755d 1755d 15/28 fixed on 2020/02/18 14:31
linux-4.14 general protection fault in path_openat C done 40 1751d 1757d 1/1 fixed on 2020/03/06 21:15
android-5-15 general protection fault in path_openat origin:downstream C done 7 5d22h 550d 0/2 upstream: reported C repro on 2023/05/21 01:53
android-6-1 general protection fault in path_openat origin:downstream C done error 6 84d 550d 0/2 upstream: reported C repro on 2023/05/21 01:53

Sample crash report:
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: 0 PID: 5047 Comm: udevd Not tainted 5.4.16-syzkaller-01251-gf7eefc38b845 #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:ffff8881c97674c0 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881c97676e8
RDX: ffff8881cae70c98 RSI: 0000000000000000 RDI: 0000000000000004
RBP: ffff8881c9767790 R08: ffffffff817828f1 R09: 0000000000000003
R10: ffffed10392ece4b R11: 0000000000000004 R12: ffff8881c97677e8
R13: ffff8881ce06e700 R14: ffff8881c97679f0 R15: dffffc0000000000
FS:  00007f1b23fd47a0(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1b23991518 CR3: 00000001cabe3003 CR4: 00000000001606f0
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:0x7f1b236b8207
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:00007ffdbd085e28 EFLAGS: 00000206 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f1b236b8207
RDX: 00000000015a7e80 RSI: 00007ffdbd085f20 RDI: 00007ffdbd086f30
RBP: 0000000000625500 R08: 0000000000001118 R09: 0000000000001118
R10: 0000000000000000 R11: 0000000000000206 R12: 00000000015a7e80
R13: 0000000000000007 R14: 0000000001558030 R15: 0000000000000005
Modules linked in:
---[ end trace 2df848be6a74d1f8 ]---
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:ffff8881c97674c0 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881c97676e8
RDX: ffff8881cae70c98 RSI: 0000000000000000 RDI: 0000000000000004
RBP: ffff8881c9767790 R08: ffffffff817828f1 R09: 0000000000000003
R10: ffffed10392ece4b R11: 0000000000000004 R12: ffff8881c97677e8
R13: ffff8881ce06e700 R14: ffff8881c97679f0 R15: dffffc0000000000
FS:  00007f1b23fd47a0(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1b23991518 CR3: 00000001cabe3003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/01 21:28 https://android.googlesource.com/kernel/common android-5.4 f7eefc38b845 326d4c78 .config console log report syz ci2-android-5-4-kasan
2020/02/01 17:14 https://android.googlesource.com/kernel/common android-5.4 f7eefc38b845 326d4c78 .config console log report syz ci2-android-5-4-kasan
2020/02/01 00:38 https://android.googlesource.com/kernel/common android-5.4 f683c8dc7f32 0eb59c27 .config console log report syz ci2-android-5-4-kasan
2020/02/06 08:54 https://android.googlesource.com/kernel/common android-5.4 2303d908db80 662cf49a .config console log report ci2-android-5-4-kasan
2020/02/06 06:45 https://android.googlesource.com/kernel/common android-5.4 2303d908db80 662cf49a .config console log report ci2-android-5-4-kasan
2020/02/05 11:35 https://android.googlesource.com/kernel/common android-5.4 202bb0151929 93e5e335 .config console log report ci2-android-5-4-kasan
2020/02/04 17:15 https://android.googlesource.com/kernel/common android-5.4 b3fbbf580c21 93e5e335 .config console log report ci2-android-5-4-kasan
2020/02/03 17:11 https://android.googlesource.com/kernel/common android-5.4 83003512ab3b 93e5e335 .config console log report ci2-android-5-4-kasan
2020/02/03 14:05 https://android.googlesource.com/kernel/common android-5.4 83003512ab3b 93e5e335 .config console log report ci2-android-5-4-kasan
2020/02/02 18:18 https://android.googlesource.com/kernel/common android-5.4 4a192aa559b1 93e5e335 .config console log report ci2-android-5-4-kasan
2020/02/02 17:11 https://android.googlesource.com/kernel/common android-5.4 4a192aa559b1 93e5e335 .config console log report ci2-android-5-4-kasan
2020/02/02 14:05 https://android.googlesource.com/kernel/common android-5.4 4a192aa559b1 93e5e335 .config console log report ci2-android-5-4-kasan
2020/02/02 10:42 https://android.googlesource.com/kernel/common android-5.4 4a192aa559b1 2274ad39 .config console log report ci2-android-5-4-kasan
2020/02/02 09:31 https://android.googlesource.com/kernel/common android-5.4 4a192aa559b1 2274ad39 .config console log report ci2-android-5-4-kasan
2020/02/02 08:48 https://android.googlesource.com/kernel/common android-5.4 4a192aa559b1 2274ad39 .config console log report ci2-android-5-4-kasan
2020/02/02 07:11 https://android.googlesource.com/kernel/common android-5.4 4a192aa559b1 2274ad39 .config console log report ci2-android-5-4-kasan
2020/02/01 21:16 https://android.googlesource.com/kernel/common android-5.4 f7eefc38b845 326d4c78 .config console log report ci2-android-5-4-kasan
2020/02/01 15:40 https://android.googlesource.com/kernel/common android-5.4 f7eefc38b845 326d4c78 .config console log report ci2-android-5-4-kasan
2020/02/01 15:12 https://android.googlesource.com/kernel/common android-5.4 f7eefc38b845 326d4c78 .config console log report ci2-android-5-4-kasan
2020/02/01 00:10 https://android.googlesource.com/kernel/common android-5.4 f683c8dc7f32 0eb59c27 .config console log report ci2-android-5-4-kasan
2020/01/31 15:47 https://android.googlesource.com/kernel/common android-5.4 383f53ee186a 5ed23f9a .config console log report ci2-android-5-4-kasan
2020/01/31 14:07 https://android.googlesource.com/kernel/common android-5.4 383f53ee186a 5ed23f9a .config console log report ci2-android-5-4-kasan
2020/01/31 05:05 https://android.googlesource.com/kernel/common android-5.4 383f53ee186a 5ed23f9a .config console log report ci2-android-5-4-kasan
2020/01/30 17:21 https://android.googlesource.com/kernel/common android-5.4 cac5f7901828 5ed23f9a .config console log report ci2-android-5-4-kasan
2020/01/30 16:09 https://android.googlesource.com/kernel/common android-5.4 cac5f7901828 5ed23f9a .config console log report ci2-android-5-4-kasan
2020/01/30 09:23 https://android.googlesource.com/kernel/common android-5.4 cac5f7901828 5ed23f9a .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.