syzbot


general protection fault in fuse_test_super
Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+74a15f02ccb51f398601@syzkaller.appspotmail.com
Fix commit: 80019f113832 fuse: always initialize sb->s_fs_info
First crash: 259d, last: 88d

Cause bisection: failed (bisect log)
Patch testing requests:
Created Duration User Patch Repo Result
2021/10/21 08:07 18m miklos@szeredi.hu git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git 80019f1138324b6f35ae728b4f25eeb08899b452 OK

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 6767 Comm: syz-executor681 Not tainted 5.15.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:get_fuse_conn_super fs/fuse/fuse_i.h:844 [inline]
RIP: 0010:fuse_test_super+0x68/0xa0 fs/fuse/inode.c:1633
Code: 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 3a 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 75 12 31 c0 48 39 2b 5b 5d 0f 94 c0 c3 e8 72 c1 0c ff
RSP: 0018:ffffc90003137cc8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff82af424d RDI: ffff88807cb4c678
RBP: ffff88801c483800 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52000626f8e R11: 0000000000000000 R12: dffffc0000000000
R13: ffffffff82af4240 R14: 0000000000000000 R15: 0000000000000002
FS:  00005555556b1300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff5d0670783 CR3: 000000006c615000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sget_fc+0x1ff/0x7c0 fs/super.c:525
 fuse_get_tree+0x201/0x3f0 fs/fuse/inode.c:1664
 vfs_get_tree+0x89/0x2f0 fs/super.c:1498
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x1320/0x1fa0 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount fs/namespace.c:3516 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3516
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7ff5d0616219
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff0210c158 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ff5d065a088 RCX: 00007ff5d0616219
RDX: 0000000020002100 RSI: 00000000200020c0 RDI: 0000000000000000
RBP: 0030656c69662f2e R08: 00000000200004c0 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000013ecd
R13: 00007fff0210c16c R14: 00007fff0210c180 R15: 00007fff0210c170
Modules linked in:
---[ end trace 56aa8bfa7ddc3d5a ]---
RIP: 0010:get_fuse_conn_super fs/fuse/fuse_i.h:844 [inline]
RIP: 0010:fuse_test_super+0x68/0xa0 fs/fuse/inode.c:1633
Code: 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 3a 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 75 12 31 c0 48 39 2b 5b 5d 0f 94 c0 c3 e8 72 c1 0c ff
RSP: 0018:ffffc90003137cc8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff82af424d RDI: ffff88807cb4c678
RBP: ffff88801c483800 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52000626f8e R11: 0000000000000000 R12: dffffc0000000000
R13: ffffffff82af4240 R14: 0000000000000000 R15: 0000000000000002
FS:  00005555556b1300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff5d0670783 CR3: 000000006c615000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 4 bytes skipped:
   0:	df 48 89             	fisttps -0x77(%rax)
   3:	fa                   	cli
   4:	48 c1 ea 03          	shr    $0x3,%rdx
   8:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   c:	75 3a                	jne    0x48
   e:	48 8b 9b 78 06 00 00 	mov    0x678(%rbx),%rbx
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 89 da             	mov    %rbx,%rdx
  22:	48 c1 ea 03          	shr    $0x3,%rdx
* 26:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2a:	75 12                	jne    0x3e
  2c:	31 c0                	xor    %eax,%eax
  2e:	48 39 2b             	cmp    %rbp,(%rbx)
  31:	5b                   	pop    %rbx
  32:	5d                   	pop    %rbp
  33:	0f 94 c0             	sete   %al
  36:	c3                   	retq
  37:	e8 72 c1 0c ff       	callq  0xff0cc1ae

Crashes (32):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/10/07 12:43 upstream 5af4055fa813 62ee0987 .config log report syz C general protection fault in fuse_test_super
ci-upstream-linux-next-kasan-gce-root 2021/09/11 04:50 linux-next aa14a3016182 5ae8508a .config log report syz C general protection fault in fuse_test_super
ci-upstream-kasan-gce-root 2021/10/12 05:00 upstream 64570fbc14f8 838e7e2c .config log report syz general protection fault in fuse_test_super
ci-upstream-kasan-gce 2021/10/12 13:28 upstream fa5878760579 838e7e2c .config log report info general protection fault in fuse_test_super
ci-upstream-kasan-gce 2021/10/04 01:09 upstream 6761a0ae9895 db0f5787 .config log report info general protection fault in fuse_test_super
ci-upstream-kasan-gce-selinux-root 2021/09/30 10:16 upstream 02d5e016800d be530f6c .config log report info general protection fault in fuse_test_super
ci-upstream-kasan-gce-smack-root 2021/09/20 00:59 upstream d4d016caa4b8 70b76c1d .config log report info general protection fault in fuse_test_super
ci-qemu2-riscv64 2022/03/01 18:16 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 45a13a73 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/03/01 13:27 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 45a13a73 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/02/27 18:30 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 45a13a73 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/02/19 23:41 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 3cd800e4 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/02/15 22:56 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 8b9ca619 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/02/10 07:27 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 0b33604d .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/02/03 01:20 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 4ebb2798 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/30 19:08 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 495e00c5 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/30 11:40 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 495e00c5 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/29 07:37 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 495e00c5 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/28 16:08 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 495e00c5 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/27 12:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 2cbffd88 .config log report info KASAN: use-after-free Read in fuse_test_super
ci-qemu2-riscv64 2022/01/27 00:05 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 2cbffd88 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/26 17:05 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 2cbffd88 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/09 21:36 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 2ca0d385 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/09 11:52 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 2ca0d385 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/09 08:32 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 2ca0d385 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/08 12:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 2ca0d385 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/04 04:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 7f723fbe .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/03 12:58 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 e1768e9c .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2022/01/02 02:46 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 e1768e9c .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2021/12/30 07:41 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 6cc879d4 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2021/12/30 01:22 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 6cc879d4 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2021/12/27 01:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 e4f103c4 .config log report info KASAN: null-ptr-deref Read in fuse_test_super
ci-qemu2-riscv64 2021/12/23 05:45 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 64a19591a293 6caa12e4 .config log report info KASAN: null-ptr-deref Read in fuse_test_super