syzbot


general protection fault in path_openat

Status: upstream: reported C repro on 2023/05/21 01:53
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+ea487d1ec1a25689e4d2@syzkaller.appspotmail.com
First crash: 723d, last: 13d
Cause bisection: introduced by (bisect log) :
commit f5f4199c102aa676998b42abff60d071385c1c0c
Author: Daniel Rosenberg <drosen@google.com>
Date: Thu Dec 2 21:50:02 2021 +0000

  ANDROID: fuse-bpf v1.1

Crash: general protection fault in path_openat (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/24 android13-5.15-lts (ToT) ea586874d2f9 C [report] general protection fault in path_openat
2023/09/24 lts (merge base) aff03380bda4 C Didn't crash
2023/09/24 upstream (ToT) 3aba70aed91f C Didn't crash
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 496d 894d 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 35 9d07h 723d 0/2 upstream: reported C repro on 2023/05/21 01:33
linux-4.19 general protection fault in path_openat C done 13 1924d 1930d 1/1 fixed on 2020/03/06 08:34
upstream general protection fault in path_openat ext4 C done 7 1928d 1928d 15/28 fixed on 2020/02/18 14:31
linux-4.14 general protection fault in path_openat C done 40 1924d 1930d 1/1 fixed on 2020/03/06 21:15
android-6-1 general protection fault in path_openat origin:downstream C done error 9 44d 723d 0/2 upstream: reported C repro on 2023/05/21 01:53
android-54 general protection fault in path_openat syz 26 1923d 1930d 1/2 fixed on 2021/10/12 13:38
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/04/13 23:02 5m retest repro android13-5.15-lts report log
2025/03/30 22:18 7m retest repro android13-5.15-lts report log
2025/03/14 00:00 1h00m retest repro android13-5.15-lts report log
2025/02/27 14:06 54m retest repro android13-5.15-lts report log
2025/02/02 07:27 10m retest repro android13-5.15-lts report log
2025/01/19 02:51 6m retest repro android13-5.15-lts report log
2025/01/02 11:02 9m retest repro android13-5.15-lts report log
2024/12/19 03:43 13m retest repro android13-5.15-lts report log
2024/11/15 21:30 10m retest repro android13-5.15-lts report log
2024/10/24 07:24 6m retest repro android13-5.15-lts report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/05/21 16:58 57m bisect fix android13-5.15-lts OK (0) job log log
2024/02/09 02:18 46m bisect fix android13-5.15-lts OK (0) job log log
2023/08/13 03:01 59m bisect fix android13-5.15-lts OK (0) job log log
2023/06/20 23:25 16m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
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: 281 Comm: syz-executor428 Not tainted 5.15.180-syzkaller-00024-g88c4075c39ed #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
RIP: 0010:__d_entry_type include/linux/dcache.h:404 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:409 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:455 [inline]
RIP: 0010:atomic_open fs/namei.c:3341 [inline]
RIP: 0010:lookup_open fs/namei.c:3433 [inline]
RIP: 0010:open_last_lookups fs/namei.c:3532 [inline]
RIP: 0010:path_openat+0x11ff/0x2f10 fs/namei.c:3739
Code: 48 89 df e8 03 81 02 00 49 63 de 48 81 fb 00 f0 ff ff 0f 87 05 f8 ff ff eb 62 e8 bc 31 b7 ff 4c 8b 2c 24 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 6b 0d 00 00 44 8b 33 be 00 00 70 00 44
RSP: 0018:ffffc900009c79c0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 000000000000000a RCX: ffff88810d62bb40
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff88810d62bb40
RBP: ffffc900009c7bd0 R08: dffffc0000000000 R09: ffffed102009e33e
R10: ffffed102009e33e R11: 1ffff1102009e33d R12: 0000000000000000
R13: ffffc900009c7c20 R14: ffff8881075fa318 R15: dffffc0000000000
FS:  00007f3e9cb4c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3e9cb4cd58 CR3: 0000000125089000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769
 do_sys_openat2+0x14c/0x7b0 fs/open.c:1234
 do_sys_open fs/open.c:1250 [inline]
 __do_sys_openat fs/open.c:1266 [inline]
 __se_sys_openat fs/open.c:1261 [inline]
 __x64_sys_openat+0x136/0x160 fs/open.c:1261
 x64_sys_call+0x219/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f3e9cbab579
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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:00007f3e9cb4c218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f3e9cc38418 RCX: 00007f3e9cbab579
RDX: 0000000000000000 RSI: 0000200000000a80 RDI: 00000000ffffff9c
RBP: 00007f3e9cc38410 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 00007f3e9cc05034
R13: 0000200000008400 R14: 0000200000000a80 R15: 00007ffe8da68968
 </TASK>
Modules linked in:
---[ end trace e8cbd9ce6546631c ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:404 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:409 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:455 [inline]
RIP: 0010:atomic_open fs/namei.c:3341 [inline]
RIP: 0010:lookup_open fs/namei.c:3433 [inline]
RIP: 0010:open_last_lookups fs/namei.c:3532 [inline]
RIP: 0010:path_openat+0x11ff/0x2f10 fs/namei.c:3739
Code: 48 89 df e8 03 81 02 00 49 63 de 48 81 fb 00 f0 ff ff 0f 87 05 f8 ff ff eb 62 e8 bc 31 b7 ff 4c 8b 2c 24 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 6b 0d 00 00 44 8b 33 be 00 00 70 00 44
RSP: 0018:ffffc900009c79c0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 000000000000000a RCX: ffff88810d62bb40
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff88810d62bb40
RBP: ffffc900009c7bd0 R08: dffffc0000000000 R09: ffffed102009e33e
R10: ffffed102009e33e R11: 1ffff1102009e33d R12: 0000000000000000
R13: ffffc900009c7c20 R14: ffff8881075fa318 R15: dffffc0000000000
FS:  00007f3e9cb4c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3e9cb4cd58 CR3: 0000000125089000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 89 df             	mov    %rbx,%rdi
   3:	e8 03 81 02 00       	call   0x2810b
   8:	49 63 de             	movslq %r14d,%rbx
   b:	48 81 fb 00 f0 ff ff 	cmp    $0xfffffffffffff000,%rbx
  12:	0f 87 05 f8 ff ff    	ja     0xfffff81d
  18:	eb 62                	jmp    0x7c
  1a:	e8 bc 31 b7 ff       	call   0xffb731db
  1f:	4c 8b 2c 24          	mov    (%rsp),%r13
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 6b 0d 00 00    	jne    0xda2
  37:	44 8b 33             	mov    (%rbx),%r14d
  3a:	be 00 00 70 00       	mov    $0x700000,%esi
  3f:	44                   	rex.R

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/30 14:59 android13-5.15-lts 88c4075c39ed 85a5a23f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2025/01/05 02:46 android13-5.15-lts af461d0249a8 f3558dbf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2024/03/01 08:42 android13-5.15-lts 993bed180178 352ab904 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2023/09/24 19:26 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2023/05/21 01:52 android13-5.15-lts 19c0ed55a470 4bce1a3e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2025/04/30 14:18 android13-5.15-lts 88c4075c39ed 85a5a23f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2025/01/05 02:16 android13-5.15-lts af461d0249a8 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2024/03/13 23:40 android13-5.15-lts 993bed180178 f919f202 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2023/12/05 03:44 android13-5.15-lts 0e7c7966689d f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2023/11/25 02:18 android13-5.15-lts 61cfd264993d 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2023/11/19 18:51 android13-5.15-lts 61cfd264993d cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
* Struck through repros no longer work on HEAD.