From 0f03a8aecee85456f149310208c7e105a49c9391 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 22 Aug 2021 12:26:42 +0200 Subject: [PATCH] Kernel: Add VERIFY(!m_in_block) when entering Thread::block() --- Kernel/Thread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 608483ae1d..8db75a7379 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -855,6 +855,7 @@ public: SpinlockLocker block_lock(m_block_lock); // We need to hold m_block_lock so that nobody can unblock a blocker as soon // as it is constructed and registered elsewhere + VERIFY(!m_in_block); m_in_block = true; BlockerType blocker(forward(args)...);