0000000068ef16fb: 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 00000000e077144e, inode 0x1a, offset 2408448. XFS (loop2): Unmounting Filesystem XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 INFO: task syz-executor.0:15941 blocked for more than 140 seconds. XFS (loop0): Unmount and run xfs_repair Not tainted 4.19.211-syzkaller #0 XFS (loop0): First 128 bytes of corrupted metadata buffer: 0000000085de7894: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . 00000000a57a84d0: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ 000000005c00b6db: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ 000000008e325095: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ 000000003aa88b6e: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000b711cc4e: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000052d4508d: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0000000009da3da9: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. XFS (loop0): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x1 len 1 error 117 syz-executor.0 D24216 15941 1 0x00000004 XFS (loop0): page discard on page 000000000197c757, inode 0x1a, offset 2412544. Call Trace: XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 XFS (loop0): Unmount and run xfs_repair XFS (loop0): First 128 bytes of corrupted metadata buffer: 0000000090a944db: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . 0000000020b18fcc: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ schedule+0x8d/0x1b0 kernel/sched/core.c:3561 00000000d7e836a5: 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 000000006d48cc7a: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ 00000000ecb4275f: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000003979297c: 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 00000000f312060e: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000007b7f7e39: 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 00000000b84986c7, inode 0x1a, offset 2416640. 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 00000000de2c0797: 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 00000000575f8173: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ deactivate_locked_super+0x94/0x160 fs/super.c:329 00000000486bad82: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ deactivate_super+0x174/0x1a0 fs/super.c:360 00000000dd887810: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ 000000007af8af55: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000000047bee63: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 00000000d5c7d951: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ task_work_run+0x148/0x1c0 kernel/task_work.c:113 000000005bd0c646: 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 XFS (loop0): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x1 len 1 error 117 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 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fd3b2bf0537 Code: Bad RIP value. XFS (loop0): page discard on page 0000000008179230, inode 0x1a, offset 2420736. RSP: 002b:00007ffdb84a2d28 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fd3b2bf0537 XFS (loop0): Unmount and run xfs_repair RDX: 00007ffdb84a2dfc RSI: 000000000000000a RDI: 00007ffdb84a2df0 XFS (loop0): First 128 bytes of corrupted metadata buffer: RBP: 00007ffdb84a2df0 R08: 00000000ffffffff R09: 00007ffdb84a2bc0 R10: 0000555555e32903 R11: 0000000000000246 R12: 00007fd3b2c49b24 R13: 00007ffdb84a3eb0 R14: 0000555555e32810 R15: 00007ffdb84a3ef0 Showing all locks held in the system: 000000007744e688: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . 2 locks held by systemd/1: 00000000c582bd40: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ #0: 000000009ca5c710 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000009ca5c710 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 00000000a3ac1f5f: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ #1: 000000009925db19 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 000000009925db19 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 00000000fd71d01c: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ 1 lock held by khungtaskd/1570: 000000007978c87c: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ #0: 000000009925db19 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7799: 4 locks held by kworker/u4:5/8804: #0: 00000000cc1cd8d0 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 00000000058e5aef: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ #1: 000000009d66d1a3 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 000000009ce0c1ca: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ #2: 00000000c463a246 (sb_internal#3){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #2: 00000000c463a246 (sb_internal#3){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 00000000f9a9830f: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ #3: 0000000018604433 (&xfs_nondir_ilock_class){++++}, at: mrupdate_nested fs/xfs/mrlock.h:36 [inline] #3: 0000000018604433 (&xfs_nondir_ilock_class){++++}, at: xfs_ilock+0x2b6/0x440 fs/xfs/xfs_inode.c:199 XFS (loop0): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x1 len 1 error 117 3 locks held by kworker/0:3/9325: XFS (loop0): page discard on page 0000000056be918f, inode 0x1a, offset 2424832. #0: 000000008fa5df27 ((wq_completion)"events"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 XFS (loop0): Metadata corruption detected at xfs_agf_verify+0x11c/0xc20 fs/xfs/libxfs/xfs_alloc.c:2592, xfs_agf block 0x1 #1: 00000000b7622108 ((linkwatch_work).work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 XFS (loop0): Unmount and run xfs_repair #2: 00000000cdc2d5bc (rtnl_mutex){+.+.}, at: linkwatch_event+0xb/0x60 net/core/link_watch.c:236 XFS (loop0): First 128 bytes of corrupted metadata buffer: 2 locks held by syz-executor.0/15941: 0000000008e87c02: 58 41 47 46 02 00 00 00 00 00 00 00 00 00 20 00 XAGF.......... . #0: 000000006ba79295 (&type->s_umount_key#63){++++}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359 00000000647d55de: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 01 ................ #1: 00000000b2c6c702 (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000b2c6c702 (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 00000000a0e323cd: 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 04 ................ 2 locks held by syz-executor.2/32571: 000000007bc5ea83: 00 00 00 04 00 00 1f d0 00 00 1f d0 00 00 00 00 ................ #0: 00000000cdc2d5bc (rtnl_mutex){+.+.}, at: tun_detach drivers/net/tun.c:759 [inline] #0: 00000000cdc2d5bc (rtnl_mutex){+.+.}, at: tun_chr_close+0x3a/0x180 drivers/net/tun.c:3323 #1: 000000006e7f107d (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #1: 000000006e7f107d (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x4dc/0x6f0 kernel/rcu/tree_exp.h:667 4 locks held by kworker/1:38/688: 2 locks held by kworker/0:7/1319: #0: 000000009a0e7863 ((wq_completion)"rcu_gp"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 0000000040bd2824 ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 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 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 688 Comm: kworker/1:38 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:on_stack arch/x86/include/asm/stacktrace.h:44 [inline] RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:321 [inline] RIP: 0010:deref_stack_reg+0x54/0x1d0 arch/x86/kernel/unwind_orc.c:331 Code: 5c 24 08 48 c7 44 24 10 35 af b6 89 48 c1 eb 03 48 c7 44 24 18 20 7f 29 81 48 8d 14 03 c7 02 f1 f1 f1 f1 c7 42 04 00 f3 f3 f3 <48> 89 fa 65 48 8b 0c 25 28 00 00 00 48 89 4c 24 60 31 c9 48 c1 ea RSP: 0018:ffff8880ba107698 EFLAGS: 00000a06 RAX: dffffc0000000000 RBX: 1ffff11017420ed4 RCX: ffffffff8ba90bab RDX: ffffed1017420ed4 RSI: ffff88808d407ce0 RDI: ffff8880ba107860 RBP: ffff88808d407ce0 R08: 0000000000000001 R09: 0000000000000001 R10: ffff8880ba1078bf R11: 0000000000074071 R12: ffff8880ba107860 R13: ffff8880ba1078a0 R14: ffff8880ba107860 R15: ffffffff8ba90ba6 FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560392e658f0 CR3: 00000000919f6000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0xf83/0x1400 arch/x86/kernel/unwind_orc.c:555 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44 save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553 kmem_cache_alloc_node+0x146/0x3b0 mm/slab.c:3649 __alloc_skb+0x71/0x560 net/core/skbuff.c:193 __netdev_alloc_skb+0x76/0x460 net/core/skbuff.c:407 netdev_alloc_skb include/linux/skbuff.h:2680 [inline] dev_alloc_skb include/linux/skbuff.h:2693 [inline] __ieee80211_beacon_get+0xc7d/0x1a30 net/mac80211/tx.c:4352 ieee80211_beacon_get_tim+0x88/0x890 net/mac80211/tx.c:4463 ieee80211_beacon_get include/net/mac80211.h:4484 [inline] mac80211_hwsim_beacon_tx+0xff/0x680 drivers/net/wireless/mac80211_hwsim.c:1577 __iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650 mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615 __tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601 tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:console_trylock_spinning kernel/printk/printk.c:1724 [inline] RIP: 0010:vprintk_emit+0x668/0x740 kernel/printk/printk.c:1964 Code: 48 b8 00 00 00 00 00 fc ff df 41 80 7c 05 00 00 0f 85 d9 00 00 00 48 83 3d 9c a2 a3 08 00 74 37 e8 7d a5 14 00 48 89 df 57 9d <0f> 1f 44 00 00 e9 82 fe ff ff e8 69 a5 14 00 0f 0b e8 62 a5 14 00 RSP: 0018:ffff88808d407938 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff88808c7980c0 RBX: 0000000000000293 RCX: 1ffff110118f3132 RDX: 0000000000000000 RSI: ffffffff814ddff3 RDI: 0000000000000293 RBP: ffff88808d407978 R08: ffffffff8cd1e970 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000053 R13: 1ffffffff13e3051 R14: 0000000000000200 R15: 0000000000000001 vprintk_func+0x79/0x180 kernel/printk/printk_safe.c:405 printk+0xba/0xed kernel/printk/printk.c:2040 print_hex_dump.cold+0x23/0x7a lib/hexdump.c:263 xfs_hex_dump+0x36/0x40 fs/xfs/xfs_message.c:110 xfs_buf_verifier_error+0x22a/0x310 fs/xfs/xfs_error.c:370 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