RDX: 000000002000bb00 RSI: 0000000020000100 RDI: 00007f2e7cad8fe0 RBP: 00007f2e7cad9020 R08: 00007f2e7cad9020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000000002000bb00 R13: 0000000020000100 R14: 00007f2e7cad8fe0 R15: 00000000200001c0 ===================================== WARNING: bad unlock balance detected! 4.14.303-syzkaller #0 Not tainted ------------------------------------- syz-executor.5/9695 is trying to release lock (&xfs_nondir_ilock_class) at: [] mrunlock_excl fs/xfs/mrlock.h:74 [inline] [] xfs_iunlock+0x29f/0x3b0 fs/xfs/xfs_inode.c:327 but there are no more locks to release! other info that might help us debug this: 2 locks held by syz-executor.5/9695: #0: (&type->s_umount_key#48/1){+.+.}, at: [] alloc_super fs/super.c:251 [inline] #0: (&type->s_umount_key#48/1){+.+.}, at: [] sget_userns+0x556/0xc10 fs/super.c:516 #1: (sb_internal#2){.+.+}, at: [] sb_start_intwrite include/linux/fs.h:1598 [inline] #1: (sb_internal#2){.+.+}, at: [] xfs_trans_alloc+0x259/0x320 fs/xfs/xfs_trans.c:242 stack backtrace: CPU: 0 PID: 9695 Comm: syz-executor.5 Not tainted 4.14.303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_unlock_imbalance_bug include/trace/events/lock.h:58 [inline] __lock_release kernel/locking/lockdep.c:3769 [inline] lock_release.cold+0x70/0xbf kernel/locking/lockdep.c:4017 up_write+0x17/0x60 kernel/locking/rwsem.c:115 mrunlock_excl fs/xfs/mrlock.h:74 [inline] xfs_iunlock+0x29f/0x3b0 fs/xfs/xfs_inode.c:327 xfs_inode_item_unlock+0x83/0xa0 fs/xfs/xfs_inode_item.c:613 xfs_trans_free_items+0x172/0x230 fs/xfs/xfs_trans.c:768 xfs_trans_cancel+0x1ae/0x250 fs/xfs/xfs_trans.c:1025 xfs_qm_dqread+0x9c2/0xe50 fs/xfs/xfs_dquot.c:684 xfs_qm_dqget+0x4f4/0x19a0 fs/xfs/xfs_dquot.c:837 xfs_qm_quotacheck_dqadjust+0x96/0x5c0 fs/xfs/xfs_qm.c:1077 xfs_qm_dqusage_adjust+0x428/0xc20 fs/xfs/xfs_qm.c:1192 xfs_bulkstat_ag_ichunk fs/xfs/xfs_itable.c:313 [inline] xfs_bulkstat+0x72a/0xf60 fs/xfs/xfs_itable.c:498 xfs_qm_quotacheck+0x223/0x790 fs/xfs/xfs_qm.c:1338 xfs_qm_mount_quotas+0xe9/0x570 fs/xfs/xfs_qm.c:1457 xfs_mountfs+0x18be/0x1f40 fs/xfs/xfs_mount.c:979 XFS (loop2): unknown mount option [nolazytime]. xfs_fs_fill_super+0xb7a/0x1380 fs/xfs/xfs_super.c:1688 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f2e7e5685fa RSP: 002b:00007f2e7cad8f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000bb61 RCX: 00007f2e7e5685fa RDX: 000000002000bb00 RSI: 0000000020000100 RDI: 00007f2e7cad8fe0 RBP: 00007f2e7cad9020 R08: 00007f2e7cad9020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000000002000bb00 R13: 0000000020000100 R14: 00007f2e7cad8fe0 R15: 00000000200001c0 XFS (loop5): Quotacheck: Done. BTRFS info (device loop4): enabling inode map caching syz-executor.5 (9695) used greatest stack depth: 24120 bytes left XFS (loop5): Unmounting Filesystem BTRFS warning (device loop4): excessive commit interval 620990646 bridge0: port 1(bridge_slave_0) entered disabled state BTRFS info (device loop4): force zlib compression bridge0: port 1(bridge_slave_0) entered blocking state bridge0: port 1(bridge_slave_0) entered forwarding state BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents BTRFS error (device loop4): fail to start transaction for status update: -28 XFS (loop1): DAX enabled. Warning: EXPERIMENTAL, use at your own risk XFS (loop1): DAX unsupported by block device. Turning off DAX. XFS (loop1): Mounting V4 Filesystem XFS (loop1): Ending clean mount XFS (loop1): Quotacheck needed: Please wait. XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 fs/xfs/libxfs/xfs_alloc.c:1333 CPU: 0 PID: 9806 Comm: syz-executor.1 Not tainted 4.14.303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 xfs_error_report fs/xfs/xfs_error.c:320 [inline] xfs_error_report+0x98/0xa0 fs/xfs/xfs_error.c:307 xfs_alloc_fixup_trees+0x425/0x4f0 fs/xfs/libxfs/xfs_alloc.c:446 xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 fs/xfs/libxfs/xfs_alloc.c:1333 xfs_alloc_ag_vextent+0x579/0x750 fs/xfs/libxfs/xfs_alloc.c:702 xfs_alloc_vextent+0x10b0/0x2010 fs/xfs/libxfs/xfs_alloc.c:2835 xfs_bmap_btalloc+0x9e5/0x1b20 fs/xfs/libxfs/xfs_bmap.c:3733 xfs_bmap_alloc+0x107/0x160 fs/xfs/libxfs/xfs_bmap.c:3823 xfs_bmapi_allocate fs/xfs/libxfs/xfs_bmap.c:4269 [inline] xfs_bmapi_write+0xa49/0x1d00 fs/xfs/libxfs/xfs_bmap.c:4592 xfs_qm_dqalloc+0x449/0xa20 fs/xfs/xfs_dquot.c:337 xfs_qm_dqtobp+0x926/0xcf0 fs/xfs/xfs_dquot.c:518 xfs_qm_dqread+0x3a3/0xe50 fs/xfs/xfs_dquot.c:629 xfs_qm_dqget+0x4f4/0x19a0 fs/xfs/xfs_dquot.c:837 xfs_qm_quotacheck_dqadjust+0x96/0x5c0 fs/xfs/xfs_qm.c:1077 xfs_qm_dqusage_adjust+0x428/0xc20 fs/xfs/xfs_qm.c:1192 xfs_bulkstat_ag_ichunk fs/xfs/xfs_itable.c:313 [inline] xfs_bulkstat+0x72a/0xf60 fs/xfs/xfs_itable.c:498 xfs_qm_quotacheck+0x223/0x790 fs/xfs/xfs_qm.c:1338 xfs_qm_mount_quotas+0xe9/0x570 fs/xfs/xfs_qm.c:1457 xfs_mountfs+0x18be/0x1f40 fs/xfs/xfs_mount.c:979 xfs_fs_fill_super+0xb7a/0x1380 fs/xfs/xfs_super.c:1688 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fc1670165fa RSP: 002b:00007fc165586f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000bb61 RCX: 00007fc1670165fa RDX: 000000002000bb00 RSI: 0000000020000100 RDI: 00007fc165586fe0 RBP: 00007fc165587020 R08: 00007fc165587020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000000002000bb00 R13: 0000000020000100 R14: 00007fc165586fe0 R15: 00000000200001c0 XFS (loop1): Quotacheck: Done. XFS (loop1): Unmounting Filesystem BTRFS info (device loop4): enabling inode map caching BTRFS warning (device loop4): excessive commit interval 620990646 BTRFS info (device loop4): force zlib compression BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents BTRFS error (device loop4): fail to start transaction for status update: -28 unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1