From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) (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 F0B2E230BEC for ; Tue, 30 Dec 2025 14:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767104444; cv=none; b=NXECHPby6q1Anx+p/CmHm3x1+vwA0OPhY2ttmYqZy4RkDgW9jFpHFDX29aq9fMti3REFRFY0xw4s9AyB3uAGyc7e9ArJdCDhxqFiYz79UOYZaidYoxdf9QJEuNkXrIxJGfA6kMCeruOBfEbQXclCyf63teAwepbdf9miEKBDkgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767104444; c=relaxed/simple; bh=EFu5zNDoV+FkhJc8EAZtwwzC0eKLDKTw9Xn619BKcdo=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=gcQ1JhYTf5bOxsN/+4Ic522u78e1o9IRUwSVU2ddFdjafhIVWkBiGt0uTzIZrYwW2P4Mh2bJmaLVpsu+6GZwTJljfKYsx3hhTSGZ4bhD2XoaTxXHsMenRDnVN/d5M6I6wlJ6O7iVOkRSJiOCcpDvwnq5Q/k4pn8fWNpdwG2wXs0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=TmJ8ULiJ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=B7ve9oP1; arc=none smtp.client-ip=202.12.124.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="TmJ8ULiJ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="B7ve9oP1" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 0BEFF7A0120; Tue, 30 Dec 2025 09:20:41 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Tue, 30 Dec 2025 09:20:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1767104440; x=1767190840; bh=j797tkRG/meb+wTyJA6C1cS77dXDDaZhFKPILW7Z/3E=; b= TmJ8ULiJvmNIrsm7/GvtPwWVBEZXe/TT6NFuBmOQkU/lD/tRK7XBevY+//lMCFI8 rEXOOCNqAV5CTnU98ICu0cbX8MaQsA9Vekgpij9eJYc5Pr0p+cQEvMJlLVGaO5DU YE/964jtrClqjJITNZ2XGZnkpdoyX+lyXCQLB8HsfwsR+IJlNnAZ5/pBqn4mLEzB ouqaV9lcKzQeozNEQCaeiQvbjl4FVXXvW5NdDWGMzaDbmy8HoRNP+TMtad4XxhuR YaZBpOQskYevfD58woIkbYyi4yzV4wRF1lYr3N6lkv+AYHT5KokUFLie82R5TaS8 ZXy/ffit3T9sYK9VPZ1vGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1767104440; x= 1767190840; bh=j797tkRG/meb+wTyJA6C1cS77dXDDaZhFKPILW7Z/3E=; b=B 7ve9oP1gIacsmOjN2BBog6ts8ZcIMO99ncduZJMdIctIcFxsE49lOCWdzL0n4xF1 RSHPauqOm5C8XjqZmPFs0DqLz0MFAFW0lhCfZMcj6cggyLeANVrjAcQvl5QaQrfl jBq3u4iaJpoCCQ1mLpYIuQoIDqWtZlIh01u2wkVr/LgHhCNAF5BqHWzyOXs1zlFm WzXc81JoC3SHCU0lWGjtcvA0BdNJhRw1hxk02OXAyr143A9cteyIdL/L0/rp3cMg uQvGnSo2Krh4A4x4p1kdgKGhBSnbaZ/VkZTNLl+5e6wxA8+9CT29KAQGGbiWzduR qAh1hbqbHiH8gUMAH6HJA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdektddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvvefkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdetrhhnugcu uegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtthgvrh hnpefhieehueehiedvffeuuddvveehuefhtdehkeetuedtffekfffhieeghfdtgeefhfen ucffohhmrghinhepuggvsghirghnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvgdpnhgspghrtghp thhtohepudefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsphesrghlihgvnh ekrdguvgdprhgtphhtthhopehlihhnuhigsegrrhhmlhhinhhugidrohhrghdruhhkpdhr tghpthhtohepughinhhguhihvghnsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehvgh huphhtrgeskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepgiekieeskhgvrhhnvghlrdho rhhgpdhrtghpthhtohepthhglhigsehlihhnuhhtrhhonhhigidruggvpdhrtghpthhtoh epthhhohhmrghsrdifvghishhsshgthhhuhheslhhinhhuthhrohhnihigrdguvgdprhgt phhtthhopegurghvvgdrhhgrnhhsvghnsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtg hpthhtoheplhhinhhugidqrghrmhdqkhgvrhhnvghlsehlihhsthhsrdhinhhfrhgruggv rggurdhorhhg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E30BB700065; Tue, 30 Dec 2025 09:20:39 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: AeWvpOYieCaN Date: Tue, 30 Dec 2025 15:20:10 +0100 From: "Arnd Bergmann" To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , "Vineet Gupta" , "Russell King" , "Dinh Nguyen" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org, "H. Peter Anvin" Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Message-Id: In-Reply-To: <20251230-headers_install-config-leak-v1-2-efba5c58073d@linutronix.de> References: <20251230-headers_install-config-leak-v1-0-efba5c58073d@linutronix.de> <20251230-headers_install-config-leak-v1-2-efba5c58073d@linutronix.de> Subject: Re: [PATCH 2/5] ARM: uapi: Stop leaking CONFIG_CPU_ENDIAN_BE8 reference to userspace Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2025, at 08:10, Thomas Wei=C3=9Fschuh wrote: > UAPI headers are not supposed to leak references to kconfig symbols. > These won't be set when building userspace. Hide the kconfig reference > behind 'if defined(__KERNEL__)', so it will be stripped by > headers_install.sh, the same way other kconfig references in this file > are handled. The result for userspace will be the same, but the > exception in headers_install.sh can also be removed. > > Signed-off-by: Thomas Wei=C3=9Fschuh According to codesearch.debian.net, there are no actual users of this definition outside of the kernel, and there really shouldn't be either. It should be both safe and correct to open-code PSR_ENDSTATE in the two file where it is used as if (IS_ENABLED(CONFIG_CPU_ENDIAN_BE8)) regs->ARM_cpsr |=3D PSR_E_BIT and then remove the definition from the header. Alternatively it could be moved into the non-uapi header, or you can have an #ifdef around both of them. Arnd