===================================== WARNING: bad unlock balance detected! 5.9.0-syzkaller #0 Not tainted ------------------------------------- syz-executor.5/3075 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.5/3075: #0: ffff88810be4b268 (&file->mut){+.+.}-{3:3}, at: ucma_destroy_id+0xd9/0x1a0 drivers/infiniband/core/ucma.c:627 stack backtrace: CPU: 1 PID: 3075 Comm: syz-executor.5 Not tainted 5.9.0-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.64+0xb1/0xb6 kernel/locking/lockdep.c:4890 __lock_release kernel/locking/lockdep.c:5126 [inline] lock_release+0x249/0x310 kernel/locking/lockdep.c:5462 __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:584 ksys_write+0xc3/0xe0 fs/read_write.c:639 __do_sys_write fs/read_write.c:651 [inline] __se_sys_write fs/read_write.c:648 [inline] __x64_sys_write+0x15/0x20 fs/read_write.c:648 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:00007f6aa9465c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6aa94666d4 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: 0000000000000080 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 10bc79067 P4D 10bc79067 PUD 10bf9c067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 3075 Comm: syz-executor.5 Not tainted 5.9.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:938 [inline] RIP: 0010:__mutex_lock+0x5c/0x9f0 kernel/locking/mutex.c:1103 Code: 52 53 89 d3 31 d2 48 83 c4 80 65 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 e8 00 72 0a fe 44 8b 15 91 02 2c 02 45 85 d2 75 0a <4d> 3b 76 60 0f 85 e0 07 00 00 bf 01 00 00 00 e8 80 68 0a fe 49 8d RSP: 0018:ffffc900059cfc60 EFLAGS: 00010246 RAX: 0000000000000286 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00000000000003a7 RDI: ffffffff83e9b65b RBP: ffffc900059cfd10 R08: ffffffff811ee28c R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000020 R15: ffffffff811ee28c FS: 00007f6aa9466700(0000) GS:ffff88812c100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000080 CR3: 000000010bd3b000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 flush_workqueue+0xcc/0x590 kernel/workqueue.c:2783 ucma_destroy_id+0xfc/0x1a0 drivers/infiniband/core/ucma.c:631 ucma_write+0xc5/0x150 drivers/infiniband/core/ucma.c:1768 vfs_write+0xce/0x240 fs/read_write.c:584 ksys_write+0xc3/0xe0 fs/read_write.c:639 __do_sys_write fs/read_write.c:651 [inline] __se_sys_write fs/read_write.c:648 [inline] __x64_sys_write+0x15/0x20 fs/read_write.c:648 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:00007f6aa9465c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6aa94666d4 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: 0000000000000080 ---[ end trace fff9285d9b2cfe97 ]--- RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:938 [inline] RIP: 0010:__mutex_lock+0x5c/0x9f0 kernel/locking/mutex.c:1103 Code: 52 53 89 d3 31 d2 48 83 c4 80 65 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 e8 00 72 0a fe 44 8b 15 91 02 2c 02 45 85 d2 75 0a <4d> 3b 76 60 0f 85 e0 07 00 00 bf 01 00 00 00 e8 80 68 0a fe 49 8d RSP: 0018:ffffc900059cfc60 EFLAGS: 00010246 RAX: 0000000000000286 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00000000000003a7 RDI: ffffffff83e9b65b RBP: ffffc900059cfd10 R08: ffffffff811ee28c R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000020 R15: ffffffff811ee28c FS: 00007f6aa9466700(0000) GS:ffff88812c100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055eb417f8160 CR3: 000000010bd3b000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400