From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2390930C158; Thu, 2 Jul 2026 16:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783010331; cv=none; b=GknJ3mwh2bwT8JUzmtqsHtruHQxBrIH+mbbLsPmzjX95GnWImmmtqfRT6If11mSLR/aAOLNUrao0kPXQ4YZyxyUdonWdtXHrB5CptDMZBG+ax+PqGc4RS7U277uhH8AYs36kKZOfrgrxIITNpS7MRoqk/8hfkuOv+cHdovxvY08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783010331; c=relaxed/simple; bh=tWsJsgkgbg11hvjMQCZG055HXRo1hd0+ZQhd+NqGsB0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DVh15sKIic5+w1Ev0chD92421g0mAwUZriml4uY8SJGBEt+BPgzjFckzaJ8B13Eo/aBJ0M4dwHDSeoC0cM9ovuTjIPNzWtgy6Jc22BwT5FuqJ3KnkS7WVF07im2jmBzJU4ptRRn0xgOY7+nDoGKyJQzMSIUOXlcBvf8/NBjjZbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L29Tg/Sa; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L29Tg/Sa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 808AD1F00ADE; Thu, 2 Jul 2026 16:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783010330; bh=gtlsiCCiUV515hvlv08TiMW6mplICg8UhCufJJDVGNc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=L29Tg/Saa4qBAvwF3d0BohvkucGcvl33cr2MQUJ7SGrjv/lE0Ou5FAGrsuFO+++WU aZGlqM/uA77H1uUJRuZ9JFnGFhySShZfM3MWE19H/gYq2df5BadFT3IlQVcWONUj87 UxH/Dd8TPD5hNK0K81JSv5w7MNxeAtIQdaKdGHn8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sebastian Andrzej Siewior , Thomas Gleixner , Sasha Levin Subject: [PATCH 6.12 024/204] debugobjects: Use LD_WAIT_CONFIG instead of LD_WAIT_SLEEP Date: Thu, 2 Jul 2026 18:18:01 +0200 Message-ID: <20260702155119.169457217@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260702155118.667618796@linuxfoundation.org> References: <20260702155118.667618796@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sebastian Andrzej Siewior commit 37de2dbc318ee10577c1c2704de5a803e75e55a2 upstream. fill_pool_map is used to suppress nesting violations caused by acquiring a spinlock_t (from within the memory allocator) while holding a raw_spinlock_t. The used annotation is wrong. LD_WAIT_SLEEP is for always sleeping lock types such as mutex_t. LD_WAIT_CONFIG is for lock type which are sleeping while spinning on PREEMPT_RT such as spinlock_t. Use LD_WAIT_CONFIG as override. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20251127153652.291697-3-bigeasy@linutronix.de Signed-off-by: Sasha Levin --- lib/debugobjects.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/debugobjects.c b/lib/debugobjects.c index d69721bb78b797..628fe54d927ecb 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -607,10 +607,10 @@ static void debug_objects_fill_pool(void) if (!IS_ENABLED(CONFIG_PREEMPT_RT) || preemptible() || system_state < SYSTEM_SCHEDULING) { /* * Annotate away the spinlock_t inside raw_spinlock_t warning - * by temporarily raising the wait-type to WAIT_SLEEP, matching + * by temporarily raising the wait-type to LD_WAIT_CONFIG, matching * the preemptible() condition above. */ - static DEFINE_WAIT_OVERRIDE_MAP(fill_pool_map, LD_WAIT_SLEEP); + static DEFINE_WAIT_OVERRIDE_MAP(fill_pool_map, LD_WAIT_CONFIG); lock_map_acquire_try(&fill_pool_map); fill_pool(); lock_map_release(&fill_pool_map); -- 2.53.0