===================================== WARNING: bad unlock balance detected! 5.0.0-rc2-next-20190121 #16 Not tainted ------------------------------------- kworker/u4:6/9007 is trying to release lock (&file->mut) at: [] ucma_event_handler+0x78c/0x1010 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:6/9007: #0: 000000009830a3a9 ((wq_completion)"ib_addr"){+.+.}, at: __write_once_size include/linux/compiler.h:224 [inline] #0: 000000009830a3a9 ((wq_completion)"ib_addr"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 000000009830a3a9 ((wq_completion)"ib_addr"){+.+.}, at: atomic64_set include/generated/atomic-instrumented.h:855 [inline] #0: 000000009830a3a9 ((wq_completion)"ib_addr"){+.+.}, at: atomic_long_set include/generated/atomic-long.h:40 [inline] #0: 000000009830a3a9 ((wq_completion)"ib_addr"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 000000009830a3a9 ((wq_completion)"ib_addr"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 000000009830a3a9 ((wq_completion)"ib_addr"){+.+.}, at: process_one_work+0xbc7/0x1ce0 kernel/workqueue.c:2124 #1: 0000000045913834 ((work_completion)(&(&req->work)->work)){+.+.}, at: process_one_work+0xc1d/0x1ce0 kernel/workqueue.c:2128 #2: 0000000038b09951 (&id_priv->handler_mutex){+.+.}, at: addr_handler+0x10e/0x540 drivers/infiniband/core/cma.c:2972 #3: 00000000c8e00cf2 (&file->mut){+.+.}, at: ucma_event_handler+0x114/0x1010 drivers/infiniband/core/ucma.c:354 stack backtrace: CPU: 0 PID: 9007 Comm: kworker/u4:6 Not tainted 5.0.0-rc2-next-20190121 #16 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+0x1db/0x2d0 lib/dump_stack.c:113 print_unlock_imbalance_bug kernel/locking/lockdep.c:3392 [inline] print_unlock_imbalance_bug.cold+0xd0/0xdf kernel/locking/lockdep.c:3369 __lock_release kernel/locking/lockdep.c:3620 [inline] lock_release+0x77a/0xc40 kernel/locking/lockdep.c:3879 __mutex_unlock_slowpath+0xe9/0x870 kernel/locking/mutex.c:1197 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:713 ucma_event_handler+0x78c/0x1010 drivers/infiniband/core/ucma.c:394 addr_handler+0x429/0x540 drivers/infiniband/core/cma.c:3005 process_one_req+0x190/0x940 drivers/infiniband/core/addr.c:643 process_one_work+0xd0c/0x1ce0 kernel/workqueue.c:2153 worker_thread+0x143/0x14a0 kernel/workqueue.c:2296 kthread+0x357/0x430 kernel/kthread.c:247 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352