XFS (loop0): First 128 bytes of corrupted metadata buffer: 00000000ff5282a1: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . 000000009f2f9341: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ INFO: task syz-executor.0:8125 blocked for more than 140 seconds. 000000005e8db95f: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ Not tainted 4.19.211-syzkaller #0 00000000bf8706c1: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ 00000000fb721da3: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000011287a45: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000001c6f8f6c: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000f7ba9474: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ XFS (loop0): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x1 len 1 error 117 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. XFS (loop0): page discard on page 000000003a45556e, inode 0x1a, offset 5292032. syz-executor.0 D24120 8125 1 0x00000004 XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 Call Trace: XFS (loop0): Unmount and run xfs_repair context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 XFS (loop0): First 128 bytes of corrupted metadata buffer: 0000000049cc8155: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . 0000000086bc1d30: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ schedule+0x8d/0x1b0 kernel/sched/core.c:3561 0000000095e9a77b: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ wb_wait_for_completion+0x175/0x1f0 fs/fs-writeback.c:222 0000000066fbc5d1: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ 00000000dfc9a347: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000000bffadf1: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000756bc58f: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ sync_inodes_sb+0x19d/0x9a0 fs/fs-writeback.c:2459 00000000e25a206d: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ XFS (loop0): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x1 len 1 error 117 XFS (loop0): page discard on page 00000000c876f274, inode 0x1a, offset 5296128. XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 XFS (loop0): Unmount and run xfs_repair __sync_filesystem fs/sync.c:34 [inline] sync_filesystem+0x15c/0x250 fs/sync.c:67 XFS (loop0): First 128 bytes of corrupted metadata buffer: generic_shutdown_super+0x70/0x370 fs/super.c:442 000000002d69660d: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . kill_block_super+0x97/0xf0 fs/super.c:1185 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 0000000004844eb7: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ 000000002abfd9d7: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 0000000061aa7b64: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ task_work_run+0x148/0x1c0 kernel/task_work.c:113 000000001412db18: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000dc9e7e9b: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 0000000003c58f8b: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 0000000072eab1a2: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ entry_SYSCALL_64_after_hwframe+0x49/0xbe XFS (loop0): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x1 len 1 error 117 RIP: 0033:0x7f5b87ffe537 XFS (loop0): page discard on page 00000000890602a8, inode 0x1a, offset 5300224. Code: Bad RIP value. XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 RSP: 002b:00007fffb948ad98 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 XFS (loop0): Unmount and run xfs_repair RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f5b87ffe537 XFS (loop0): First 128 bytes of corrupted metadata buffer: 00000000d0ed0cb0: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . RDX: 00007fffb948ae6b RSI: 000000000000000a RDI: 00007fffb948ae60 00000000499db4f4: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ RBP: 00007fffb948ae60 R08: 00000000ffffffff R09: 00007fffb948ac30 000000009923a5c6: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ R10: 0000555555e32903 R11: 0000000000000246 R12: 00007f5b88057b24 00000000d4a8761d: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ R13: 00007fffb948bf20 R14: 0000555555e32810 R15: 00007fffb948bf60 0000000050c116e5: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Showing all locks held in the system: 000000007b5f04e4: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 1 lock held by khungtaskd/1571: #0: 00000000ab1e4d88 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 00000000af1f7168: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 1 lock held by in:imklog/7797: #0: 000000000f7b821a (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by syz-executor.0/8125: 0000000054d34de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ #0: 00000000cbe7197c (&type->s_umount_key#76){++++}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359 #1: 000000008ed23a5e (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 000000008ed23a5e (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 XFS (loop0): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x1 len 1 error 117 2 locks held by kworker/0:5/15347: 4 locks held by kworker/u4:9/16289: ============================================= XFS (loop0): page discard on page 00000000f9faab7d, inode 0x1a, offset 5304320. NMI backtrace for cpu 1 CPU: 1 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 1 to CPUs 0: XFS (loop0): Unmount and run xfs_repair NMI backtrace for cpu 0 CPU: 0 PID: 15347 Comm: kworker/0:5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Workqueue: xfs-buf/loop0 xfs_buf_ioend_work RIP: 0010:__read_once_size include/linux/compiler.h:263 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:69 [inline] RIP: 0010:write_comp_data+0x1d/0x70 kernel/kcov.c:122 Code: d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 25 c0 df 01 00 65 8b 05 7a 59 9f 7e a9 00 01 1f 00 75 4f <8b> 86 60 13 00 00 83 f8 03 75 44 48 8b 86 68 13 00 00 8b b6 64 13 RSP: 0018:ffff888043d9f5f8 EFLAGS: 00000046 RAX: 0000000080000002 RBX: 000000000000006c RCX: ffffffff87f01add RDX: 0000000000000001 RSI: ffff88803d1ac1c0 RDI: 0000000000000001 RBP: ffff888043d9f718 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff886ad5c9 R13: ffffffff886ad5c6 R14: 1ffff110087b3ec3 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f71000098c0 CR3: 00000000aa59f000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: format_decode+0x4cd/0xad0 lib/vsprintf.c:2114 vsnprintf+0x155/0x14f0 lib/vsprintf.c:2271 sprintf+0xc0/0x100 lib/vsprintf.c:2521 print_time kernel/printk/printk.c:1264 [inline] print_prefix+0x265/0x3f0 kernel/printk/printk.c:1287 msg_print_text+0xcd/0x1c0 kernel/printk/printk.c:1314 console_unlock+0x321/0x1110 kernel/printk/printk.c:2434 vprintk_emit+0x2d1/0x740 kernel/printk/printk.c:1965 vprintk_func+0x79/0x180 kernel/printk/printk_safe.c:405 printk+0xba/0xed kernel/printk/printk.c:2040 __xfs_printk+0x66/0x8a fs/xfs/xfs_message.c:24 xfs_alert+0xe2/0x1bd fs/xfs/xfs_message.c:52 xfs_buf_verifier_error+0x191/0x310 fs/xfs/xfs_error.c:364 xfs_agf_read_verify+0x11a/0x2a0 fs/xfs/libxfs/xfs_alloc.c:2662 xfs_buf_ioend+0x1da/0x6e0 fs/xfs/xfs_buf.c:1202 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415