------------[ 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: 0 PID: 7898 at kernel/locking/lockdep.c:931 look_up_lock_class+0x133/0x140 kernel/locking/lockdep.c:931 Modules linked in: CPU: 0 UID: 0 PID: 7898 Comm: syz-executor.1 Not tainted 6.11.0-rc6-syzkaller-gd1f2d51b711a #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:look_up_lock_class+0x133/0x140 kernel/locking/lockdep.c:931 Code: c7 c7 20 d6 4c 8b e8 6c 30 37 f6 90 0f 0b 90 90 90 31 db eb be c6 05 70 29 e6 04 01 90 48 c7 c7 40 d9 4c 8b e8 4e 30 37 f6 90 <0f> 0b 90 90 e9 62 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90022266f48 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffffffff96966b60 RCX: ffffffff814e1d09 RDX: ffff8880238e8000 RSI: ffffffff814e1d16 RDI: 0000000000000001 RBP: ffffffff8e089ff8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 000000006b6f6f4c R12: ffff88804501f1a0 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff9a31f160 FS: 00007f5eafe7d6c0(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c001599000 CR3: 0000000034e96000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: register_lock_class+0xb1/0x1230 kernel/locking/lockdep.c:1283 __lock_acquire+0x135/0x3cb0 kernel/locking/lockdep.c:5019 lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 down_write+0x93/0x200 kernel/locking/rwsem.c:1579 inode_lock include/linux/fs.h:800 [inline] ext4_xattr_inode_update_ref+0xa6/0x5e0 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:1589 [inline] ext4_xattr_inode_lookup_create+0x823/0x1980 fs/ext4/xattr.c:1574 ext4_xattr_block_set+0x782/0x3170 fs/ext4/xattr.c:1916 ext4_xattr_set_handle+0xd73/0x1420 fs/ext4/xattr.c:2458 ext4_xattr_set+0x149/0x380 fs/ext4/xattr.c:2560 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:200 __vfs_setxattr_noperm+0x127/0x660 fs/xattr.c:234 __vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295 vfs_setxattr+0x146/0x350 fs/xattr.c:321 do_setxattr+0x146/0x170 fs/xattr.c:629 path_setxattr+0x221/0x280 fs/xattr.c:658 __do_sys_setxattr fs/xattr.c:676 [inline] __se_sys_setxattr fs/xattr.c:672 [inline] __x64_sys_setxattr+0xc4/0x160 fs/xattr.c:672 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5eaf07de69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5eafe7d0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f5eaf1ac050 RCX: 00007f5eaf07de69 RDX: 00000000200005c0 RSI: 0000000020000180 RDI: 00000000200000c0 RBP: 00007f5eaf0ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f5eaf1ac050 R15: 00007ffd2f91b198