------------[ 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: 6346 at kernel/locking/lockdep.c:938 look_up_lock_class+0xac/0x130 kernel/locking/lockdep.c:938 Modules linked in: CPU: 1 PID: 6346 Comm: syz-executor.1 Not tainted 6.3.0-next-20230505-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:look_up_lock_class+0xac/0x130 kernel/locking/lockdep.c:938 Code: 39 48 8b 55 00 48 81 fa 20 c8 16 90 74 2c 80 3d 62 ac 55 04 00 75 23 48 c7 c7 20 72 4c 8a c6 05 52 ac 55 04 01 e8 c4 d9 3c f7 <0f> 0b eb 0c e8 ab 91 00 fa 85 c0 75 48 45 31 e4 48 83 c4 08 4c 89 RSP: 0018:ffffc9000357ee08 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffffffff8ca21f78 RCX: 0000000000000000 RDX: ffff888027009dc0 RSI: ffffffff814c0497 RDI: 0000000000000001 RBP: ffff8880705cc000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff9156f320 R13: 0000000000000000 R14: ffff8880705cc000 R15: 0000000000000000 FS: 00007f5655e54700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffada35e718 CR3: 0000000027dd7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: register_lock_class+0xbe/0x1120 kernel/locking/lockdep.c:1290 __lock_acquire+0x10d/0x5f30 kernel/locking/lockdep.c:4965 lock_acquire.part.0+0x11c/0x370 kernel/locking/lockdep.c:5705 down_write+0x92/0x200 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:775 [inline] ext4_xattr_inode_update_ref+0x88/0x580 fs/ext4/xattr.c:1058 ext4_xattr_inode_inc_ref fs/ext4/xattr.c:1104 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1596 [inline] ext4_xattr_set_entry+0x216f/0x39e0 fs/ext4/xattr.c:1736 ext4_xattr_block_set+0xcb7/0x3030 fs/ext4/xattr.c:2042 ext4_xattr_set_handle+0xd8a/0x1510 fs/ext4/xattr.c:2457 ext4_xattr_set+0x144/0x360 fs/ext4/xattr.c:2559 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:201 __vfs_setxattr_noperm+0x129/0x5f0 fs/xattr.c:235 __vfs_setxattr_locked+0x1d3/0x260 fs/xattr.c:296 vfs_setxattr+0x143/0x340 fs/xattr.c:322 do_setxattr+0x147/0x190 fs/xattr.c:630 setxattr+0x146/0x160 fs/xattr.c:653 path_setxattr+0x197/0x1c0 fs/xattr.c:672 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __x64_sys_setxattr+0xc4/0x160 fs/xattr.c:684 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f565508c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5655e54168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f56551ac050 RCX: 00007f565508c169 RDX: 00000000200005c0 RSI: 0000000020000180 RDI: 00000000200000c0 RBP: 00007f56550e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1a86b1df R14: 00007f5655e54300 R15: 0000000000022000