syzbot


general protection fault in fuse_file_put

Status: upstream: reported C repro on 2023/09/13 14:58
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+06653aa43e21cf262ef9@syzkaller.appspotmail.com
First crash: 616d, last: 9d23h
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/13 android13-5.15-lts (ToT) ea586874d2f9 C [report] general protection fault in fuse_file_put
2023/09/13 lts (merge base) aff03380bda4 C Didn't crash
2023/09/13 upstream (ToT) 3669558bdf35 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 general protection fault in fuse_file_put origin:downstream C done 8 4d08h 689d 0/2 upstream: reported C repro on 2023/07/02 13:38
android-5-10 general protection fault in fuse_file_put C 14 20d 647d 0/2 upstream: reported C repro on 2023/08/14 01:55
Last patch testing requests (5)
Created Duration User Patch Repo Result
2025/05/12 06:48 10m retest repro android13-5.15-lts report log
2025/03/10 14:10 1h53m retest repro android13-5.15-lts report log
2024/12/30 11:37 5m retest repro android13-5.15-lts report log
2024/10/19 05:13 17m retest repro android13-5.15-lts report log
2024/08/08 23:13 4m retest repro android13-5.15-lts report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2024/05/30 17:59 6m bisect fix android13-5.15-lts error job log
2024/04/27 09:48 1h10m bisect fix android13-5.15-lts OK (0) job log log
2024/03/27 08:53 1h12m bisect fix android13-5.15-lts OK (0) job log log
2024/02/26 05:26 40m bisect fix android13-5.15-lts OK (0) job log log
2024/01/18 22:36 47m bisect fix android13-5.15-lts OK (0) job log log
2023/12/18 10:24 37m bisect fix android13-5.15-lts OK (0) job log log
2023/11/18 06:23 44m bisect fix android13-5.15-lts OK (0) job log log
2023/10/18 00:49 38m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
RAX: ffffffffffffffda RBX: 00007f8d7d03a3f8 RCX: 00007f8d7cfb3819
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000180
RBP: 00007f8d7d03a3f0 R08: 00007f8d7cf4afa6 R09: 0000000000003431
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8d7d007344
R13: 00007f8d7cf4b210 R14: 0000000000000002 R15: 0000200000000180
 </TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 PID: 306 Comm: syz-executor287 Not tainted 5.15.180-syzkaller-android13-5.15.180_r00 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:965 [inline]
RIP: 0010:fuse_file_put+0x10d/0x1560 fs/fuse/file.c:121
Code: 7c 24 28 bf 01 00 00 00 44 89 fe e8 1d 73 71 ff 41 83 ff 01 0f 85 da 00 00 00 48 8b 44 24 10 4c 8d 78 28 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 e4 dc af ff 4c 8d b4 24 80 00 00
RSP: 0018:ffffc900009a6fe0 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 1ffff92000134e08 RCX: ffff88810d334f00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc900009a7340 R08: dffffc0000000000 R09: ffffed10237fa546
R10: ffffed10237fa546 R11: 1ffff110237fa545 R12: ffff88811bfd2a00
R13: dffffc0000000000 R14: ffff88811bfd2a28 R15: 0000000000000028
FS:  00007f8d7cf4b6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000a000 CR3: 000000012301a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 fuse_sync_release+0x84/0xb0 fs/fuse/file.c:401
 fuse_create_open fs/fuse/dir.c:822 [inline]
 fuse_atomic_open+0x19de/0x2140 fs/fuse/dir.c:884
 atomic_open fs/namei.c:3325 [inline]
 lookup_open fs/namei.c:3433 [inline]
 open_last_lookups fs/namei.c:3532 [inline]
 path_openat+0xe31/0x2f10 fs/namei.c:3739
 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_creat fs/open.c:1326 [inline]
 __se_sys_creat fs/open.c:1320 [inline]
 __x64_sys_creat+0x8e/0xb0 fs/open.c:1320
 x64_sys_call+0x94a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:86
 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:0x7f8d7cfb3819
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1b 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:00007f8d7cf4b208 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f8d7d03a3f8 RCX: 00007f8d7cfb3819
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000180
RBP: 00007f8d7d03a3f0 R08: 00007f8d7cf4afa6 R09: 0000000000003431
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8d7d007344
R13: 00007f8d7cf4b210 R14: 0000000000000002 R15: 0000200000000180
 </TASK>
Modules linked in:
---[ end trace a8c0bc1d2f7f24c8 ]---
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:965 [inline]
RIP: 0010:fuse_file_put+0x10d/0x1560 fs/fuse/file.c:121
Code: 7c 24 28 bf 01 00 00 00 44 89 fe e8 1d 73 71 ff 41 83 ff 01 0f 85 da 00 00 00 48 8b 44 24 10 4c 8d 78 28 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 e4 dc af ff 4c 8d b4 24 80 00 00
RSP: 0018:ffffc900009a6fe0 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 1ffff92000134e08 RCX: ffff88810d334f00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc900009a7340 R08: dffffc0000000000 R09: ffffed10237fa546
R10: ffffed10237fa546 R11: 1ffff110237fa545 R12: ffff88811bfd2a00
R13: dffffc0000000000 R14: ffff88811bfd2a28 R15: 0000000000000028
FS:  00007f8d7cf4b6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8d7d002638 CR3: 000000012301a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	7c 24                	jl     0x26
   2:	28 bf 01 00 00 00    	sub    %bh,0x1(%rdi)
   8:	44 89 fe             	mov    %r15d,%esi
   b:	e8 1d 73 71 ff       	call   0xff71732d
  10:	41 83 ff 01          	cmp    $0x1,%r15d
  14:	0f 85 da 00 00 00    	jne    0xf4
  1a:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  1f:	4c 8d 78 28          	lea    0x28(%rax),%r15
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ff             	mov    %r15,%rdi
  34:	e8 e4 dc af ff       	call   0xffafdd1d
  39:	4c                   	rex.WR
  3a:	8d                   	.byte 0x8d
  3b:	b4 24                	mov    $0x24,%ah
  3d:	80 00 00             	addb   $0x0,(%rax)

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/27 22:44 android13-5.15-lts 8034ec1338e8 c6b4fb39 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_file_put
2023/09/13 14:57 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 fuse_file_put
2025/04/27 22:01 android13-5.15-lts 8034ec1338e8 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in fuse_file_put
* Struck through repros no longer work on HEAD.