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: 19d, last: 6h03m
✨ 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:ffff8880441ead50 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: 5330 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: f2 75 ff 48 89 df 48 c7 c6 a0 eb fe 8b e8 2c 29 00 00 90 0f 0b e8 74 f2 75 ff 48 89 df 48 c7 c6 00 ee fe 8b e8 15 29 00 00 90 <0f> 0b e8 5d f2 75 ff 48 89 df 48 c7 c6 40 fd fe 8b e8 fe 28 00 00
RSP: 0018:ffffc9000ef5f560 EFLAGS: 00010246
RAX: 4cfffc962872de00 RBX: ffff8880441ead50 RCX: 4cfffc962872de00
RDX: ffffc90020001000 RSI: 0000000000007338 RDI: 0000000000007339
RBP: dffffc0000000000 R08: ffffc9000ef5f147 R09: 1ffff92001debe28
R10: dffffc0000000000 R11: fffff52001debe29 R12: 0000000000000300
R13: 1ffff1100883d5e9 R14: 0000000000000300 R15: 1ffffffff20afd08
FS:  00007fbea35876c0(0000) GS:ffff88808c543000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6058be8000 CR3: 0000000012f52000 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:0x7fbea279de99
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:00007fbea3586fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fbea2a26090 RCX: 00007fbea279de99
RDX: 0000200000000000 RSI: 00000000c0285840 RDI: 0000000000000006
RBP: 00007fbea2833eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbea2a26128 R14: 00007fbea2a26090 R15: 00007ffe0c6783a8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:iput+0xecc/0xf00 fs/inode.c:2039
Code: f2 75 ff 48 89 df 48 c7 c6 a0 eb fe 8b e8 2c 29 00 00 90 0f 0b e8 74 f2 75 ff 48 89 df 48 c7 c6 00 ee fe 8b e8 15 29 00 00 90 <0f> 0b e8 5d f2 75 ff 48 89 df 48 c7 c6 40 fd fe 8b e8 fe 28 00 00
RSP: 0018:ffffc9000ef5f560 EFLAGS: 00010246
RAX: 4cfffc962872de00 RBX: ffff8880441ead50 RCX: 4cfffc962872de00
RDX: ffffc90020001000 RSI: 0000000000007338 RDI: 0000000000007339
RBP: dffffc0000000000 R08: ffffc9000ef5f147 R09: 1ffff92001debe28
R10: dffffc0000000000 R11: fffff52001debe29 R12: 0000000000000300
R13: 1ffff1100883d5e9 R14: 0000000000000300 R15: 1ffffffff20afd08
FS:  00007fbea35876c0(0000) GS:ffff88808c543000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6058be8000 CR3: 0000000012f52000 CR4: 0000000000352ef0

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.