syzbot


general protection fault in fuse_atomic_open

Status: upstream: reported C repro on 2023/07/17 00:03
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+8e2c502cde30a2ac8d7f@syzkaller.appspotmail.com
First crash: 671d, last: 5d16h
Cause bisection: introduced by (bisect log) :
commit 57f3ff9648991998d008ecf32f2f9e78a08bfb8b
Author: Daniel Rosenberg <drosen@google.com>
Date: Thu Dec 2 21:50:02 2021 +0000

  ANDROID: fuse-bpf v1.1

Crash: BUG: unable to handle kernel NULL pointer dereference in fuse_atomic_open (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/07/17 android14-6.1 (ToT) f6707f352b54 C [report] general protection fault in fuse_atomic_open
2023/07/17 lts (merge base) b1644a0031cf C Didn't crash
2023/07/17 upstream (ToT) fdf0eaf11452 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in fuse_atomic_open C error 63 1d08h 671d 0/2 upstream: reported C repro on 2023/07/16 23:36
android-5-15 general protection fault in fuse_atomic_open (2) origin:downstream C done 23 10d 658d 0/2 upstream: reported C repro on 2023/07/29 15:55
android-5-15 general protection fault in fuse_atomic_open 1 776d 776d 0/2 auto-obsoleted due to no activity on 2023/07/01 15:58
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/05/04 04:50 6m retest repro android14-6.1 report log
2025/04/19 20:08 8m retest repro android14-6.1 report log
2025/03/27 09:51 6m retest repro android14-6.1 report log
2025/03/10 23:26 8m retest repro android14-6.1 report log
2025/01/15 15:48 7m retest repro android14-6.1 report log
2024/12/30 20:20 6m retest repro android14-6.1 report log
2024/12/13 18:01 6m retest repro android14-6.1 report log
2024/11/06 12:29 7m retest repro android14-6.1 report log
2024/10/18 23:37 8m retest repro android14-6.1 report log
2024/08/22 07:54 5m retest repro android14-6.1 report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2025/02/15 20:16 49m bisect fix android14-6.1 OK (0) job log log
2024/10/03 20:51 3h02m bisect fix android14-6.1 OK (0) job log log
2024/07/25 03:34 1h08m bisect fix android14-6.1 OK (0) job log log
2024/03/15 18:49 1h45m bisect fix android14-6.1 OK (0) job log log
2024/02/11 21:56 1h06m bisect fix android14-6.1 OK (0) job log log
2023/12/23 20:59 46m bisect fix android14-6.1 OK (0) job log log
2023/10/25 03:10 1h01m bisect fix android14-6.1 OK (0) job log log
2023/09/22 00:58 38m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 0 PID: 293 Comm: syz-executor382 Not tainted 6.1.134-syzkaller-00012-g646380b087a5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
RIP: 0010:d_really_is_positive include/linux/dcache.h:493 [inline]
RIP: 0010:fuse_atomic_open+0x174/0x3c0 fs/fuse/dir.c:901
Code: 8b 6d c4 44 89 ee 83 e6 40 31 ff e8 26 91 68 ff 44 89 e8 83 e0 40 75 07 e8 f9 8c 68 ff eb 26 4d 8d 6e 30 4c 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ef e8 1d df ac ff 49 83 7d 00 00 74 21
RSP: 0018:ffffc90000e97938 EFLAGS: 00010202
RAX: 0000000000000007 RBX: ffff88810e35a000 RCX: 0000000000000000
RDX: ffff88810f2a3cc0 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc90000e97990 R08: ffff88810f2a3cc0 R09: 0000000000000002
R10: 00000000fffffffe R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000038 R14: 0000000000000008 R15: ffff888111d09100
FS:  00007ff82581b6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff82581bd58 CR3: 0000000124cc1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 atomic_open fs/namei.c:3344 [inline]
 lookup_open fs/namei.c:3452 [inline]
 open_last_lookups fs/namei.c:3549 [inline]
 path_openat+0xe44/0x2f50 fs/namei.c:3779
 do_filp_open+0x1c1/0x3c0 fs/namei.c:3809
 do_sys_openat2+0x185/0x7e0 fs/open.c:1341
 do_sys_open fs/open.c:1357 [inline]
 __do_sys_creat fs/open.c:1435 [inline]
 __se_sys_creat fs/open.c:1429 [inline]
 __x64_sys_creat+0x8e/0xb0 fs/open.c:1429
 x64_sys_call+0x116/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:86
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7ff82587e5a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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:00007ff82581b158 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 0030656c69662f30 RCX: 00007ff82587e5a9
RDX: 00007ff82587e5a9 RSI: 0000000000000000 RDI: 0000200000000080
RBP: 00007ff8259073f0 R08: 00007ff82581b6c0 R09: 00007ff8259073f8
R10: 00007ff8259073f8 R11: 0000000000000246 R12: 00007ff8259073fc
R13: 000000000000006e R14: 00007fff1df7bba0 R15: 00007fff1df7bc88
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:d_really_is_positive include/linux/dcache.h:493 [inline]
RIP: 0010:fuse_atomic_open+0x174/0x3c0 fs/fuse/dir.c:901
Code: 8b 6d c4 44 89 ee 83 e6 40 31 ff e8 26 91 68 ff 44 89 e8 83 e0 40 75 07 e8 f9 8c 68 ff eb 26 4d 8d 6e 30 4c 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ef e8 1d df ac ff 49 83 7d 00 00 74 21
RSP: 0018:ffffc90000e97938 EFLAGS: 00010202
RAX: 0000000000000007 RBX: ffff88810e35a000 RCX: 0000000000000000
RDX: ffff88810f2a3cc0 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc90000e97990 R08: ffff88810f2a3cc0 R09: 0000000000000002
R10: 00000000fffffffe R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000038 R14: 0000000000000008 R15: ffff888111d09100
FS:  00007ff82581b6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff82585d580 CR3: 0000000124cc1000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 6d c4             	mov    -0x3c(%rbp),%ebp
   3:	44 89 ee             	mov    %r13d,%esi
   6:	83 e6 40             	and    $0x40,%esi
   9:	31 ff                	xor    %edi,%edi
   b:	e8 26 91 68 ff       	call   0xff689136
  10:	44 89 e8             	mov    %r13d,%eax
  13:	83 e0 40             	and    $0x40,%eax
  16:	75 07                	jne    0x1f
  18:	e8 f9 8c 68 ff       	call   0xff688d16
  1d:	eb 26                	jmp    0x45
  1f:	4d 8d 6e 30          	lea    0x30(%r14),%r13
  23:	4c 89 e8             	mov    %r13,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 1d df ac ff       	call   0xffacdf56
  39:	49 83 7d 00 00       	cmpq   $0x0,0x0(%r13)
  3e:	74 21                	je     0x61

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/12 09:14 android14-6.1 646380b087a5 77908e5f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/03 04:10 android14-6.1 3e6e324f5b47 c799dfdd .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2024/03/17 15:10 android14-6.1 ef39f76e4d24 d615901c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2023/11/09 13:34 android14-6.1 9d6ac9dc6ac8 4862372a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2023/07/17 00:01 android14-6.1 f6707f352b54 35d9ecc5 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/05 10:19 android14-6.1 ca24c52e3c25 c53ea9c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/05 10:18 android14-6.1 ca24c52e3c25 c53ea9c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/03 23:34 android14-6.1 ca24c52e3c25 d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/03 23:34 android14-6.1 ca24c52e3c25 d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/03 23:34 android14-6.1 ca24c52e3c25 d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/03 23:34 android14-6.1 ca24c52e3c25 d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/03 03:18 android14-6.1 3e6e324f5b47 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2025/04/03 03:18 android14-6.1 3e6e324f5b47 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2024/04/20 07:44 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
2024/03/17 14:53 android14-6.1 ef39f76e4d24 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_atomic_open
* Struck through repros no longer work on HEAD.