------------[ cut here ]------------ Looking for class "&ea_inode->i_rwsem" with key ext4_fs_type, but found a different class "&type->i_mutex_dir_key" with the same key WARNING: CPU: 1 PID: 7578 at kernel/locking/lockdep.c:941 look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:938 Modules linked in: CPU: 1 PID: 7578 Comm: syz-executor.3 Not tainted 6.4.0-rc4-syzkaller-g908f31f2a05b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:938 lr : look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:938 sp : ffff8000a4ee6f90 x29: ffff8000a4ee6f90 x28: dfff800000000000 x27: 0000000100000000 x26: ffff80009222c6e0 x25: ffff80009222c000 x24: ffff000116e61bc0 x23: ffff80008de0bf38 x22: 0000000000000000 x21: ffff80008e2331f9 x20: ffff0001186f4000 x19: ffff800090e6bc80 x18: ffff8000a4ee6b00 x17: 0000000000000000 x16: ffff80008a4342bc x15: 0000000000000002 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000040000 x10: 0000000000036654 x9 : c476143f3189fe00 x8 : c476143f3189fe00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a4ee6878 x4 : ffff80008df9ed80 x3 : ffff800080597be8 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:938 register_lock_class+0x8c/0x6a4 kernel/locking/lockdep.c:1290 lockdep_init_map_type+0x348/0x7b8 kernel/locking/lockdep.c:4889 ext4_xattr_inode_set_class fs/ext4/xattr.c:124 [inline] ext4_xattr_inode_iget+0x278/0x4b8 fs/ext4/xattr.c:461 ext4_xattr_inode_dec_ref_all+0x184/0xce4 fs/ext4/xattr.c:1208 ext4_xattr_delete_inode+0x980/0xb1c fs/ext4/xattr.c:2957 ext4_evict_inode+0xbc0/0x10d8 fs/ext4/inode.c:268 evict+0x260/0x68c fs/inode.c:665 iput_final fs/inode.c:1747 [inline] iput+0x734/0x818 fs/inode.c:1773 ext4_process_orphan+0x244/0x2b8 fs/ext4/orphan.c:360 ext4_orphan_cleanup+0x974/0x1134 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5556 [inline] ext4_fill_super+0x4f20/0x5640 fs/ext4/super.c:5672 get_tree_bdev+0x360/0x54c fs/super.c:1303 ext4_get_tree+0x28/0x38 fs/ext4/super.c:5704 vfs_get_tree+0x90/0x274 fs/super.c:1510 do_new_mount+0x25c/0x8c4 fs/namespace.c:3039 path_mount+0x590/0xe04 fs/namespace.c:3369 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3568 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 4247 hardirqs last enabled at (4247): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (4247): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (4246): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (4246): [] _raw_spin_lock_irqsave+0x2c/0x7c kernel/locking/spinlock.c:162 softirqs last enabled at (4098): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (4098): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:600 softirqs last disabled at (4089): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ======================================================