syzbot


general protection fault in fuse_file_put

Status: upstream: reported C repro on 2023/07/02 13:38
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+fe729a5c30ac8c5d095f@syzkaller.appspotmail.com
First crash: 508d, last: 29d
Cause bisection: introduced by (bisect log) :
commit 9ea87136d184cb4747e6fef7f9cac152687c566f
Author: Paul Lawrence <paullawrence@google.com>
Date: Wed Jun 14 18:55:53 2023 +0000

  ANDROID: fuse-bpf: Move FUSE_RELEASE to correct place

Crash: general protection fault in fuse_file_put (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/02 android14-6.1 (ToT) b15c3a3df0a8 C [report] general protection fault in fuse_file_put
2023/09/02 lts (merge base) b1644a0031cf C Didn't crash
2023/09/02 upstream (ToT) 0468be89b3fa C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in fuse_file_put C 12 2d07h 465d 0/2 upstream: reported C repro on 2023/08/14 01:55
android-5-15 general protection fault in fuse_file_put origin:downstream C error 1 33d 435d 0/2 upstream: reported C repro on 2023/09/13 14:58
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/11/07 08:30 6m retest repro android14-6.1 error
2024/10/15 00:25 0m retest repro android14-6.1 error
2024/08/17 12:08 6m retest repro android14-6.1 report log
2024/07/28 22:17 8m retest repro android14-6.1 report log
2024/07/14 17:47 5m retest repro android14-6.1 report log
2024/06/08 11:26 6m retest repro android14-6.1 report log
2024/05/19 17:26 5m retest repro android14-6.1 report log
2024/05/05 17:16 5m retest repro android14-6.1 report log
2024/02/29 04:05 12m retest repro android14-6.1 report log
2023/12/08 11:41 5m retest repro android14-6.1 report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/10/23 03:04 2h36m bisect fix android14-6.1 OK (0) job log log
2024/09/20 14:53 1h09m bisect fix android14-6.1 OK (0) job log log
2024/03/30 09:30 1h42m bisect fix android14-6.1 OK (0) job log log
2024/02/15 03:09 46m bisect fix android14-6.1 OK (0) job log log
2024/01/07 12:08 47m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
RBP: 00007f14ebb5f3f0 R08: 00007f14eba69fa6 R09: 0000000000003331
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f14ebb2c27c
R13: 00007f14eba6a210 R14: 0000000000000002 R15: 0030656c69662f2e
 </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: 301 Comm: syz-executor380 Not tainted 6.1.75-syzkaller-00037-gdcb09569bbff #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:989 [inline]
RIP: 0010:fuse_file_put+0x11b/0x2580 fs/fuse/file.c:119
Code: f0 41 0f c1 5e 28 bf 01 00 00 00 89 de e8 4d f4 5e ff 83 fb 01 0f 85 e4 00 00 00 4c 89 e9 4d 8d 6c 24 28 4c 89 e8 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 ef e8 47 d1 a5 ff 4c 8d bc 24 c0 00 00 00
RSP: 0018:ffffc90000eb6e80 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff8881097a1440 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000eb7220 R08: ffffffff82166d83 R09: ffffed1020173506
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000028 R14: ffff888100b9a800 R15: ffff888100b9a828
FS:  00007f14eba6a6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f14ebb21a98 CR3: 000000012271a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 fuse_sync_release+0x81/0xb0 fs/fuse/file.c:400
 fuse_create_open+0x1d3f/0x37b0 fs/fuse/dir.c:825
 fuse_atomic_open+0x22e/0x3a0 fs/fuse/dir.c:887
 atomic_open fs/namei.c:3352 [inline]
 lookup_open fs/namei.c:3460 [inline]
 open_last_lookups fs/namei.c:3557 [inline]
 path_openat+0xf52/0x2d60 fs/namei.c:3787
 do_filp_open+0x230/0x480 fs/namei.c:3817
 do_sys_openat2+0x13f/0x850 fs/open.c:1341
 do_sys_open fs/open.c:1357 [inline]
 __do_sys_open fs/open.c:1365 [inline]
 __se_sys_open fs/open.c:1361 [inline]
 __x64_sys_open+0x221/0x270 fs/open.c:1361
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f14ebace1c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 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:00007f14eba6a208 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f14ebb5f3f8 RCX: 00007f14ebace1c9
RDX: 0000000000000000 RSI: 0000000004008040 RDI: 0000000020000200
RBP: 00007f14ebb5f3f0 R08: 00007f14eba69fa6 R09: 0000000000003331
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f14ebb2c27c
R13: 00007f14eba6a210 R14: 0000000000000002 R15: 0030656c69662f2e
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:989 [inline]
RIP: 0010:fuse_file_put+0x11b/0x2580 fs/fuse/file.c:119
Code: f0 41 0f c1 5e 28 bf 01 00 00 00 89 de e8 4d f4 5e ff 83 fb 01 0f 85 e4 00 00 00 4c 89 e9 4d 8d 6c 24 28 4c 89 e8 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 ef e8 47 d1 a5 ff 4c 8d bc 24 c0 00 00 00
RSP: 0018:ffffc90000eb6e80 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff8881097a1440 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000eb7220 R08: ffffffff82166d83 R09: ffffed1020173506
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000028 R14: ffff888100b9a800 R15: ffff888100b9a828
FS:  00007f14eba6a6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055827cc89038 CR3: 000000012271a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f0 41 0f c1 5e 28    	lock xadd %ebx,0x28(%r14)
   6:	bf 01 00 00 00       	mov    $0x1,%edi
   b:	89 de                	mov    %ebx,%esi
   d:	e8 4d f4 5e ff       	call   0xff5ef45f
  12:	83 fb 01             	cmp    $0x1,%ebx
  15:	0f 85 e4 00 00 00    	jne    0xff
  1b:	4c 89 e9             	mov    %r13,%rcx
  1e:	4d 8d 6c 24 28       	lea    0x28(%r12),%r13
  23:	4c 89 e8             	mov    %r13,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 ef             	mov    %r13,%rdi
  33:	e8 47 d1 a5 ff       	call   0xffa5d17f
  38:	4c 8d bc 24 c0 00 00 	lea    0xc0(%rsp),%r15
  3f:	00

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/21 15:23 android14-6.1 dcb09569bbff af24b050 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
2023/08/19 08:58 android14-6.1 c2611a04b92f d216d8a0 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
2023/07/02 13:34 android14-6.1 ed2a228522b9 bfc47836 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
2024/04/21 14:57 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
2023/11/24 11:06 android14-6.1 95307ec5c864 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
2023/10/16 06:41 android14-6.1 acb072863888 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
2023/09/23 19:22 android14-6.1 060ebb378d1c 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
2023/07/02 13:13 android14-6.1 ed2a228522b9 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in fuse_file_put
* Struck through repros no longer work on HEAD.