===================================== WARNING: bad unlock balance detected! 5.9.0-rc5-syzkaller #0 Not tainted ------------------------------------- syz-executor.0/9473 is trying to release lock (&file->mut) at: [] ucma_destroy_id+0xec/0x1a0 drivers/infiniband/core/ucma.c:629 but there are no more locks to release! other info that might help us debug this: 1 lock held by syz-executor.0/9473: #0: ffff88810b61f868 (&file->mut){+.+.}-{3:3}, at: ucma_destroy_id+0xd9/0x1a0 drivers/infiniband/core/ucma.c:627 stack backtrace: CPU: 0 PID: 9473 Comm: syz-executor.0 Not tainted 5.9.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xa9/0xd1 lib/dump_stack.c:118 print_unlock_imbalance_bug.cold.57+0xb1/0xb6 kernel/locking/lockdep.c:4479 __lock_release kernel/locking/lockdep.c:4715 [inline] lock_release+0x18b/0x2e0 kernel/locking/lockdep.c:5026 __mutex_unlock_slowpath+0x43/0x2d0 kernel/locking/mutex.c:1228 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:740 ucma_destroy_id+0xec/0x1a0 drivers/infiniband/core/ucma.c:629 ucma_write+0xc5/0x150 drivers/infiniband/core/ucma.c:1768 vfs_write+0xce/0x240 fs/read_write.c:576 ksys_write+0xc3/0xe0 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __x64_sys_write+0x15/0x20 fs/read_write.c:640 do_syscall_64+0x31/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c4c9 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa92e480c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa92e4816d4 RCX: 000000000045c4c9 RDX: 0000000000000018 RSI: 0000000020000200 RDI: 0000000000000006 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cb7 R14: 00000000004d7b90 R15: 000000000076bf2c BUG: kernel NULL pointer dereference, address: 0000000000000108 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 10b687067 P4D 10b687067 PUD 11d462067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 9473 Comm: syz-executor.0 Not tainted 5.9.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ucma_destroy_id+0xf0/0x1a0 drivers/infiniband/core/ucma.c:631 Code: 9d 4f 84 e8 02 63 9f 00 48 8b 7b 70 31 f6 e8 47 25 9f 00 48 8b 7b 70 c7 83 3c 01 00 00 01 00 00 00 e8 c4 0e 9f 00 48 8b 43 70 <48> 8b b8 08 01 00 00 e8 64 63 ae fe 48 c7 c7 00 9d 4f 84 e8 b8 60 RSP: 0018:ffffc90003017e30 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88810b61f000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000282 RBP: ffffc90003017e68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000033373439 R11: 0000000000000000 R12: ffffffffffffffea R13: ffff88810b61f800 R14: ffff88812af3fcc0 R15: 0000000000000000 FS: 00007fa92e481700(0000) GS:ffff88812c000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000108 CR3: 000000010ad8a000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ucma_write+0xc5/0x150 drivers/infiniband/core/ucma.c:1768 vfs_write+0xce/0x240 fs/read_write.c:576 ksys_write+0xc3/0xe0 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __x64_sys_write+0x15/0x20 fs/read_write.c:640 do_syscall_64+0x31/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c4c9 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa92e480c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa92e4816d4 RCX: 000000000045c4c9 RDX: 0000000000000018 RSI: 0000000020000200 RDI: 0000000000000006 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cb7 R14: 00000000004d7b90 R15: 000000000076bf2c Modules linked in: CR2: 0000000000000108 ---[ end trace d7dbedd368af72cc ]--- RIP: 0010:ucma_destroy_id+0xf0/0x1a0 drivers/infiniband/core/ucma.c:631 Code: 9d 4f 84 e8 02 63 9f 00 48 8b 7b 70 31 f6 e8 47 25 9f 00 48 8b 7b 70 c7 83 3c 01 00 00 01 00 00 00 e8 c4 0e 9f 00 48 8b 43 70 <48> 8b b8 08 01 00 00 e8 64 63 ae fe 48 c7 c7 00 9d 4f 84 e8 b8 60 RSP: 0018:ffffc90003017e30 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88810b61f000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000282 RBP: ffffc90003017e68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000033373439 R11: 0000000000000000 R12: ffffffffffffffea R13: ffff88810b61f800 R14: ffff88812af3fcc0 R15: 0000000000000000 FS: 00007fa92e481700(0000) GS:ffff88812c000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87c31d1000 CR3: 000000010ad8a000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400