syzbot


general protection fault in xfs_free_extent_fix_freelist

Status: auto-obsoleted due to no activity on 2023/06/15 07:17
Subsystems: xfs
[Documentation on labels]
Reported-by: syzbot+42117ec814f4ddd2bc17@syzkaller.appspotmail.com
First crash: 353d, last: 353d

Sample crash report:
XFS (loop3): Ending clean mount
XFS (loop3): Quotacheck needed: Please wait.
XFS (loop3): Quotacheck: Done.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 16402 Comm: syz-executor.3 Not tainted 6.3.0-rc2-syzkaller-00069-g0ddc84d2dd43 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:xfs_free_extent_fix_freelist+0xd3/0x200 fs/xfs/libxfs/xfs_alloc.c:3537
Code: 42 80 3c 30 00 0f 85 2d 01 00 00 4d 8b 74 24 30 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 4c 89 74 24 38 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e ec 00 00 00 44 8b 65 08 49 8d
RSP: 0018:ffffc90016437738 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 1ffff92002c86ee7 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffc90016437768
R10: fffffbfff1cef702 R11: 0000000000000000 R12: ffff88802a5d64a0
R13: ffffc900164378d8 R14: ffff88801cc3a000 R15: 000000000000000c
FS:  00007f1a1c5fe700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3282d000 CR3: 000000007ef99000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 __xfs_free_extent+0x15e/0x420 fs/xfs/libxfs/xfs_alloc.c:3586
 xfs_free_extent fs/xfs/libxfs/xfs_alloc.h:158 [inline]
 xfs_ag_extend_space+0x34b/0x4c0 fs/xfs/libxfs/xfs_ag.c:1046
 xfs_resizefs_init_new_ags fs/xfs/xfs_fsops.c:77 [inline]
 xfs_growfs_data_private fs/xfs/xfs_fsops.c:151 [inline]
 xfs_growfs_data+0xf6a/0x1090 fs/xfs/xfs_fsops.c:294
 xfs_file_ioctl+0x8a5/0x1c30 fs/xfs/xfs_ioctl.c:2064
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1a1da8c0f9
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:00007f1a1c5fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1a1dbabf80 RCX: 00007f1a1da8c0f9
RDX: 0000000020000100 RSI: 000000004010586e RDI: 0000000000000004
RBP: 00007f1a1dae7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffddf3feabf R14: 00007f1a1c5fe300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:xfs_free_extent_fix_freelist+0xd3/0x200 fs/xfs/libxfs/xfs_alloc.c:3537
Code: 42 80 3c 30 00 0f 85 2d 01 00 00 4d 8b 74 24 30 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 4c 89 74 24 38 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e ec 00 00 00 44 8b 65 08 49 8d
RSP: 0018:ffffc90016437738 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 1ffff92002c86ee7 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffc90016437768
R10: fffffbfff1cef702 R11: 0000000000000000 R12: ffff88802a5d64a0
R13: ffffc900164378d8 R14: ffff88801cc3a000 R15: 000000000000000c
FS:  00007f1a1c5fe700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3282f000 CR3: 000000007ef99000 CR4: 0000000000350ee0
----------------
Code disassembly (best guess):
   0:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
   5:	0f 85 2d 01 00 00    	jne    0x138
   b:	4d 8b 74 24 30       	mov    0x30(%r12),%r14
  10:	48 8d 7d 08          	lea    0x8(%rbp),%rdi
  14:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1b:	fc ff df
  1e:	48 89 fa             	mov    %rdi,%rdx
  21:	48 c1 ea 03          	shr    $0x3,%rdx
  25:	4c 89 74 24 38       	mov    %r14,0x38(%rsp)
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	74 08                	je     0x3a
  32:	3c 03                	cmp    $0x3,%al
  34:	0f 8e ec 00 00 00    	jle    0x126
  3a:	44 8b 65 08          	mov    0x8(%rbp),%r12d
  3e:	49                   	rex.WB
  3f:	8d                   	.byte 0x8d

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/17 07:16 upstream 0ddc84d2dd43 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in xfs_free_extent_fix_freelist
* Struck through repros no longer work on HEAD.