===================================== WARNING: bad unlock balance detected! 5.1.0-rc3+ #51 Not tainted ------------------------------------- kworker/u4:9/20751 is trying to release lock (&file->mut) at: [] ucma_event_handler+0x711/0xef0 drivers/infiniband/core/ucma.c:394 but there are no more locks to release! other info that might help us debug this: 4 locks held by kworker/u4:9/20751: #0: 00000000660a09d2 ((wq_completion)ib_addr){+.+.}, at: __write_once_size include/linux/compiler.h:220 [inline] #0: 00000000660a09d2 ((wq_completion)ib_addr){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000660a09d2 ((wq_completion)ib_addr){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: 00000000660a09d2 ((wq_completion)ib_addr){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: 00000000660a09d2 ((wq_completion)ib_addr){+.+.}, at: set_work_data kernel/workqueue.c:619 [inline] #0: 00000000660a09d2 ((wq_completion)ib_addr){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:646 [inline] #0: 00000000660a09d2 ((wq_completion)ib_addr){+.+.}, at: process_one_work+0x87e/0x1790 kernel/workqueue.c:2240 #1: 00000000425b6da5 ((work_completion)(&(&req->work)->work)){+.+.}, at: process_one_work+0x8b4/0x1790 kernel/workqueue.c:2244 #2: 00000000363ab49e (&id_priv->handler_mutex){+.+.}, at: addr_handler+0xaf/0x3d0 drivers/infiniband/core/cma.c:3006 #3: 000000000f7bc3d4 (&file->mut){+.+.}, at: ucma_event_handler+0xb3/0xef0 drivers/infiniband/core/ucma.c:354 stack backtrace: CPU: 0 PID: 20751 Comm: kworker/u4:9 Not tainted 5.1.0-rc3+ #51 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: ib_addr process_one_req Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_unlock_imbalance_bug kernel/locking/lockdep.c:3754 [inline] print_unlock_imbalance_bug.cold+0x114/0x123 kernel/locking/lockdep.c:3731 __lock_release kernel/locking/lockdep.c:3970 [inline] lock_release+0x67e/0xa00 kernel/locking/lockdep.c:4230 __mutex_unlock_slowpath+0x8e/0x6b0 kernel/locking/mutex.c:1197 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:713 ucma_event_handler+0x711/0xef0 drivers/infiniband/core/ucma.c:394 addr_handler+0x2ee/0x3d0 drivers/infiniband/core/cma.c:3039 process_one_req+0x109/0x680 drivers/infiniband/core/addr.c:643 process_one_work+0x98e/0x1790 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x357/0x430 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352