kernel BUG in xrep_tempfile_rele

Status: upstream: reported on 2026/07/12 19:00
Subsystems: xfs
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+a7f8b4c78caca340c561@syzkaller.appspotmail.com
First crash: 24d, last: 8h21m
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
6cb539d7 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ kernel BUG in xrep_tempfile_rele 2026/07/10 00:00 2026/07/10 00:00 2026/07/10 00:45 6e8eff30

			
		
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly xfs report (Jul 2026) 0 (1) 2026/07/18 12:32
[syzbot] [xfs?] kernel BUG in xrep_tempfile_rele 0 (1) 2026/07/12 19:00

Sample crash report:
XFS (loop0): Metadata CRC error detected at xfs_dquot_buf_verify_crc+0x281/0x300 fs/xfs/libxfs/xfs_dquot_buf.c:180, xfs_dquot block 0x4920 xfs_dquot_buf_verify_crc
XFS (loop0): Unmount and run xfs_repair
XFS (loop0): First 128 bytes of corrupted metadata buffer:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000020: 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00  ................
00000030: 00 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000060: 00 00 00 00 00 00 14 bb 9d fa 00 00 00 00 00 00  ................
00000070: 00 00 bf dc 47 fc 10 d8 4e ed a5 62 11 a8 31 b3  ....G...N..b..1.
XFS (loop0): metadata I/O error in "xfs_dquot_attach_buf+0x20c/0x3d0" at daddr 0x4920 len 4 error 74
XFS (loop0): Metadata I/O Error (0x1) detected at xfs_trans_read_buf_map+0x47f/0x820 fs/xfs/xfs_trans_buf.c:280 (fs/xfs/xfs_trans_buf.c:280).  Shutting down filesystem.
XFS (loop0): Please unmount the filesystem and rectify the problem(s)
VFS_BUG_ON_INODE(inode_state_read_once(inode) & (I_FREEING | I_CLEAR)): inode:ffff8880441cca50 fs:xfs mode:100000 opflags:0x20 flags:0x1200 state:0x300 count:0
------------[ cut here ]------------
kernel BUG at fs/inode.c:2039!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5333 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:iput+0xecc/0xf00 fs/inode.c:2039
Code: ed 75 ff 48 89 df 48 c7 c6 a0 eb fe 8b e8 2c 29 00 00 90 0f 0b e8 94 ed 75 ff 48 89 df 48 c7 c6 00 ee fe 8b e8 15 29 00 00 90 <0f> 0b e8 7d ed 75 ff 48 89 df 48 c7 c6 40 fd fe 8b e8 fe 28 00 00
RSP: 0018:ffffc9000f31f560 EFLAGS: 00010246
RAX: 5d28ce58f01aae00 RBX: ffff8880441cca50 RCX: 5d28ce58f01aae00
RDX: ffffc90021003000 RSI: 0000000000007956 RDI: 0000000000007957
RBP: dffffc0000000000 R08: ffffc9000f31f147 R09: 1ffff92001e63e28
R10: dffffc0000000000 R11: fffff52001e63e29 R12: 0000000000000300
R13: 1ffff11008839989 R14: 0000000000000300 R15: 1ffffffff20afea8
FS:  00007f4627bb36c0(0000) GS:ffff88808c53f000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557d729c0168 CR3: 0000000012113000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 xrep_tempfile_rele+0xd5/0x140 fs/xfs/scrub/tempfile.c:403
 xchk_teardown+0x397/0x810 fs/xfs/scrub/scrub.c:270
 xfs_scrub_metadata+0x13b2/0x1910 fs/xfs/scrub/scrub.c:766
 xfs_ioc_scrubv_metadata+0x7ac/0xb70 fs/xfs/scrub/scrub.c:981
 xfs_file_ioctl+0x916/0x1590 fs/xfs/xfs_ioctl.c:1308
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f462b79e019
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:00007f4627bb2fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f462ba26180 RCX: 00007f462b79e019
RDX: 0000200000000000 RSI: 00000000c0285840 RDI: 0000000000000008
RBP: 00007f462b83500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f462ba26218 R14: 00007f462ba26180 R15: 00007ffd843e5598
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:iput+0xecc/0xf00 fs/inode.c:2039
Code: ed 75 ff 48 89 df 48 c7 c6 a0 eb fe 8b e8 2c 29 00 00 90 0f 0b e8 94 ed 75 ff 48 89 df 48 c7 c6 00 ee fe 8b e8 15 29 00 00 90 <0f> 0b e8 7d ed 75 ff 48 89 df 48 c7 c6 40 fd fe 8b e8 fe 28 00 00
RSP: 0018:ffffc9000f31f560 EFLAGS: 00010246
RAX: 5d28ce58f01aae00 RBX: ffff8880441cca50 RCX: 5d28ce58f01aae00
RDX: ffffc90021003000 RSI: 0000000000007956 RDI: 0000000000007957
RBP: dffffc0000000000 R08: ffffc9000f31f147 R09: 1ffff92001e63e28
R10: dffffc0000000000 R11: fffff52001e63e29 R12: 0000000000000300
R13: 1ffff11008839989 R14: 0000000000000300 R15: 1ffffffff20afea8
FS:  00007f4627bb36c0(0000) GS:ffff88808c53f000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557d729c0168 CR3: 0000000012113000 CR4: 0000000000352ef0

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/01 16:36 upstream 02dc699f83d0 e611ffe1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/31 15:32 upstream 8ba098e6b6ff 7664cf44 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/31 13:51 upstream 8ba098e6b6ff 7664cf44 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/31 09:00 upstream e05b559f9cda aaffb173 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/30 21:33 upstream 11028ab62899 0a1bc234 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/30 03:41 upstream fc46aed51f62 2377cd3d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/29 13:56 upstream fc02acf6ac0c b63596d1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/29 05:07 upstream 3b5f4b83c4ab 19622d9d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/28 20:46 upstream 3b5f4b83c4ab 5fe7c56f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/27 18:58 upstream f5098b6bae76 1f273138 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/27 15:42 upstream f5098b6bae76 1f273138 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/25 18:41 upstream 0ce37745d4bf 492bab15 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/24 23:24 upstream 48a5a7ab8d6a dd737a83 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
2026/07/08 18:50 upstream 0e35b9b6ec0f ab40da58 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in xrep_tempfile_rele
* Struck through repros no longer work on HEAD.