syzbot


general protection fault in fuse_atomic_open (2)

Status: upstream: reported C repro on 2023/07/29 15:55
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+d5a67f398c870048ac6f@syzkaller.appspotmail.com
First crash: 264d, last: 18d
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: 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/29 android13-5.15-lts (ToT) 748fd0d9ca0f C [report] general protection fault in fuse_atomic_open
2023/07/29 lts (merge base) 26a0ba5d1654 C Didn't crash
2023/07/29 upstream (ToT) ffabf7c73176 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 general protection fault in fuse_atomic_open origin:downstream C done 4 18d 276d 0/2 upstream: reported C repro on 2023/07/17 00:03
android-5-10 general protection fault in fuse_atomic_open C error 15 19h43m 276d 0/2 upstream: reported C repro on 2023/07/16 23:36
android-5-15 general protection fault in fuse_atomic_open 1 382d 382d 0/2 auto-obsoleted due to no activity on 2023/07/01 15:58
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/03/31 17:27 7m retest repro android13-5.15-lts report log
2024/03/31 17:27 5m retest repro android13-5.15-lts report log
2024/02/23 11:41 24m retest repro android13-5.15-lts report log
2023/12/15 10:55 11m retest repro android13-5.15-lts report log
2023/12/15 10:55 20m retest repro android13-5.15-lts report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/01/15 00:48 34m bisect fix android13-5.15-lts job log (0) log
2023/09/24 04:32 45m bisect fix android13-5.15-lts job log (0) 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: 295 Comm: syz-executor277 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:d_really_is_positive include/linux/dcache.h:503 [inline]
RIP: 0010:fuse_atomic_open+0x26f/0x3a90 fs/fuse/dir.c:871
Code: e0 40 4c 8b 64 24 48 75 07 e8 8d d0 66 ff eb 37 48 8b 44 24 70 48 8d 58 30 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 03 e1 a8 ff 48 83 3b 00 0f 84 a6 00
RSP: 0018:ffffc90000967280 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: dffffc0000000000
RDX: ffff88811e872780 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc900009678f0 R08: ffffffff820950e2 R09: fffff5200012cd99
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810f6be428
R13: ffff88811e85c800 R14: 1ffff9200012ce6c R15: 0000000000000008
FS:  00007fed06fcb6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fed06fcbd58 CR3: 000000011e159000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 atomic_open fs/namei.c:3331 [inline]
 lookup_open fs/namei.c:3439 [inline]
 open_last_lookups fs/namei.c:3538 [inline]
 path_openat+0xfde/0x2f40 fs/namei.c:3745
 do_filp_open+0x21c/0x460 fs/namei.c:3775
 do_sys_openat2+0x13f/0x830 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+0x243/0x290 fs/open.c:1261
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fed0702a479
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:00007fed06fcb218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fed070b73f8 RCX: 00007fed0702a479
RDX: 0000000000080041 RSI: 00000000200001c0 RDI: 00000000ffffff9c
RBP: 00007fed070b73f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fed07084024
R13: 000000000000006e R14: 0030656c69662f30 R15: 2f30656c69662f2e
 </TASK>
Modules linked in:
---[ end trace e3713c7dcd545492 ]---
RIP: 0010:d_really_is_positive include/linux/dcache.h:503 [inline]
RIP: 0010:fuse_atomic_open+0x26f/0x3a90 fs/fuse/dir.c:871
Code: e0 40 4c 8b 64 24 48 75 07 e8 8d d0 66 ff eb 37 48 8b 44 24 70 48 8d 58 30 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 03 e1 a8 ff 48 83 3b 00 0f 84 a6 00
RSP: 0018:ffffc90000967280 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: dffffc0000000000
RDX: ffff88811e872780 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc900009678f0 R08: ffffffff820950e2 R09: fffff5200012cd99
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810f6be428
R13: ffff88811e85c800 R14: 1ffff9200012ce6c R15: 0000000000000008
FS:  00007fed06fcb6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fed06fcbd58 CR3: 000000011e159000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e0 40                	loopne 0x42
   2:	4c 8b 64 24 48       	mov    0x48(%rsp),%r12
   7:	75 07                	jne    0x10
   9:	e8 8d d0 66 ff       	call   0xff66d09b
   e:	eb 37                	jmp    0x47
  10:	48 8b 44 24 70       	mov    0x70(%rsp),%rax
  15:	48 8d 58 30          	lea    0x30(%rax),%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 03 e1 a8 ff       	call   0xffa8e13b
  38:	48 83 3b 00          	cmpq   $0x0,(%rbx)
  3c:	0f                   	.byte 0xf
  3d:	84                   	.byte 0x84
  3e:	a6                   	cmpsb  %es:(%rdi),%ds:(%rsi)

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/17 16:11 android13-5.15-lts 993bed180178 d615901c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2023/11/10 02:48 android13-5.15-lts 61cfd264993d 56230772 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2023/07/29 15:54 android13-5.15-lts 748fd0d9ca0f 92476829 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2023/12/01 10:54 android13-5.15-lts eb99a642b7e6 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2023/11/19 14:49 android13-5.15-lts 61cfd264993d cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2023/11/05 18:06 android13-5.15-lts 61cfd264993d 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2023/10/14 04:45 android13-5.15-lts 754f8cc9b7de f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
* Struck through repros no longer work on HEAD.