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: 825d, last: 11d
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 Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in path_openat reiserfs 8 C error inconclusive 52 597d 995d 0/29 auto-obsoleted due to no activity on 2024/04/12 10:28
android-5-10 general protection fault in path_openat 2 C done 35 4d16h 825d 0/2 upstream: reported C repro on 2023/05/21 01:33
linux-4.19 general protection fault in path_openat 2 C done 13 2026d 2032d 1/1 fixed on 2020/03/06 08:34
upstream general protection fault in path_openat ext4 2 C done 7 2030d 2030d 15/29 fixed on 2020/02/18 14:31
linux-4.14 general protection fault in path_openat 2 C done 40 2025d 2032d 1/1 fixed on 2020/03/06 21:15
android-6-1 general protection fault in path_openat origin:downstream 2 C done error 11 12h22m 825d 0/2 upstream: reported C repro on 2023/05/21 01:53
android-54 general protection fault in path_openat 2 syz 26 2025d 2031d 1/2 fixed on 2021/10/12 13:38
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/08/11 09:18 5m retest repro android13-5.15-lts report log
2025/08/11 09:18 13m retest repro android13-5.15-lts report log
2025/08/11 09:18 13m retest repro android13-5.15-lts report log
2025/08/11 09:18 13m retest repro android13-5.15-lts report log
2025/08/11 09:18 5m retest repro android13-5.15-lts report log
2025/07/03 21:58 4h12m retest repro android13-5.15-lts report log
2025/06/18 06:04 6m retest repro android13-5.15-lts report log
2025/05/30 13:31 12m retest repro android13-5.15-lts report log
2025/05/14 18:44 7m retest repro android13-5.15-lts report log
2025/05/14 18:44 37m 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 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 291 Comm: syz-executor309 Not tainted 5.15.189-syzkaller-00079-ga71626bd56a5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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 3c 25 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:ffffc90000a279c0 EFLAGS: 00010203
RAX: 0000000000000002 RBX: 0000000000000017 RCX: ffff888105980000
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff888105980000
RBP: ffffc90000a27bd0 R08: dffffc0000000000 R09: ffffed1024136a94
R10: ffffed1024136a94 R11: 1ffff11024136a93 R12: 0000000000000002
R13: ffffc90000a27c20 R14: ffff8881239df518 R15: dffffc0000000000
FS:  00007fb6a3e196c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb6a3e19d58 CR3: 000000012465d000 CR4: 00000000003506b0
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_open fs/open.c:1258 [inline]
 __se_sys_open fs/open.c:1254 [inline]
 __x64_sys_open+0x11c/0x140 fs/open.c:1254
 x64_sys_call+0x3fc/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:3
 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:0x7fb6a3e78779
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:00007fb6a3e19218 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fb6a3f053f8 RCX: 00007fb6a3e78779
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00002000000001c0
RBP: 00007fb6a3f053f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb6a3ed203c
R13: 00002000000042c0 R14: 00002000000001c0 R15: 00007fffc1cb8298
 </TASK>
Modules linked in:
---[ end trace 7d7566fa25a57bad ]---
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 3c 25 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:ffffc90000a279c0 EFLAGS: 00010203
RAX: 0000000000000002 RBX: 0000000000000017 RCX: ffff888105980000
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff888105980000
RBP: ffffc90000a27bd0 R08: dffffc0000000000 R09: ffffed1024136a94
R10: ffffed1024136a94 R11: 1ffff11024136a93 R12: 0000000000000002
R13: ffffc90000a27c20 R14: ffff8881239df518 R15: dffffc0000000000
FS:  00007fb6a3e196c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e555fec028 CR3: 000000012465d000 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 3c 25 b7 ff       	call   0xffb7255b
  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 (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/22 22:43 android13-5.15-lts a71626bd56a5 8e9d1dc1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
2025/07/22 22:08 android13-5.15-lts a71626bd56a5 8e9d1dc1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in path_openat
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.