------------[ 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: 12661 at kernel/locking/lockdep.c:938 look_up_lock_class+0xac/0x130 kernel/locking/lockdep.c:938 Modules linked in: CPU: 1 PID: 12661 Comm: syz-executor.4 Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:look_up_lock_class+0xac/0x130 kernel/locking/lockdep.c:938 Code: 39 48 8b 55 00 48 81 fa 20 28 17 90 74 2c 80 3d fa 7a 54 04 00 75 23 48 c7 c7 40 6a 4c 8a c6 05 ea 7a 54 04 01 e8 34 0f 3b f7 <0f> 0b eb 0c e8 5b e5 fe f9 85 c0 75 48 45 31 e4 48 83 c4 08 4c 89 RSP: 0018:ffffc90005d76e08 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffffffff8ca23078 RCX: 0000000000000000 RDX: ffff888026f78000 RSI: ffffffff814bd247 RDI: 0000000000000001 RBP: ffff8880706bc000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff91575020 R13: 0000000000000000 R14: ffff8880706bc000 R15: 0000000000000000 FS: 00007f3806512700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe9bf4b1500 CR3: 000000002b6fa000 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_dec_ref fs/ext4/xattr.c:1109 [inline] ext4_xattr_set_entry+0xa95/0x39e0 fs/ext4/xattr.c:1748 ext4_xattr_block_set+0x618/0x3030 fs/ext4/xattr.c:1973 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:0x7f380588c169 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:00007f3806512168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f38059abf80 RCX: 00007f380588c169 RDX: 00000000200005c0 RSI: 0000000020000180 RDI: 0000000020000080 RBP: 00007f38058e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdcaaf129f R14: 00007f3806512300 R15: 0000000000022000