------------[ cut here ]------------ Looking for class "&ei->i_data_sem" with key __key.0, but found a different class "&ei->i_data_sem" with the same key WARNING: CPU: 0 PID: 5545 at kernel/locking/lockdep.c:940 look_up_lock_class+0xad/0x120 kernel/locking/lockdep.c:940 Modules linked in: CPU: 0 PID: 5545 Comm: syz-executor204 Not tainted 6.5.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:look_up_lock_class+0xad/0x120 kernel/locking/lockdep.c:940 Code: 59 49 8b 14 24 48 81 fa a0 19 48 90 74 4c 80 3d 36 c1 63 04 00 75 43 48 c7 c7 00 79 6c 8a c6 05 26 c1 63 04 01 e8 03 4d 1b f7 <0f> 0b eb 2c 89 74 24 04 e8 16 57 ea f9 8b 74 24 04 48 c7 c7 40 78 RSP: 0018:ffffc900041ef810 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffffffff9189bdf0 RCX: 0000000000000000 RDX: ffff888027450000 RSI: ffffffff814d3c06 RDI: 0000000000000001 RBP: ffffffff9224c3c1 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888077efbe88 R13: ffff888077efbe88 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555555933380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc80ed310f8 CR3: 000000001a30e000 CR4: 0000000000350ef0 Call Trace: register_lock_class+0xbd/0x1320 kernel/locking/lockdep.c:1292 __lock_acquire+0x13c/0x5de0 kernel/locking/lockdep.c:5021 lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 down_write_nested+0x97/0x200 kernel/locking/rwsem.c:1689 ext4_double_down_write_data_sem+0x67/0x80 fs/ext4/move_extent.c:58 swap_inode_boot_loader fs/ext4/ioctl.c:423 [inline] __ext4_ioctl+0x16ca/0x47d0 fs/ext4/ioctl.c:1427 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc80ecb91e9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 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:00007fff1cb736a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fc80ecb91e9 RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007fff1cb736e0 R09: 00007fff1cb736e0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff1cb736cc R13: 00000000000000ad R14: 431bde82d7b634db R15: 00007fff1cb73700