From nobody Tue Feb 10 05:45:01 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7EED52F25F2 for ; Tue, 30 Dec 2025 07:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767078663; cv=none; b=YvVTfBfxnEPziOuQVu8h4psLfj3DfrZyG22+x8wvjMhTvCweZ4rmmZ5E4vDXkLL+0RWX6vtKag5xXz4ISNcazkPr2I4/4MIQ4FbGFzJFGrnws8UJIyy8r2IvKdgqJRc/TnuufrAwDNrvo2S798lgC0O7pJD+WewalRHaM8x8dCE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767078663; c=relaxed/simple; bh=ZOE7KyuSlKH6XcxA1h4Q37Qp45CteslFj5lH67emOQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OHFRLk+sJduuxqdJmA/I/hcA/aAjvXd4AHAEows8Dbu8OyVj6ZIhENVnil5uLqvk38Tso/yf1NzcGNdpfaSIHmt6gQp1fvKtC3kxPlNlFEh7TmmSTK7vlF5WHZEJA02DhhDqZzev5561l0LoozASfYJxD4hdNW0hVS1R6hlWn2o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=JntQ3si8; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=KI95VUE1; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="JntQ3si8"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="KI95VUE1" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1767078660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=216KVOlY02968JQn1X6t3Xl8U0YV+kMSpa6yCEhcMZ0=; b=JntQ3si8MLrP2MpCR1+OEWNd81aJ/qhkCp94JA/Ya1ve8COVEizpQpdOtwHChAXB5kltbU Ws3gZWwf2Myp17MCTCJAHH3HDfVMt6wJROw/X6gVEREUdbBtAjz3EjsUmDRgwyDoRngH/7 vUqd9H/F0U5YB93waS8ZU4vmhBot5MgRv/CEdepkjG0X9nbxTJaJZfd5lG5NteBa4EBVrh 0ErZG2q2WrrcXdkV/rnLgNolfMOXBXWG5PUaxPVlwjiPhdV6g5EITNsDacv+oDqg9I8d18 NZTvPR/bfjFHib8xNSLt7nWeoq0Xu2lY5LG8o+5la0rr3hBMzuZ/PwsHwPzXBg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1767078660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=216KVOlY02968JQn1X6t3Xl8U0YV+kMSpa6yCEhcMZ0=; b=KI95VUE1ItLOgk32L8YjnYbIKghtAzkSpebLn2uXfUH3jy+0BPCOpegdnYYznoFj/i1Wej UZ04m9ZkrtUUVXBg== Date: Tue, 30 Dec 2025 08:10:59 +0100 Subject: [PATCH 4/5] x86/uapi: Stop leaking kconfig references to userspace Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251230-headers_install-config-leak-v1-4-efba5c58073d@linutronix.de> References: <20251230-headers_install-config-leak-v1-0-efba5c58073d@linutronix.de> In-Reply-To: <20251230-headers_install-config-leak-v1-0-efba5c58073d@linutronix.de> To: 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, Arnd Bergmann , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1767078657; l=1557; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=ZOE7KyuSlKH6XcxA1h4Q37Qp45CteslFj5lH67emOQk=; b=OYir6/1EucH7c1HcVMuphZ1xXvzTijkLimlJ4SpgcqZmSSE0gYkERzRWWRVaMrfoovAGdZrxd fDqcdtuv+EaCh+sTYpUahJeWGST4wS+3dsAx5bAB5+bNC+BNgNfLceK X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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 result for userspace will be the same, but the exceptions in headers_install.sh can also be removed. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/x86/include/uapi/asm/auxvec.h | 2 +- scripts/headers_install.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/include/uapi/asm/auxvec.h b/arch/x86/include/uapi/asm= /auxvec.h index 6beb55bbefa4..bdde9e18f94e 100644 --- a/arch/x86/include/uapi/asm/auxvec.h +++ b/arch/x86/include/uapi/asm/auxvec.h @@ -11,7 +11,7 @@ #define AT_SYSINFO_EHDR 33 =20 /* entries in ARCH_DLINFO: */ -#if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) +#if defined(__KERNEL__) && (defined(CONFIG_IA32_EMULATION) || !defined(CON= FIG_X86_64)) # define AT_VECTOR_SIZE_ARCH 3 #else /* else it's non-compat x86-64 */ # define AT_VECTOR_SIZE_ARCH 2 diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index 613f400a67d1..1301ba68d772 100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh @@ -70,8 +70,6 @@ configs=3D$(sed -e ' # # The format is : in each line. config_leak_ignores=3D" -arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION -arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_64 " =20 for c in $configs --=20 2.52.0