------------[ 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: 2069 at kernel/locking/lockdep.c:938 look_up_lock_class+0xad/0x120 kernel/locking/lockdep.c:938 Modules linked in: CPU: 0 PID: 2069 Comm: syz-executor.0 Not tainted 6.4.0-rc4-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:938 Code: 59 49 8b 14 24 48 81 fa 60 03 1c 85 74 4c 80 3d 00 68 57 01 00 75 43 48 c7 c7 60 43 67 83 c6 05 f0 67 57 01 01 e8 03 5a ea fd <0f> 0b eb 2c 89 74 24 04 e8 36 09 cf fe 8b 74 24 04 48 c7 c7 a0 42 RSP: 0018:ffffc90001dff850 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffffffff865beea0 RCX: 0000000000000000 RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffffffff86ecd421 R08: 0000000000000001 R09: ffff8881f702878b R10: ffffed103ee050f1 R11: 0000000000000001 R12: ffff88812036ef80 R13: ffff88812036ef80 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f3d959d56c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3d95f6e0c0 CR3: 000000012270a000 CR4: 0000000000350ef0 Call Trace: register_lock_class+0xbd/0x1320 kernel/locking/lockdep.c:1290 __lock_acquire+0x12e/0x5da0 kernel/locking/lockdep.c:4965 lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5670 down_write_nested+0x97/0x200 kernel/locking/rwsem.c:1689 swap_inode_boot_loader fs/ext4/ioctl.c:423 [inline] __ext4_ioctl+0x1854/0x40c0 fs/ext4/ioctl.c:1418 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+0x125/0x190 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3d95e52b29 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:00007f3d959d50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f3d95f71f80 RCX: 00007f3d95e52b29 RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000003 RBP: 00007f3d95e9e47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f3d95f71f80 R15: 00007ffeff5658a8