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: 501d, last: 14d
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 5 35d 514d 0/2 upstream: reported C repro on 2023/07/17 00:03
android-5-10 general protection fault in fuse_atomic_open C error 47 1d23h 514d 0/2 upstream: reported C repro on 2023/07/16 23:36
android-5-15 general protection fault in fuse_atomic_open 1 619d 619d 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
2024/11/27 12:29 5m retest repro android13-5.15-lts report log
2024/11/11 07:05 15m retest repro android13-5.15-lts report log
2024/10/27 19:55 12m retest repro android13-5.15-lts report log
2024/10/07 11:31 5m retest repro android13-5.15-lts report log
2024/09/18 10:37 6m retest repro android13-5.15-lts report log
2024/09/02 02:14 8m retest repro android13-5.15-lts report log
2024/08/17 21:45 12m retest repro android13-5.15-lts report log
2024/07/24 08:39 10m retest repro android13-5.15-lts report log
2024/07/10 07:30 5m retest repro android13-5.15-lts report log
2024/06/09 17:39 5m retest repro android13-5.15-lts report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/05/01 04:37 2h00m bisect fix android13-5.15-lts OK (0) job log log
2024/01/15 00:48 34m bisect fix android13-5.15-lts OK (0) job log log
2023/09/24 04:32 45m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 1 PID: 298 Comm: syz-executor305 Not tainted 5.15.152-syzkaller-00143-g70e1a731d986 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 9d 94 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 a3 ce a8 ff 48 83 3b 00 0f 84 a6 00
RSP: 0018:ffffc900009e7280 EFLAGS: 00010203
RAX: 0000000000000008 RBX: 0000000000000044 RCX: dffffc0000000000
RDX: ffff888121482780 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc900009e78f0 R08: ffffffff8209adc2 R09: fffff5200013cd99
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881191d16a8
R13: ffff88811796e000 R14: 1ffff9200013ce6c R15: 0000000000000014
FS:  00007f4f7b48c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4f7b55fa50 CR3: 000000011ccae000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 atomic_open fs/namei.c:3325 [inline]
 lookup_open fs/namei.c:3433 [inline]
 open_last_lookups fs/namei.c:3532 [inline]
 path_openat+0xfde/0x2f40 fs/namei.c:3739
 do_filp_open+0x21c/0x460 fs/namei.c:3769
 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:0x7f4f7b4ee7d9
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:00007f4f7b48c218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f4f7b57e3d8 RCX: 00007f4f7b4ee7d9
RDX: 0000000000000040 RSI: 000000002000c380 RDI: 00000000ffffff9c
RBP: 00007f4f7b57e3d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4f7b54b104
R13: 000000000000006e R14: 00007f4f7b549100 R15: 0030656c69662f2e
 </TASK>
Modules linked in:
---[ end trace 4cb19a1c89f8896c ]---
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 9d 94 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 a3 ce a8 ff 48 83 3b 00 0f 84 a6 00
RSP: 0018:ffffc900009e7280 EFLAGS: 00010203
RAX: 0000000000000008 RBX: 0000000000000044 RCX: dffffc0000000000
RDX: ffff888121482780 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc900009e78f0 R08: ffffffff8209adc2 R09: fffff5200013cd99
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881191d16a8
R13: ffff88811796e000 R14: 1ffff9200013ce6c R15: 0000000000000014
FS:  00007f4f7b48c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020005000 CR3: 000000011ccae000 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 9d 94 66 ff       	call   0xff6694ab
   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 a3 ce a8 ff       	call   0xffa8cedb
  38:	48 83 3b 00          	cmpq   $0x0,(%rbx)
  3c:	0f                   	.byte 0xf
  3d:	84                   	.byte 0x84
  3e:	a6                   	cmpsb  %es:(%rdi),%ds:(%rsi)

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/03 21:14 android13-5.15-lts 70e1a731d986 1786a2a8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
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
2024/09/20 18:44 android13-5.15-lts b92c0d35d015 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2024/08/19 01:23 android13-5.15-lts da92e689a0c3 dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_atomic_open
2024/08/03 20:29 android13-5.15-lts 70e1a731d986 1786a2a8 .config console log report info [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.