lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <74947f7f132a811cc951749907b01bd25dcf23e6.1721135509.git.geert+renesas@glider.be>
Date: Tue, 16 Jul 2024 15:12:14 +0200
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Bjorn Andersson <andersson@...nel.org>,
	Konrad Dybcio <konrad.dybcio@...aro.org>,
	Andrew Halaney <ahalaney@...hat.com>,
	Elliot Berman <quic_eberman@...cinc.com>,
	Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Cc: linux-arm-msm@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH] firmware: qcom: QCOM_TZMEM_* should depend on QCOM_TZMEM

The Qualcomm TrustZone interface memory allocator is specific to
Qualcomm firmware.  Hence add a dependency on QCOM_TZMEM, to prevent
asking the user about these options when configuring a kernel without
Qualcomm firmware support.  Various Qualcomm drivers already select the
main QCOM_SCM gatekeeper symbol, which in turn selects QCOM_TZMEM, so it
is auto-enabled when needed.

While at it, add "Qualcomm" to the one-line summary for the choice
option, to make it clear this is not related to generic TrustZone
support.

Fixes: 84f5a7b67b61bfeb ("firmware: qcom: add a dedicated TrustZone buffer allocator")
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
---
 drivers/firmware/qcom/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/firmware/qcom/Kconfig b/drivers/firmware/qcom/Kconfig
index 7f6eb41747346a4f..c607574397e9a7e7 100644
--- a/drivers/firmware/qcom/Kconfig
+++ b/drivers/firmware/qcom/Kconfig
@@ -15,7 +15,8 @@ config QCOM_TZMEM
 	select GENERIC_ALLOCATOR
 
 choice
-	prompt "TrustZone interface memory allocator mode"
+	prompt "Qualcomm TrustZone interface memory allocator mode"
+	depends on QCOM_TZMEM
 	default QCOM_TZMEM_MODE_GENERIC
 	help
 	  Selects the mode of the memory allocator providing memory buffers of
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ