From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383123; b=01bomyaPPP6MJ4hhxl8O9zSQLJp3J2vWUyXzhaVdcnmI6eXIdXKd+04Hff3tEiFUKeKl FydDqv0vKfcdCiwjJc2xGUIy41VYLnh0cPilcJ/+ANoYEWZIiEakkMMnM1pQo1RArbVyL F3GbxzG4fnN54r7TtwPpE0lAGQt9k1+eV8I79uQhm7y2KmqjXCWqFznnv/1056dYal8/E CYqd/jJzVTBEslvRaq3b+kazMiE6BmpRRobA1EKvCoy8sQFE5lvPJeCh3kkqWXh5d2yfC SZrBHlU64JSA3uBcC/D08Mju5woBtWv1l1ZTrfLPPHb4LytI+VPxaDg3ic9fmGDYZ3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383123; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=SDQbzlYRXSvqToiYX1TBCrhZlDa6QmrXgWvUss1MxPQ=; b=csFvLWLf8TZiypO/Zo2MJUR02Ls2c5c9XJesyO0l4fT+BPXZM2ulQqx5vnxU2xddh+FX T8sOZH+kePyfp81hGOyEgCrrSG0fxh5sC61LSOuSz/B+dZuZCTQtJgdUxaJ5r+kxRV0YA waGtE5rzbZbWBL+n+jyM9RpMc0YaVeWRq7JDFohqFZbunYYvRhNngmMOh77vLqY1fYjr3 bky8YxGACNUT6fyb5JLNWbF6SJrHhgnPRAfUxNWYf8oIPr4y4r4t/DdVgVNcQY3x24Ugo guhneUjwuXAddRoBzxIRDOC4ye/chW20XyN1V467g14SKIa9FiIKyvLtbv/NDjbZKCQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=A8z+M511; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F25D606A322; Fri, 4 Dec 2026 11:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=A8z+M511 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B7FD1F000C2; Fri, 4 Dec 2026 11:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383122; bh=SDQbzlYRXSvqToiYX1TBCrhZlDa6QmrXgWvUss1MxPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=A8z+M511SJ96VoFGkwfyG9lTmfIJLY/wUFTyJLaxYd2VOZIYruhPrH1Sd97hpiiJ0 9sBLBhX/zEdSAM9FgJvS+d3QSMhywBr84LPr6KEYmMPOyLXVcyFWUO88BVl7HRqjEw KQXCWxW7Q9wAcX2Wrj2GtzaGHb30OvrTgjg3DTwU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Masami Hiramatsu (Google)" , Sasha Levin Subject: [PATCH 6.12 087/555] jump_label: Define guard() for jump_label_lock Date: Fri, 4 Dec 2026 19:02:10 +0900 Message-ID: <20261204100610.448736983@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masami Hiramatsu (Google) [ Upstream commit e2b6e5e4877ac898b61338dc20491cd837af79b2 ] Link: https://lore.kernel.org/all/173371207108.480397.12818384744149153972.stgit@devnote2/ Signed-off-by: Masami Hiramatsu (Google) Stable-dep-of: f60f98881b54 ("kprobes: Switch ftrace ops when adding probe with post_handler") Signed-off-by: Sasha Levin --- include/linux/jump_label.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index f5a2727ca4a9a..fdb79dd1ebd8c 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h @@ -75,6 +75,7 @@ #include #include +#include extern bool static_key_initialized; @@ -347,6 +348,8 @@ static inline void static_key_disable(struct static_key *key) #endif /* CONFIG_JUMP_LABEL */ +DEFINE_LOCK_GUARD_0(jump_label_lock, jump_label_lock(), jump_label_unlock()) + #define STATIC_KEY_INIT STATIC_KEY_INIT_FALSE #define jump_label_enabled static_key_enabled -- 2.53.0