syzbot


general protection fault in fuse_atomic_open

Status: auto-obsoleted due to no activity on 2023/07/01 15:58
Reported-by: syzbot+c865520c0a37f44a79ac@syzkaller.appspotmail.com
First crash: 336d, last: 336d
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 2 20d 230d 0/2 upstream: reported C repro on 2023/07/17 00:03
android-5-10 general protection fault in fuse_atomic_open C error 7 33d 230d 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 6 9d09h 218d 0/2 upstream: reported C repro on 2023/07/29 15:55

Sample crash report:
loop5: detected capacity change from 0 to 2048
FAT-fs (loop5): Unrecognized mount option "" or missing value
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: 10439 Comm: syz-executor.5 Not tainted 5.15.98-syzkaller-00348-g7364b7abbafb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:d_really_is_positive include/linux/dcache.h:503 [inline]
RIP: 0010:fuse_atomic_open+0x27b/0x1880 fs/fuse/dir.c:847
Code: fc ff df 4d 89 e5 eb 54 48 89 9c 24 80 00 00 00 4c 89 7c 24 18 49 8d 5f 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 a7 0b ab ff 48 83 3b 00 4d 89 e5 0f
RSP: 0018:ffffc90000147500 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: dffffc0000000000
RDX: ffff88810f792780 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc90000147930 R08: ffffffff8205869f R09: fffff52000028e61
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88812273e300
R13: 0000000000000040 R14: 1ffff92000028eb4 R15: 0000000000000008
FS:  00007f42eceb0700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f42e4b8f718 CR3: 0000000171380000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 atomic_open fs/namei.c:3196 [inline]
 lookup_open fs/namei.c:3305 [inline]
 open_last_lookups fs/namei.c:3404 [inline]
 path_openat+0xfa4/0x2ef0 fs/namei.c:3612
 do_filp_open+0x21c/0x460 fs/namei.c:3642
 do_sys_openat2+0x13b/0x500 fs/open.c:1234
 do_sys_open fs/open.c:1250 [inline]
 __do_sys_creat fs/open.c:1324 [inline]
 __se_sys_creat fs/open.c:1318 [inline]
 __x64_sys_creat+0x11f/0x160 fs/open.c:1318
 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:0x7f42ee17f0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f42eceb0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f42ee29f120 RCX: 00007f42ee17f0f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200020c0
RBP: 00007f42ee1dab39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc8d16b18f R14: 00007f42eceb0300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 8bfa017d27ec1983 ]---
RIP: 0010:d_really_is_positive include/linux/dcache.h:503 [inline]
RIP: 0010:fuse_atomic_open+0x27b/0x1880 fs/fuse/dir.c:847
Code: fc ff df 4d 89 e5 eb 54 48 89 9c 24 80 00 00 00 4c 89 7c 24 18 49 8d 5f 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 a7 0b ab ff 48 83 3b 00 4d 89 e5 0f
RSP: 0018:ffffc90000147500 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: dffffc0000000000
RDX: ffff88810f792780 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc90000147930 R08: ffffffff8205869f R09: fffff52000028e61
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88812273e300
R13: 0000000000000040 R14: 1ffff92000028eb4 R15: 0000000000000008
FS:  00007f42eceb0700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f42e4b8f718 CR3: 0000000171380000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	df 4d 89             	fisttps -0x77(%rbp)
   3:	e5 eb                	in     $0xeb,%eax
   5:	54                   	push   %rsp
   6:	48 89 9c 24 80 00 00 	mov    %rbx,0x80(%rsp)
   d:	00
   e:	4c 89 7c 24 18       	mov    %r15,0x18(%rsp)
  13:	49 8d 5f 30          	lea    0x30(%r15),%rbx
  17:	48 89 d8             	mov    %rbx,%rax
  1a:	48 c1 e8 03          	shr    $0x3,%rax
  1e:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  25:	fc ff df
* 28:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2c:	74 08                	je     0x36
  2e:	48 89 df             	mov    %rbx,%rdi
  31:	e8 a7 0b ab ff       	callq  0xffab0bdd
  36:	48 83 3b 00          	cmpq   $0x0,(%rbx)
  3a:	4d 89 e5             	mov    %r12,%r13
  3d:	0f                   	.byte 0xf

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/02 15:52 android13-5.15-lts 7364b7abbafb f325deb0 .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.