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 8CE3B360EFA; Thu, 2 Jul 2026 16:31:10 +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=1783009871; cv=none; b=BAhP23pKYBxojg6AIYNMx95Jde2JFZ3Jc6eKoxTRNkK6Xw58sjoLIghnCc4ruwPyoteIjhziFi4efr1Y1pzeejEpEpTMDd5uQj4XbAF+yRqiFWkYvrafSnS3yKU0vkSVxVm7MR4ydQGCV8u3jDimaTJtduul/qoQMtrAEPMTpxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783009871; c=relaxed/simple; bh=GeQ3iUHhjcEy9EVtXbpz5vVYR/Jpbl5EYDWenaxMO3I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fSB/3Gy64/iRCtRj61D/qoo1ldwtxUI378Wt3o4UeRVzQFd8nWIiLhvKX5OF2uBY4Rr+rm8d7L+0yRmNqZClMB6zfX67rDqYJ/5EWPU8Ei2EGPrHdIlxk5pyk2DR5o2TzZRGje9QwcqMJRszSErY7aLN4wgdFBOCDYOxASMbp2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UEF+a+kZ; 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="UEF+a+kZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F221F1F00A3D; Thu, 2 Jul 2026 16:31:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783009870; bh=xkxh+2/ZyrnaEGZ1Kl9q2Z2aPyNxI2hObBe90u8IXs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UEF+a+kZyA/bsnc4U/0Z96E8lFtGtHvta1dA3oJBF5/5ZsgxSUmVgz8ghDuGL41uH f4p8rQIPRhca69aO+8CC1p3U9bw4bE50912ReZL6icCtVdtaY7h2RkWGE+nICEOfok pjkg6dGVTgVIBhc3GIYO+Uxye8k7O3V77NGKKtAk= 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.1 024/129] debugobjects: Use LD_WAIT_CONFIG instead of LD_WAIT_SLEEP Date: Thu, 2 Jul 2026 18:19:03 +0200 Message-ID: <20260702155112.661909669@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260702155112.163984240@linuxfoundation.org> References: <20260702155112.163984240@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.1-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 bb5c909458535b..a7f3c6f15125a9 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -608,10 +608,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