------------[ cut here ]------------ Looking for class "&ea_inode->i_rwsem" with key ext4_fs_type, but found a different class "&sb->s_type->i_mutex_key" with the same key WARNING: CPU: 1 PID: 9816 at kernel/locking/lockdep.c:941 look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:938 Modules linked in: CPU: 1 PID: 9816 Comm: syz-executor.3 Not tainted 6.4.0-rc2-syzkaller-00001-gc139d578ee6b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/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 : ffff8000218d6900 x29: ffff8000218d6900 x28: dfff800000000000 x27: ffff800008f8127c x26: ffff80001a21a6e0 x25: ffff80001a21a000 x24: 0000000000000000 x23: 0000000000000000 x22: 0000000000000000 x21: ffff800016222d58 x20: ffff0000e6c5f200 x19: ffff800018e56c80 x18: 1ffff0000431ad7c x17: 0000000000000000 x16: ffff8000123804b0 x15: 0000000000000002 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : f7400f5d78b49100 x8 : f7400f5d78b49100 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000218d61f8 x4 : ffff800015f8e880 x3 : ffff80000835b2ac 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 __lock_acquire+0x184/0x75f0 kernel/locking/lockdep.c:4951 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5691 down_write+0x50/0xc0 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:775 [inline] ext4_xattr_inode_update_ref+0xac/0x4e0 fs/ext4/xattr.c:1049 ext4_xattr_inode_dec_ref fs/ext4/xattr.c:1100 [inline] ext4_xattr_set_entry+0x9c0/0x2c3c fs/ext4/xattr.c:1739 ext4_xattr_block_set+0x558/0x2cc4 fs/ext4/xattr.c:1964 ext4_xattr_set_handle+0xb2c/0x12d8 fs/ext4/xattr.c:2448 ext4_xattr_set+0x1e0/0x354 fs/ext4/xattr.c:2550 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x3d8/0x400 fs/xattr.c:201 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:235 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:296 vfs_setxattr+0x1a8/0x344 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x208/0x29c fs/xattr.c:653 path_setxattr+0x17c/0x258 fs/xattr.c:672 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:684 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 10295 hardirqs last enabled at (10295): [] lookup_bh_lru fs/buffer.c:1340 [inline] hardirqs last enabled at (10295): [] __find_get_block+0x1a0/0xe8c fs/buffer.c:1352 hardirqs last disabled at (10294): [] lookup_bh_lru fs/buffer.c:1321 [inline] hardirqs last disabled at (10294): [] __find_get_block+0x68/0xe8c fs/buffer.c:1352 softirqs last enabled at (9066): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (9064): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ======================================================