syzbot


WARNING: bad unlock balance in process_one_work
Status: auto-closed as invalid on 2022/01/30 04:00
Reported-by: syzbot+6c44377e21771712be7c@syzkaller.appspotmail.com
First crash: 204d, last: 204d

Sample crash report:
=====================================
WARNING: bad unlock balance detected!
5.15.0-rc7-syzkaller #0 Not tainted
-------------------------------------
kworker/0:10/9554 is trying to release lock ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __asm__ ("" : "=r"(__ptr) : "0"((typeof(*((worker))) *)((worker)))); (typeof((typeof(*((worker))) *)((worker)))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)) at:
[<ffffffff814be4c6>] trace_workqueue_execute_end include/trace/events/workqueue.h:108 [inline]
[<ffffffff814be4c6>] process_one_work+0xa26/0x16b0 kernel/workqueue.c:2302
but there are no more locks to release!

other info that might help us debug this:
1 lock held by kworker/0:10/9554:
 #0: ffff88803b406d38 ((wq_completion)wg-crypt-wg1#11){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff88803b406d38 ((wq_completion)wg-crypt-wg1#11){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff88803b406d38 ((wq_completion)wg-crypt-wg1#11){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff88803b406d38 ((wq_completion)wg-crypt-wg1#11){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline]
 #0: ffff88803b406d38 ((wq_completion)wg-crypt-wg1#11){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline]
 #0: ffff88803b406d38 ((wq_completion)wg-crypt-wg1#11){+.+.}-{0:0}, at: process_one_work+0x8a3/0x16b0 kernel/workqueue.c:2268

stack backtrace:
CPU: 0 PID: 9554 Comm: kworker/0:10 Not tainted 5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: wg-crypt-wg1 wg_packet_decrypt_worker
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_unlock_imbalance_bug include/trace/events/lock.h:58 [inline]
 __lock_release kernel/locking/lockdep.c:5304 [inline]
 lock_release.cold+0x34/0x4e kernel/locking/lockdep.c:5645
 process_one_work+0xa3a/0x16b0 kernel/workqueue.c:2303
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2021/11/01 03:59 net 6de6e46d27ef 098b5d53 .config log report info WARNING: bad unlock balance in process_one_work