From nobody Tue Feb 10 02:27:45 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 C47D83612F3 for ; Wed, 14 Jan 2026 07:28:24 +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=1768375707; cv=none; b=S3HHae6lXPQjsisqWSK7QdsiZ7MzIrQxbGYRV4mqrhPoxScvaYxzKfSrEXbMtwXJOhHTAyJ4/oZqZnPBBSwkvAvI+X2FbI4tG4kLENVoqfdVYcxeLVtdkwUmwDmZHymQ7MHTxbar975UQoC+LHoFJAmYVP+m3afmSM2RJgo1Ss0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768375707; c=relaxed/simple; bh=mE+0AJr1mZB6A2o+OL0n7XdbaqJ3PgEVC2ckr3OVoI0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GXDbRsPCB34L3NCw8DP+PMyBsbd8IQim3QkDkks/h7k0CQHxsfdA8It+QGG1GmCTam6KtiWcdo1zyUlta+gEYuCQceK3ltbKnaTXrlCwGRrDk+YFtCpWu2zMB02cXrloodxTVEIwK8UqnP+/pctyNRHcsKuOnuwfa8uaIhrDEdY= 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=dAc3knak; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=U/JNrNkB; 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="dAc3knak"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="U/JNrNkB" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768375702; 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=Y7a/8gcbX01XP0/CB6Qd22scjF/OCyrYXm0gztMHssc=; b=dAc3knakfpp5DOvozjUAzoewOZ2pVCF/gzFHHIZ75ZyWUHoMYvGm/4/09V1mA7934bDNxI o8gD9fHx/aoRilno7/lwiTZRd10IK5bC8RN+D7DKML6UnnYDtoNVpHNgyAI9Lw6eKvpVs3 e/KiA20HVCghVVTcxUPZB34U1So1sEh5Gw/BgVehGVuJoZAuEb7t18x2pegQqJ5mefjAvm fV1es3dz7yXmx0JDg+jFub20M6R/nf90wgBOsSdhhloAi1vbdnBvni4ArSXLfh+Zs5Z2Og oJWVW3QVgWeA6LWHyckX4gMdJvDzi3ymAV6AV7ZY4eLe0avARB78clO/ETU8lQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768375702; 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=Y7a/8gcbX01XP0/CB6Qd22scjF/OCyrYXm0gztMHssc=; b=U/JNrNkBGW3Y1nOEUaTFB2cpGsA8hZXMVJD6By/YcVfJ2SSkYeJjE6uzVutPg+0uOmQEFf hiXM8qitjatAN+BQ== Date: Wed, 14 Jan 2026 08:28:15 +0100 Subject: [PATCH v3 3/5] nios2: uapi: Remove custom asm/swab.h from UAPI 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: <20260114-headers_install-config-leak-v3-3-c14cde735a79@linutronix.de> References: <20260114-headers_install-config-leak-v3-0-c14cde735a79@linutronix.de> In-Reply-To: <20260114-headers_install-config-leak-v3-0-c14cde735a79@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=1768375700; l=1518; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=mE+0AJr1mZB6A2o+OL0n7XdbaqJ3PgEVC2ckr3OVoI0=; b=zHTjG8R/h7uXxKeC9I3uek7xU7TY91UMhtbGC20yAPj5ya4N/uCIjgRNXiJw13vsOPf8QLkN/ AdLzoLuojFQDPOjMqW281pckTTVbMF16RgvhBWDqP94AqSmP3qrsZXA X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= UAPI headers are not supposed to leak references to kconfig symbols. They are undefined there in any case. As all actual definitions of this header are guarded behind a kconfig symbol, for userspace the header is always identical to its asm-generic variant. Make the custom UAPI header a kernel-internal one, so the leaks of kconfig symbols are fixed and userspace will instead use asm-generic/swab.h directly. Suggested-by: Arnd Bergmann Link: https://lore.kernel.org/lkml/93c55086-931a-4282-a94c-de4954047fa9@app= .fastmail.com/ Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/nios2/include/{uapi =3D> }/asm/swab.h | 0 scripts/headers_install.sh | 2 -- 2 files changed, 2 deletions(-) diff --git a/arch/nios2/include/uapi/asm/swab.h b/arch/nios2/include/asm/sw= ab.h similarity index 100% rename from arch/nios2/include/uapi/asm/swab.h rename to arch/nios2/include/asm/swab.h diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index 4f03521f4026..613f400a67d1 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/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_NO -arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_64 " --=20 2.52.0