===================================== WARNING: bad unlock balance detected! 5.8.0-syzkaller #0 Not tainted ------------------------------------- syz-executor.3/1015 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.3/1015: #0: ffff88810b14c268 (&file->mut){+.+.}-{3:3}, at: ucma_destroy_id+0xd9/0x1a0 drivers/infiniband/core/ucma.c:627 stack backtrace: CPU: 0 PID: 1015 Comm: syz-executor.3 Not tainted 5.8.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+0xb9/0xf1 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+0x1fb/0x2f0 kernel/locking/lockdep.c:5023 __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:00007fd66a619c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd66a61a6d4 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 10c6b2067 P4D 10c6b2067 PUD 10b205067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 1015 Comm: syz-executor.3 Not tainted 5.8.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 80 ac 11 fe 44 8b 15 61 2d 21 02 45 85 d2 75 0a <4d> 3b 76 60 0f 85 e0 07 00 00 bf 01 00 00 00 e8 00 a3 11 fe 49 8d RSP: 0018:ffffc900020f7c60 EFLAGS: 00010246 RAX: 0000000000000286 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00000000000003a7 RDI: ffffffff83e541cb RBP: ffffc900020f7d10 R08: ffffffff811f4ecc R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000020 R15: ffffffff811f4ecc FS: 00007fd66a61a700(0000) GS:ffff88812c000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000080 CR3: 000000010c39e000 CR4: 00000000001506f0 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: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:00007fd66a619c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd66a61a6d4 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 ae7cb97362eef6aa ]--- 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 80 ac 11 fe 44 8b 15 61 2d 21 02 45 85 d2 75 0a <4d> 3b 76 60 0f 85 e0 07 00 00 bf 01 00 00 00 e8 00 a3 11 fe 49 8d RSP: 0018:ffffc900020f7c60 EFLAGS: 00010246 RAX: 0000000000000286 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00000000000003a7 RDI: ffffffff83e541cb RBP: ffffc900020f7d10 R08: ffffffff811f4ecc R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000020 R15: ffffffff811f4ecc FS: 00007fd66a61a700(0000) GS:ffff88812c000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560d8781b520 CR3: 000000010c39e000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400