bisecting fixing commit since c7ecf3e3a71c216327980f26b1e895ce9b07ad31 building syzkaller on 25a0186eba20ef6f4f657039ff02eff52a838b1c testing commit c7ecf3e3a71c216327980f26b1e895ce9b07ad31 with gcc (GCC) 8.1.0 kernel signature: dc3d0b54a7258f8696e8904b21995792f766d28089b10e4bed310f4e477dd8dc all runs: crashed: WARNING: bad unlock balance in ucma_event_handler testing current HEAD a39e75458e1ceb7fefaa3a0bd9df21558713cf0d testing commit a39e75458e1ceb7fefaa3a0bd9df21558713cf0d with gcc (GCC) 8.1.0 kernel signature: 92ea2901bcbbc5bd96630f246d292e941368c14656c3c9850c9c3b73697ed5bd run #0: crashed: WARNING: bad unlock balance in ucma_event_handler run #1: crashed: WARNING: bad unlock balance in ucma_event_handler run #2: crashed: WARNING: bad unlock balance in ucma_event_handler run #3: crashed: WARNING: bad unlock balance in ucma_event_handler run #4: crashed: WARNING: bad unlock balance in ucma_event_handler run #5: crashed: WARNING: bad unlock balance in ucma_event_handler run #6: crashed: WARNING: bad unlock balance in ucma_event_handler run #7: crashed: WARNING: bad unlock balance in ucma_event_handler run #8: crashed: WARNING: bad unlock balance in ucma_event_handler run #9: boot failed: can't ssh into the instance revisions tested: 2, total time: 31m20.720236864s (build: 16m36.276468845s, test: 13m47.13929356s) the crash still happens on HEAD commit msg: Linux 4.19.130 crash: WARNING: bad unlock balance in ucma_event_handler IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready 8021q: adding VLAN 0 to HW filter on device batadv0 ===================================== WARNING: bad unlock balance detected! 4.19.130-syzkaller #0 Not tainted ------------------------------------- kworker/u4:2/7472 is trying to release lock (&file->mut) at: [] ucma_event_handler+0x6c7/0x1020 drivers/infiniband/core/ucma.c:396 but there are no more locks to release! other info that might help us debug this: 4 locks held by kworker/u4:2/7472: #0: 000000009d3f3d65 ((wq_completion)"ib_addr"){+.+.}, at: __write_once_size include/linux/compiler.h:220 [inline] #0: 000000009d3f3d65 ((wq_completion)"ib_addr"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 000000009d3f3d65 ((wq_completion)"ib_addr"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 000000009d3f3d65 ((wq_completion)"ib_addr"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline] #0: 000000009d3f3d65 ((wq_completion)"ib_addr"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 000000009d3f3d65 ((wq_completion)"ib_addr"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 000000009d3f3d65 ((wq_completion)"ib_addr"){+.+.}, at: process_one_work+0x762/0x1670 kernel/workqueue.c:2126 #1: 00000000ada628df ((work_completion)(&(&req->work)->work)){+.+.}, at: process_one_work+0x792/0x1670 kernel/workqueue.c:2130 #2: 00000000e6d42dd8 (&id_priv->handler_mutex){+.+.}, at: addr_handler+0xac/0x300 drivers/infiniband/core/cma.c:2875 #3: 000000009aa66e20 (&file->mut){+.+.}, at: ucma_event_handler+0xa8/0x1020 drivers/infiniband/core/ucma.c:356 stack backtrace: CPU: 0 PID: 7472 Comm: kworker/u4:2 Not tainted 4.19.130-syzkaller #0 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+0x123/0x177 lib/dump_stack.c:118 print_unlock_imbalance_bug.cold.50+0x114/0x123 kernel/locking/lockdep.c:3468 __lock_release kernel/locking/lockdep.c:3678 [inline] lock_release+0x685/0x850 kernel/locking/lockdep.c:3926 __mutex_unlock_slowpath+0x8e/0x6a0 kernel/locking/mutex.c:1197 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:713 ucma_event_handler+0x6c7/0x1020 drivers/infiniband/core/ucma.c:396 addr_handler+0x23d/0x300 drivers/infiniband/core/cma.c:2908 process_one_req+0xd4/0x5b0 drivers/infiniband/core/addr.c:569 process_one_work+0x830/0x1670 kernel/workqueue.c:2155 worker_thread+0x85/0xb60 kernel/workqueue.c:2298 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415