INFO: task syz-executor.2:27980 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D26136 27980 8133 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 xlog_grant_head_wait+0x13b/0xcd0 fs/xfs/xfs_log.c:263 BTRFS error (device loop4): superblock checksum mismatch xlog_grant_head_check+0x3c8/0x420 fs/xfs/xfs_log.c:325 xfs_log_reserve+0x347/0xa70 fs/xfs/xfs_log.c:454 BTRFS error (device loop4): open_ctree failed XFS (loop5): invalid logbufs value: 9 [not 2-8] xfs_trans_reserve+0x63a/0x9c0 fs/xfs/xfs_trans.c:197 xfs_trans_alloc+0x2f7/0x700 fs/xfs/xfs_trans.c:289 xfs_qm_qino_alloc+0x19a/0x950 fs/xfs/xfs_qm.c:777 xfs_qm_init_quotainos+0x563/0x730 fs/xfs/xfs_qm.c:1548 xfs_qm_init_quotainfo+0x146/0xd70 fs/xfs/xfs_qm.c:659 xfs_qm_mount_quotas+0x55/0x680 fs/xfs/xfs_qm.c:1432 xfs_mountfs+0x17e2/0x1bf0 fs/xfs/xfs_mount.c:1001 xfs_fs_fill_super+0xd0e/0x1540 fs/xfs/xfs_super.c:1720 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f6e8e65862a Code: Bad RIP value. RSP: 002b:00007f6e8cbc8f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000bb76 RCX: 00007f6e8e65862a RDX: 000000002000bb00 RSI: 000000002000bb40 RDI: 00007f6e8cbc8fe0 RBP: 00007f6e8cbc9020 R08: 00007f6e8cbc9020 R09: 0000000002000850 R10: 0000000002000850 R11: 0000000000000202 R12: 000000002000bb00 XFS (loop0): SB sanity check failed XFS (loop0): Metadata corruption detected at xfs_sb_read_verify+0x3e7/0x500 fs/xfs/libxfs/xfs_sb.c:685, xfs_sb block 0xffffffffffffffff R13: 000000002000bb40 R14: 00007f6e8cbc8fe0 R15: 0000000020000680 XFS (loop0): Unmount and run xfs_repair Showing all locks held in the system: 2 locks held by kworker/u4:0/7: XFS (loop0): First 128 bytes of corrupted metadata buffer: 1 lock held by khungtaskd/1570: #0: 000000003d681c26 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 00000000438f724a: 58 46 53 42 00 00 02 00 00 00 00 00 00 01 00 00 XFSB............ 1 lock held by in:imklog/7810: #0: 0000000087002d28 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 00000000fc2345ff: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 2 locks held by syz-executor.2/27980: #0: 000000001633ad31 (&type->s_umount_key#69/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 000000001633ad31 (&type->s_umount_key#69/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519 000000006f0cd3b3: 5e 62 73 b8 21 67 42 bb 91 1b 41 8a a1 4a 12 61 ^bs.!gB...A..J.a #1: 0000000066c56ae9 (sb_internal#3){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 0000000066c56ae9 (sb_internal#3){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 0000000074746a94: 00 00 00 00 00 00 80 40 00 00 00 00 00 00 00 20 .......@....... 5 locks held by kworker/1:3/28425: 00000000debcb853: 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00 22 .......!......." 2 locks held by syz-executor.1/28643: 00000000aa2e47a7: 00 00 00 08 00 00 80 00 00 00 00 08 00 00 00 00 ................ #0: 00000000dbebadb3 (&type->s_umount_key#69/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 00000000dbebadb3 (&type->s_umount_key#69/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519 00000000845e949a: 00 00 0b 40 b4 b4 02 00 01 00 00 02 00 00 00 00 ...@............ #1: 000000009c188939 (sb_internal#3){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 000000009c188939 (sb_internal#3){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 000000000b439d57: 00 00 00 00 00 00 00 00 09 09 08 01 0f 00 00 19 ................ 2 locks held by syz-executor.4/29543: XFS (loop0): SB validate failed with error -117. 1 lock held by syz-executor.0/29551: #0: 00000000a34a7394 (loop_ctl_mutex){+.+.}, at: __loop_clr_fd+0x88/0xe50 drivers/block/loop.c:1080 3 locks held by syz-executor.1/29558: 2 locks held by syz-executor.2/29574: #0: 00000000350e40ff (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 00000000350e40ff (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 #1: 000000003d681c26 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 000000003d681c26 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 ============================================= 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 02/16/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: 29577 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0033:0x7f30564571c7 Code: 78 48 63 d5 48 01 c2 49 3b 55 08 77 56 8d 55 ff 85 ed 74 35 0f 1f 80 00 00 00 00 48 39 c1 77 1c 49 8b 75 00 49 89 c1 49 29 c9 <46> 0f b6 0c 0e 45 84 c9 74 08 44 88 0c 06 49 8b 45 10 48 83 c0 01 RSP: 002b:00007f3054a2b600 EFLAGS: 00000202 RAX: 0000000000d49026 RBX: 00007f3054a2b660 RCX: 0000000000000001 RDX: 00000000000000f1 RSI: 00007f304c60c000 RDI: 00007f3054a2b700 RBP: 0000000000000102 R08: 0000000000000000 R09: 0000000000d49025 R10: 0000000000000000 R11: 00007f3054a2b670 R12: 00007f3054a2b670 R13: 00007f3054a2b700 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f3054a2c700 GS: 0000000000000000