XFS (loop0): WARNING: Reset corrupted AGFL on AG 0. 4 blocks leaked. Please unmount and run xfs_repair.
XFS (loop0): Internal error !ino_ok at line 213 of file fs/xfs/libxfs/xfs_dir2.c. Caller xfs_dir_ino_validate+0x45/0xb0 fs/xfs/libxfs/xfs_dir2.c:220
CPU: 1 PID: 17396 Comm: kworker/u4:1 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: xfs_iwalk-26641 xfs_pwork_work
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106
xfs_error_report fs/xfs/xfs_error.c:384 [inline]
xfs_error_report fs/xfs/xfs_error.c:371 [inline]
xfs_corruption_error+0x133/0x160 fs/xfs/xfs_error.c:401
xfs_dir_ino_validate fs/xfs/libxfs/xfs_dir2.c:213 [inline]
xfs_dir_ino_validate+0x74/0xb0 fs/xfs/libxfs/xfs_dir2.c:207
xfs_dir2_sf_verify+0x5a1/0xa50 fs/xfs/libxfs/xfs_dir2_sf.c:779
xfs_ifork_verify_local_data+0xa1/0x130 fs/xfs/libxfs/xfs_inode_fork.c:706
xfs_iformat_data_fork+0x493/0x570 fs/xfs/libxfs/xfs_inode_fork.c:256
xfs_inode_from_disk+0xb6d/0x1340 fs/xfs/libxfs/xfs_inode_buf.c:245
xfs_iget_cache_miss fs/xfs/xfs_icache.c:639 [inline]
xfs_iget+0xa58/0x2df0 fs/xfs/xfs_icache.c:777
xfs_qm_dqusage_adjust+0x15e/0x570 fs/xfs/xfs_qm.c:1157
xfs_iwalk_ag_recs+0x449/0x770 fs/xfs/xfs_iwalk.c:220
xfs_iwalk_run_callbacks+0x1fa/0x4b0 fs/xfs/xfs_iwalk.c:376
xfs_iwalk_ag+0x731/0x930 fs/xfs/xfs_iwalk.c:482
xfs_iwalk_ag_work+0x14a/0x1c0 fs/xfs/xfs_iwalk.c:624
xfs_pwork_work+0x7f/0x160 fs/xfs/xfs_pwork.c:47
process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
kthread+0x344/0x440 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
XFS (loop0): Corruption detected. Unmount and run xfs_repair
XFS (loop0): Invalid inode number 0x24
XFS (loop0): Metadata corruption detected at xfs_dir2_sf_verify+0x83f/0xa50 fs/xfs/libxfs/xfs_dir2_sf.c:774, inode 0x23 data fork
XFS (loop0): Unmount and run xfs_repair
XFS (loop0): First 32 bytes of corrupted metadata buffer:
00000000: 02 00 00 00 00 20 05 00 30 66 69 6c 65 30 01 00 ..... ..0file0..
00000010: 00 00 24 05 00 48 66 69 6c 65 31 07 00 00 00 25 ..$..Hfile1....%
XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x73f/0xaa0 fs/xfs/libxfs/xfs_alloc.c:2946, xfs_agf block 0x1
XFS (loop0): Unmount and run xfs_repair
XFS (loop0): First 128 bytes of corrupted metadata buffer:
00000000: 58 41 47 46 00 00 00 01 00 00 00 00 00 00 80 00 XAGF............
00000010: 00 00 00 04 00 00 00 05 00 00 00 00 00 00 00 01 ................
00000020: 00 00 00 01 00 00 00 00 00 00 01 00 00 00 00 04 ................
00000030: 00 00 00 04 00 00 7f be 00 00 7f be 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 00 00 00 00 00 00 00 00 00 00 ................
00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
XFS (loop0): metadata I/O error in "xfs_read_agf+0x27c/0x500" at daddr 0x1 len 1 error 117
sd 1:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
sd 1:0:0:0: [sdb] 0-byte physical blocks
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Asking for cache data failed
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk
sd 1:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
sd 1:0:0:0: [sdb] 0-byte physical blocks
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Asking for cache data failed
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk
XFS (loop0): WARNING: Reset corrupted AGFL on AG 0. 4 blocks leaked. Please unmount and run xfs_repair.
XFS (loop0): Internal error !ino_ok at line 213 of file fs/xfs/libxfs/xfs_dir2.c. Caller xfs_dir_ino_validate+0x45/0xb0 fs/xfs/libxfs/xfs_dir2.c:220
CPU: 1 PID: 17396 Comm: kworker/u4:1 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: xfs_iwalk-27796 xfs_pwork_work
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106
xfs_error_report fs/xfs/xfs_error.c:384 [inline]
xfs_error_report fs/xfs/xfs_error.c:371 [inline]
xfs_corruption_error+0x133/0x160 fs/xfs/xfs_error.c:401
xfs_dir_ino_validate fs/xfs/libxfs/xfs_dir2.c:213 [inline]
xfs_dir_ino_validate+0x74/0xb0 fs/xfs/libxfs/xfs_dir2.c:207
xfs_dir2_sf_verify+0x5a1/0xa50 fs/xfs/libxfs/xfs_dir2_sf.c:779
xfs_ifork_verify_local_data+0xa1/0x130 fs/xfs/libxfs/xfs_inode_fork.c:706
xfs_iformat_data_fork+0x493/0x570 fs/xfs/libxfs/xfs_inode_fork.c:256
xfs_inode_from_disk+0xb6d/0x1340 fs/xfs/libxfs/xfs_inode_buf.c:245
xfs_iget_cache_miss fs/xfs/xfs_icache.c:639 [inline]
xfs_iget+0xa58/0x2df0 fs/xfs/xfs_icache.c:777
xfs_qm_dqusage_adjust+0x15e/0x570 fs/xfs/xfs_qm.c:1157
xfs_iwalk_ag_recs+0x449/0x770 fs/xfs/xfs_iwalk.c:220
xfs_iwalk_run_callbacks+0x1fa/0x4b0 fs/xfs/xfs_iwalk.c:376
xfs_iwalk_ag+0x731/0x930 fs/xfs/xfs_iwalk.c:482
xfs_iwalk_ag_work+0x14a/0x1c0 fs/xfs/xfs_iwalk.c:624
xfs_pwork_work+0x7f/0x160 fs/xfs/xfs_pwork.c:47
process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
kthread+0x344/0x440 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
XFS (loop0): Corruption detected. Unmount and run xfs_repair
XFS (loop0): Invalid inode number 0x24
XFS (loop0): Metadata corruption detected at xfs_dir2_sf_verify+0x83f/0xa50 fs/xfs/libxfs/xfs_dir2_sf.c:774, inode 0x23 data fork
XFS (loop0): Unmount and run xfs_repair
XFS (loop0): First 32 bytes of corrupted metadata buffer:
00000000: 02 00 00 00 00 20 05 00 30 66 69 6c 65 30 01 00 ..... ..0file0..
00000010: 00 00 24 05 00 48 66 69 6c 65 31 07 00 00 00 25 ..$..Hfile1....%