syzbot
general protection fault in fuse_file_put
Status:
upstream: reported C repro on 2023/08/14 01:55
Reported-by: syzbot+b77a26994d98fd499901@syzkaller.appspotmail.com
First crash: 1076d, last: 3d01h
▶
▼
Last patch testing requests (10)
▶
▼
Fix bisection attempts (10)
Sample crash report:
RSP: 002b:00007f77b45af028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f77b49f7090 RCX: 00007f77b476ee99
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000200000000080
RBP: 00007f77b45af090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f77b49f7128 R14: 00007f77b49f7090 R15: 00007ffcff5b9368
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: 413 Comm: syz.2.18 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:933 [inline]
RIP: 0010:fuse_file_put+0x141/0x1700 fs/fuse/file.c:125
Code: c1 6b 28 bf 01 00 00 00 44 89 ee e8 39 56 75 ff 41 83 fd 01 0f 85 48 01 00 00 48 8b 44 24 28 4c 8d 68 28 4c 89 e8 48 c1 e8 03 <42> 80 3c 38 00 4c 89 f9 74 12 4c 89 ef e8 7d c7 af ff 48 b9 00 00
RSP: 0018:ffffc90000ff7020 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888110ef5600 RCX: 0000000000000000
RDX: ffff888110c3cf00 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000ff7380 R08: ffff888110ef562b R09: 1ffff110221deac5
R10: dffffc0000000000 R11: ffffed10221deac6 R12: ffff888110ef5628
R13: 0000000000000028 R14: fffff520001fee10 R15: dffffc0000000000
FS: 00007f77b45af6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f77b47bc580 CR3: 000000011116b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
fuse_sync_release+0x84/0xb0 fs/fuse/file.c:405
fuse_create_open fs/fuse/dir.c:801 [inline]
fuse_atomic_open+0x129b/0x2200 fs/fuse/dir.c:862
atomic_open fs/namei.c:3122 [inline]
lookup_open fs/namei.c:3227 [inline]
open_last_lookups fs/namei.c:3325 [inline]
path_openat+0x12ca/0x3040 fs/namei.c:3514
do_filp_open+0x1df/0x400 fs/namei.c:3544
do_sys_openat2+0x19f/0x750 fs/open.c:1219
do_sys_open fs/open.c:1235 [inline]
__do_sys_creat fs/open.c:1311 [inline]
__se_sys_creat fs/open.c:1305 [inline]
__x64_sys_creat+0x8e/0xb0 fs/open.c:1305
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f77b476ee99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f77b45af028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f77b49f7090 RCX: 00007f77b476ee99
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000200000000080
RBP: 00007f77b45af090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f77b49f7128 R14: 00007f77b49f7090 R15: 00007ffcff5b9368
Modules linked in:
---[ end trace da8a70f68569a5f6 ]---
RIP: 0010:get_fuse_mount fs/fuse/fuse_i.h:933 [inline]
RIP: 0010:fuse_file_put+0x141/0x1700 fs/fuse/file.c:125
Code: c1 6b 28 bf 01 00 00 00 44 89 ee e8 39 56 75 ff 41 83 fd 01 0f 85 48 01 00 00 48 8b 44 24 28 4c 8d 68 28 4c 89 e8 48 c1 e8 03 <42> 80 3c 38 00 4c 89 f9 74 12 4c 89 ef e8 7d c7 af ff 48 b9 00 00
RSP: 0018:ffffc90000ff7020 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888110ef5600 RCX: 0000000000000000
RDX: ffff888110c3cf00 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000ff7380 R08: ffff888110ef562b R09: 1ffff110221deac5
R10: dffffc0000000000 R11: ffffed10221deac6 R12: ffff888110ef5628
R13: 0000000000000028 R14: fffff520001fee10 R15: dffffc0000000000
FS: 00007f77b45af6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f77b45aeff8 CR3: 000000011116b000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: c1 6b 28 bf shrl $0xbf,0x28(%rbx)
4: 01 00 add %eax,(%rax)
6: 00 00 add %al,(%rax)
8: 44 89 ee mov %r13d,%esi
b: e8 39 56 75 ff call 0xff755649
10: 41 83 fd 01 cmp $0x1,%r13d
14: 0f 85 48 01 00 00 jne 0x162
1a: 48 8b 44 24 28 mov 0x28(%rsp),%rax
1f: 4c 8d 68 28 lea 0x28(%rax),%r13
23: 4c 89 e8 mov %r13,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 4c 89 f9 mov %r15,%rcx
32: 74 12 je 0x46
34: 4c 89 ef mov %r13,%rdi
37: e8 7d c7 af ff call 0xffafc7b9
3c: 48 rex.W
3d: b9 .byte 0xb9
* Struck through repros no longer work on HEAD.