syzbot


general protection fault in d_flags_for_inode

Status: auto-obsoleted due to no activity on 2024/03/06 05:01
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+2f012b85ac8ce9be92e5@syzkaller.appspotmail.com
First crash: 812d, last: 541d
Cause bisection: introduced by (bisect log) :
commit 6e5be40d32fb1907285277c02e74493ed43d77fe
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Aug 13 14:21:30 2021 +0000

  fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

Crash: general protection fault in d_flags_for_inode (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit c43784c856483dded7956175b5786e27af6d87f1
Author: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Date: Thu Dec 8 07:51:32 2022 +0000

  media: v4l2-mem2mem: use vb2_is_streaming()

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] general protection fault in d_flags_for_inode 1 (3) 2023/07/13 10:17
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/03/06 04:25 35m retest repro upstream OK log
2023/12/27 03:48 20m retest repro upstream report log
2023/10/18 01:15 1h54m retest repro upstream report log
2023/08/09 00:15 19m retest repro upstream report log
2023/08/09 00:15 19m retest repro upstream OK log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2023/07/13 05:03 4h32m bisect fix upstream OK (1) job log
2023/05/30 23:38 22m bisect fix upstream OK (0) job log log
2023/04/30 22:21 24m bisect fix upstream OK (0) job log log
2023/03/31 21:30 31m bisect fix upstream OK (0) job log log
2023/03/01 10:37 27m bisect fix upstream OK (0) job log log
2023/01/29 23:04 23m bisect fix upstream OK (0) job log log
2022/11/25 17:55 22m bisect fix upstream OK (0) job log log

Sample crash report:
ntfs3: loop0: RAW NTFS volume: Filesystem size 0.00 Gb > volume size 0.00 Gb. Mount in read-only
ntfs3: loop0: failed to read volume at offset 0x120000
ntfs3: loop0: Failed to load $Extend.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 3610 Comm: syz-executor128 Not tainted 6.0.0-syzkaller-09039-ga6afa4199d3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:d_flags_for_inode+0x21b/0x2a0 fs/dcache.c:1980
Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 20 49 8d 7c 24 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 69 49 83 7c 24 08 00 75 34 e8 e2 df 9e ff 41 83 cd
RSP: 0018:ffffc90003f1fb40 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: ffff8880743a5370 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff81dc3702 RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07c R12: 0000000000000000
R13: 0000000000000008 R14: ffff888070b20000 R15: ffff888077df2088
FS:  0000555556fb1300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003580 CR3: 000000001d20e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __d_instantiate+0x21/0x450 fs/dcache.c:1998
 d_instantiate fs/dcache.c:2036 [inline]
 d_instantiate fs/dcache.c:2030 [inline]
 d_make_root+0xae/0x110 fs/dcache.c:2071
 ntfs_fill_super+0x31eb/0x37f0 fs/ntfs3/super.c:1269
 get_tree_bdev+0x440/0x760 fs/super.c:1323
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 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+0x63/0xcd
RIP: 0033:0x7f68fc2f472a
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 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:00007ffe43c6f028 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f68fc2f472a
RDX: 0000000020000040 RSI: 0000000020000100 RDI: 00007ffe43c6f040
RBP: 00007ffe43c6f040 R08: 00007ffe43c6f080 R09: 0000555556fb12c0
R10: 0000000000000400 R11: 0000000000000286 R12: 0000000000000004
R13: 00007ffe43c6f080 R14: 0000000000000015 R15: 00000000200003f8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:d_flags_for_inode+0x21b/0x2a0 fs/dcache.c:1980
Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 20 49 8d 7c 24 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 69 49 83 7c 24 08 00 75 34 e8 e2 df 9e ff 41 83 cd
RSP: 0018:ffffc90003f1fb40 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: ffff8880743a5370 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff81dc3702 RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07c R12: 0000000000000000
R13: 0000000000000008 R14: ffff888070b20000 R15: ffff888077df2088
FS:  0000555556fb1300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003580 CR3: 000000001d20e000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	89 fa                	mov    %edi,%edx
   2:	48 c1 ea 03          	shr    $0x3,%rdx
   6:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   a:	0f 85 90 00 00 00    	jne    0xa0
  10:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  17:	fc ff df
  1a:	4c 8b 63 20          	mov    0x20(%rbx),%r12
  1e:	49 8d 7c 24 08       	lea    0x8(%r12),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	75 69                	jne    0x99
  30:	49 83 7c 24 08 00    	cmpq   $0x0,0x8(%r12)
  36:	75 34                	jne    0x6c
  38:	e8 e2 df 9e ff       	callq  0xff9ee01f
  3d:	41                   	rex.B
  3e:	83                   	.byte 0x83
  3f:	cd                   	.byte 0xcd

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/09 06:09 upstream a6afa4199d3d aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in d_flags_for_inode
2022/10/23 01:39 upstream 4da34b7d175d c0b80a55 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in d_flags_for_inode
2022/09/25 03:17 upstream 1a61b828566f 0042f2b4 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in d_flags_for_inode
2022/12/04 18:42 upstream 97ee9d1c1696 e080de16 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in d_flags_for_inode
2022/10/26 17:52 upstream 4dc12f37a8e9 2159e4d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in d_flags_for_inode
2022/10/23 00:00 upstream bd8e963412c8 c0b80a55 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in d_flags_for_inode
2022/10/11 21:24 upstream 55be6084c8e0 1353c374 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in d_flags_for_inode
2022/10/10 03:05 upstream a6afa4199d3d aea5da89 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in d_flags_for_inode
2022/10/05 00:35 upstream a5088ee7251e eab8f949 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in d_flags_for_inode
2022/10/03 21:00 upstream 4fe89d07dcc2 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in d_flags_for_inode
2022/09/02 10:24 upstream 42e66b1cc3a0 a805568e .config console log report info ci-qemu-upstream general protection fault in d_flags_for_inode
* Struck through repros no longer work on HEAD.