===================================== WARNING: bad unlock balance detected! 4.19.211-syzkaller #0 Not tainted ------------------------------------- syz-executor362/8161 is trying to release lock (&file->mut) at: [] ucma_destroy_id+0x221/0x4a0 drivers/infiniband/core/ucma.c:631 but there are no more locks to release! other info that might help us debug this: 1 lock held by syz-executor362/8161: #0: 000000004aad7ca1 (&file->mut){+.+.}, at: ucma_destroy_id+0x1c2/0x4a0 drivers/infiniband/core/ucma.c:629 stack backtrace: CPU: 1 PID: 8161 Comm: syz-executor362 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_unlock_imbalance_bug kernel/locking/lockdep.c:149 [inline] __lock_release kernel/locking/lockdep.c:3679 [inline] lock_release.cold+0xe/0x4a kernel/locking/lockdep.c:3927 __mutex_unlock_slowpath+0x89/0x610 kernel/locking/mutex.c:1203 ucma_destroy_id+0x221/0x4a0 drivers/infiniband/core/ucma.c:631 ucma_write+0x288/0x350 drivers/infiniband/core/ucma.c:1738 __vfs_write+0xf7/0x770 fs/read_write.c:485 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc90e5c9a39 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007fc90e55a308 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc90e651418 RCX: 00007fc90e5c9a39 RDX: 0000000000000018 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007fc90e651410 R08: 00007fc90e55a700 R09: 0000000000000000 R10: 00007fc90e55a700 R11: 0000000000000246 R12: 00007fc90e65141c R13: 00007fc90e61f074 R14: 006d635f616d6472 R15: 0000000000022000