loop0: detected capacity change from 0 to 512 ------------[ 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: 25725 at kernel/locking/lockdep.c:943 look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:940 Modules linked in: CPU: 1 PID: 25725 Comm: syz-executor.0 Not tainted 6.5.0-rc1-syzkaller-00006-g3f01e9fed845 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:940 lr : look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:940 sp : ffff8000988668e0 x29: ffff8000988668e0 x28: dfff800000000000 x27: ffff70001310cda0 x26: ffff800091e156e0 x25: ffff800091e15000 x24: 0000000000000000 x23: ffff70001310cd58 x22: 0000000000000000 x21: ffff80008e086978 x20: ffff0000e4b1f200 x19: ffff800090a36bc0 x18: 1ffff0001310cd7c x17: 0000000000000000 x16: ffff80008a46b170 x15: 0000000000000001 x14: 1fffe0003685922a x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000000000 x9 : 6a8f4a707da37000 x8 : 6a8f4a707da37000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000988661d8 x4 : ffff80008ddeef00 x3 : ffff80008059ebe0 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: look_up_lock_class+0xec/0x158 kernel/locking/lockdep.c:940 register_lock_class+0x8c/0x6ac kernel/locking/lockdep.c:1292 __lock_acquire+0x184/0x75e8 kernel/locking/lockdep.c:5021 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5761 down_write+0x50/0xc0 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:771 [inline] ext4_xattr_inode_update_ref+0xac/0x4e0 fs/ext4/xattr.c:1042 ext4_xattr_inode_inc_ref fs/ext4/xattr.c:1088 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1579 [inline] ext4_xattr_set_entry+0x254c/0x2d7c fs/ext4/xattr.c:1719 ext4_xattr_block_set+0x54c/0x2c64 fs/ext4/xattr.c:1956 ext4_xattr_set_handle+0xb2c/0x12d8 fs/ext4/xattr.c:2442 ext4_xattr_set+0x1e0/0x354 fs/ext4/xattr.c:2544 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/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: 8801 hardirqs last enabled at (8801): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:240 hardirqs last disabled at (8800): [] kasan_quarantine_put+0x38/0x1c8 mm/kasan/quarantine.c:213 softirqs last enabled at (8668): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (8666): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ======================================================