From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 39CC91E49B; Thu, 13 Jun 2024 12:41:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282507; cv=none; b=hp5TvPDeC9PL18jW8MYGK8yH0Fyk0k5ptwKb/iyueUrJ2/v1jDFSC2kzY94U84f2A+go5gXMpfp1qDZYkI4K9O7aRDW35s1JLAf88P+LEJcUdT+toaBLsVhuT7LFtYGsy0jw+R8te0PMa7FH4c5sA5b6QwxF2EYD82S6ytxm/LA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282507; c=relaxed/simple; bh=2KsMrk4UF91rsJ1ZTzHyjHUkk1ESTlRv3ARHIf0VO9k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JqIue8CbN68RNjNAFCYeBpj91pTAN9y6sCVsq66QKtFjZcf/DMU0aUkN2gN3uRIeXT8jRFpHSnh89RJ7YUIhSRM00KDTn7OKenf3GmjXsp+Pgl0nrNlcZs5+HpZn4w/B2aY3Y+RHmPBhJw2+V3yKLqHJmyVMPI1xHU1ytcQN02k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sFjRhhJ3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sFjRhhJ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3D9FC2BBFC; Thu, 13 Jun 2024 12:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718282507; bh=2KsMrk4UF91rsJ1ZTzHyjHUkk1ESTlRv3ARHIf0VO9k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sFjRhhJ3i+uz0qtZEVRk5lzwePDV/XrasL7zzbj0PwhmGBVMowPrVSzQb15jzpthW D7oX4VYVH/YY4K3Wqv1eNZxWkk0pIOnb2MKK4rFP5ZwYuYftHAw/E6GAIhUQMtf0k4 ZRAQNUfoWfXKY9wj3wE66Q9ISm8YH+vg+DIxsrpw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Masahiro Yamada , "Borislav Petkov (AMD)" , Josh Poimboeuf , Sasha Levin Subject: [PATCH 5.15 283/402] x86/kconfig: Select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y Date: Thu, 13 Jun 2024 13:34:00 +0200 Message-ID: <20240613113313.191455804@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113302.116811394@linuxfoundation.org> References: <20240613113302.116811394@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masahiro Yamada [ Upstream commit 66ee3636eddcc82ab82b539d08b85fb5ac1dff9b ] It took me some time to understand the purpose of the tricky code at the end of arch/x86/Kconfig.debug. Without it, the following would be shown: WARNING: unmet direct dependencies detected for FRAME_POINTER because 81d387190039 ("x86/kconfig: Consolidate unwinders into multiple choice selection") removed 'select ARCH_WANT_FRAME_POINTERS'. The correct and more straightforward approach should have been to move it where 'select FRAME_POINTER' is located. Several architectures properly handle the conditional selection of ARCH_WANT_FRAME_POINTERS. For example, 'config UNWINDER_FRAME_POINTER' in arch/arm/Kconfig.debug. Fixes: 81d387190039 ("x86/kconfig: Consolidate unwinders into multiple choice selection") Signed-off-by: Masahiro Yamada Signed-off-by: Borislav Petkov (AMD) Acked-by: Josh Poimboeuf Link: https://lore.kernel.org/r/20240204122003.53795-1-masahiroy@kernel.org Signed-off-by: Sasha Levin --- arch/x86/Kconfig.debug | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index d4d6db4dde220..5d72d52fbc1b1 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -249,6 +249,7 @@ config UNWINDER_ORC config UNWINDER_FRAME_POINTER bool "Frame pointer unwinder" + select ARCH_WANT_FRAME_POINTERS select FRAME_POINTER help This option enables the frame pointer unwinder for unwinding kernel @@ -272,7 +273,3 @@ config UNWINDER_GUESS overhead. endchoice - -config FRAME_POINTER - depends on !UNWINDER_ORC && !UNWINDER_GUESS - bool -- 2.43.0