syzbot


WARNING: Reset corrupted AGFL on AG NUM. NUM blocks leaked. Please unmount and run xfs_repair.

Status: auto-obsoleted due to no activity on 2024/04/09 10:06
Subsystems: xfs
[Documentation on labels]
Reported-by: syzbot+9d0b0d54a8bd799f6ae4@syzkaller.appspotmail.com
First crash: 315d, last: 117d
Cause bisection: introduced by (bisect log) :
commit e0a8de7da35e5b22b44fa1013ccc0716e17b0c14
Author: Dave Chinner <dchinner@redhat.com>
Date: Mon Jun 5 04:48:15 2023 +0000

  xfs: fix agf/agfl verification on v4 filesystems

Crash: WARNING: Reset corrupted AGFL on AG NUM. NUM blocks leaked. Please unmount and run xfs_repair. (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (4)
Title Replies (including bot) Last reply
[syzbot] [xfs?] WARNING: Reset corrupted AGFL on AG NUM. NUM blocks leaked. Please unmount and run xfs_repair. 8 (10) 2024/02/07 21:16
[syzbot] Monthly xfs report (Dec 2023) 0 (1) 2023/12/10 10:05
[syzbot] Monthly xfs report (Nov 2023) 0 (1) 2023/11/08 23:44
[syzbot] Monthly xfs report (Aug 2023) 0 (1) 2023/08/07 08:36
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/10/14 11:34 23m retest repro upstream OK log
2023/08/30 05:30 19m retest repro upstream OK log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/02/03 14:41 4h33m (2) bisect fix upstream job log (1)
2023/12/31 08:59 1h06m bisect fix upstream job log (0) log
2023/12/01 06:31 1h08m bisect fix upstream job log (0) log
2023/10/31 01:43 1h07m bisect fix upstream job log (0) log
2023/09/30 09:43 1h04m bisect fix upstream job log (0) log
2023/07/31 11:49 1h17m bisect fix upstream job log (0) log

Sample crash report:
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+0x2c/0x90 fs/xfs/libxfs/xfs_dir2.c:220
CPU: 1 PID: 46 Comm: kworker/u4:3 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-4998 xfs_pwork_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 xfs_error_report fs/xfs/xfs_error.c:384 [inline]
 xfs_corruption_error+0x11d/0x170 fs/xfs/xfs_error.c:401
 xfs_dir_ino_validate+0x5f/0x90 fs/xfs/libxfs/xfs_dir2.c:213
 xfs_dir2_sf_verify+0x487/0x990 fs/xfs/libxfs/xfs_dir2_sf.c:779
 xfs_ifork_verify_local_data fs/xfs/libxfs/xfs_inode_fork.c:706 [inline]
 xfs_iformat_data_fork+0x4bf/0x6d0 fs/xfs/libxfs/xfs_inode_fork.c:256
 xfs_inode_from_disk+0xbbf/0x1070 fs/xfs/libxfs/xfs_inode_buf.c:245
 xfs_iget_cache_miss fs/xfs/xfs_icache.c:639 [inline]
 xfs_iget+0xf08/0x3050 fs/xfs/xfs_icache.c:777
 xfs_qm_dqusage_adjust+0x228/0x670 fs/xfs/xfs_qm.c:1157
 xfs_iwalk_ag_recs+0x486/0x7c0 fs/xfs/xfs_iwalk.c:220
 xfs_iwalk_run_callbacks+0x25b/0x490 fs/xfs/xfs_iwalk.c:376
 xfs_iwalk_ag+0xad6/0xbd0 fs/xfs/xfs_iwalk.c:482
 xfs_iwalk_ag_work+0xfb/0x1b0 fs/xfs/xfs_iwalk.c:624
 xfs_pwork_work+0x7c/0x190 fs/xfs/xfs_pwork.c:47
 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
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+0x767/0x990 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..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/17 02:51 upstream 40f71e7cd3c6 f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING: Reset corrupted AGFL on AG NUM. NUM blocks leaked. Please unmount and run xfs_repair.
2023/06/17 02:10 upstream 40f71e7cd3c6 f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING: Reset corrupted AGFL on AG NUM. NUM blocks leaked. Please unmount and run xfs_repair.
2023/06/24 07:43 upstream 61dabacdad4e 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: Reset corrupted AGFL on AG NUM. NUM blocks leaked. Please unmount and run xfs_repair.
2023/06/17 01:59 upstream 40f71e7cd3c6 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: Reset corrupted AGFL on AG NUM. NUM blocks leaked. Please unmount and run xfs_repair.
* Struck through repros no longer work on HEAD.