===================================== WARNING: bad unlock balance detected! 4.18.0-rc1+ #108 Not tainted ------------------------------------- kworker/u4:0/7 is trying to release lock (&file->mut) at: [] ucma_event_handler+0x788/0x1000 drivers/infiniband/core/ucma.c:390 but there are no more locks to release! other info that might help us debug this: 4 locks held by kworker/u4:0/7: #0: 000000001ee2aea0 ((wq_completion)"ib_addr"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 000000001ee2aea0 ((wq_completion)"ib_addr"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 000000001ee2aea0 ((wq_completion)"ib_addr"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 000000001ee2aea0 ((wq_completion)"ib_addr"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline] #0: 000000001ee2aea0 ((wq_completion)"ib_addr"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 000000001ee2aea0 ((wq_completion)"ib_addr"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 000000001ee2aea0 ((wq_completion)"ib_addr"){+.+.}, at: process_one_work+0xb44/0x1ba0 kernel/workqueue.c:2124 #1: 00000000cd41c5ba ((work_completion)(&(&req->work)->work)){+.+.}, at: process_one_work+0xb9b/0x1ba0 kernel/workqueue.c:2128 #2: 00000000d06aca9a (&id_priv->handler_mutex){+.+.}, at: addr_handler+0xa6/0x3d0 drivers/infiniband/core/cma.c:2823 #3: 000000001772e5f5 (&file->mut){+.+.}, at: ucma_event_handler+0x116/0x1000 drivers/infiniband/core/ucma.c:350 stack backtrace: CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 4.18.0-rc1+ #108 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+0x1c9/0x2b4 lib/dump_stack.c:113 print_unlock_imbalance_bug.cold.51+0xcc/0xd8 kernel/locking/lockdep.c:3488 __lock_release kernel/locking/lockdep.c:3695 [inline] lock_release+0x78e/0xa30 kernel/locking/lockdep.c:3943 __mutex_unlock_slowpath+0x102/0x8c0 kernel/locking/mutex.c:1019 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:615 ucma_event_handler+0x788/0x1000 drivers/infiniband/core/ucma.c:390 addr_handler+0x2bd/0x3d0 drivers/infiniband/core/cma.c:2847 process_one_req+0x1a6/0x940 drivers/infiniband/core/addr.c:572 process_one_work+0xc73/0x1ba0 kernel/workqueue.c:2153 worker_thread+0x189/0x13c0 kernel/workqueue.c:2296 kthread+0x345/0x410 kernel/kthread.c:240 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412