From nobody Mon Feb 9 05:45:11 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 9CDF633B6DF for ; Mon, 12 Jan 2026 07:58:36 +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=1768204718; cv=none; b=jk7laXBHd1NDZW94fX9qtpJQ2SHVaxIRtJ+ANBP9/cF1hmUBkM1GfD09YM8b0cyPMXuqXSZ66+T3gArxGMKtIojdubn6llfSggMWHsSBZ5ueV8V01YLxb7RvxRa9Ue36IbJLOU2cUdu97S/7oh92DVKRRxkGnXcu2qSGB9FTGks= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768204718; c=relaxed/simple; bh=136J/A8/BFtasnT1KZrwlQiIeplv7/+39atWV+MjCN4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MucXbHPT2CbqCJnyT5WMUiFLspybeC61lo+FqjwDjC4iakiZ0R5TnNJMjIzvi8LCK6UUHWb5Ul0fliHtgr6HIVU6OOU61uwEZglrKjQUEAgzJkhjHNNuwbg72uAETNgfZaPjn7t4yyJOctVzL0Jp1hoNUO/Xb03LN1ONXQgBcFk= 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=w12esafE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZpHdGqMs; 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="w12esafE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZpHdGqMs" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768204715; 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=n70btqrdaqToHz89ue0UZuLwgdithscXhcOFepGMlJ0=; b=w12esafE1bcBJB945wsCRt0SQ6S4GTCc60/loF2Mhj3Bu64ZDxSmvP5XXo9IztJoc1Ql0J 13rwNXrBCbYeuhYay8ZZcwZV38NWtCx0I0/Y011gqHeF652RDDRxUgDIktavFtJr3x+tUn OpXwjG7OVAU7y0JKWOImEtn46TwepWUJU5S02SlSCOudxZg3jQnLJqfKr5EQMzkSsrdvBX WwWDylXqhQKN8l339+kFZYAaOk7KIozr5d/KO25AMklS58ITozJ2Lgjvyny8rVnO8FTj1+ +48gK0hxjySeiJLTmnKK2pWqoUSg9cf+YLFO4p3l13OXvweR8SI52P/B1KSuhw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768204715; 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=n70btqrdaqToHz89ue0UZuLwgdithscXhcOFepGMlJ0=; b=ZpHdGqMsLbaAl1s9iBHxbdPmSb6RfTVBVpJuRlPTj+/b21hkis8V0shwXQjZcnlGtKxlK3 rmyIe4TbXpbkBSDQ== Date: Mon, 12 Jan 2026 08:58:29 +0100 Subject: [PATCH v2 1/5] ARC: Always use SWAPE instructions and enable ARCH_USE_BUILTIN_BSWAP 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: <20260112-headers_install-config-leak-v2-1-4d8084444603@linutronix.de> References: <20260112-headers_install-config-leak-v2-0-4d8084444603@linutronix.de> In-Reply-To: <20260112-headers_install-config-leak-v2-0-4d8084444603@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=1768204713; l=6304; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=136J/A8/BFtasnT1KZrwlQiIeplv7/+39atWV+MjCN4=; b=lc4K5vnhK8ddFcTT+Uppc7Eczf/y3itQq+LJQWzR3frL3LvAep2rDmm5zTnbgn7AvFILMpcPs uojHetN6A1QAuBwVUX8z3tuaYokcGEBoFrFdYRI0AMRSKozKT3X1o79 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Since commit 67a697e7576 ("ARC: retire ARC750 support") all supported CPUs have the 'swape' instruction. Replace the custom logic with ARCH_USE_BUILTIN_BSWAP which makes use of 'swape'. As as side-effect, remove a leak of an internal kconfig symbol through the UAPI headers. Suggested-by: Arnd Bergmann Link: https://lore.kernel.org/lkml/0ae2688a-5a22-405b-adaf-9b5ad712b245@app= .fastmail.com/ Suggested-by: Vineet Gupta Link: https://lore.kernel.org/lkml/a033a402-e3c5-4982-9fff-b6a4c55817ae@ker= nel.org/ Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier # kbuild --- arch/arc/Kconfig | 6 +-- arch/arc/Makefile | 3 +- arch/arc/include/uapi/asm/swab.h | 99 ------------------------------------= ---- scripts/headers_install.sh | 1 - 4 files changed, 2 insertions(+), 107 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index f27e6b90428e..390a14360689 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -16,6 +16,7 @@ config ARC select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_NEED_CMPXCHG_1_EMU select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC + select ARCH_USE_BUILTIN_BSWAP select ARCH_32BIT_OFF_T select BUILDTIME_TABLE_SORT select GENERIC_BUILTIN_DTB @@ -121,7 +122,6 @@ choice config ARC_CPU_770 bool "ARC770" depends on ISA_ARCOMPACT - select ARC_HAS_SWAPE help Support for ARC770 core introduced with Rel 4.10 (Summer 2011) This core has a bunch of cool new features: @@ -340,10 +340,6 @@ config ARC_HAS_LLSC default y depends on !ARC_CANT_LLSC =20 -config ARC_HAS_SWAPE - bool "Insn: SWAPE (endian-swap)" - default y - if ISA_ARCV2 =20 config ARC_USE_UNALIGNED_MEM_ACCESS diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 0c5e6e6314f2..868805ffcfea 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -9,7 +9,7 @@ ifeq ($(CROSS_COMPILE),) CROSS_COMPILE :=3D $(call cc-cross-prefix, arc-linux- arceb-linux- arc-lin= ux-gnu-) endif =20 -cflags-y +=3D -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__ +cflags-y +=3D -fno-common -pipe -fno-builtin -mmedium-calls -mswape -D__li= nux__ =20 tune-mcpu-def-$(CONFIG_ISA_ARCOMPACT) :=3D -mcpu=3Darc700 tune-mcpu-def-$(CONFIG_ISA_ARCV2) :=3D -mcpu=3Dhs38 @@ -41,7 +41,6 @@ endif cflags-y +=3D -fsection-anchors =20 cflags-$(CONFIG_ARC_HAS_LLSC) +=3D -mlock -cflags-$(CONFIG_ARC_HAS_SWAPE) +=3D -mswape =20 ifdef CONFIG_ISA_ARCV2 =20 diff --git a/arch/arc/include/uapi/asm/swab.h b/arch/arc/include/uapi/asm/s= wab.h deleted file mode 100644 index 8d1f1ef44ba7..000000000000 --- a/arch/arc/include/uapi/asm/swab.h +++ /dev/null @@ -1,99 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.c= om) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * vineetg: May 2011 - * -Support single cycle endian-swap insn in ARC700 4.10 - * - * vineetg: June 2009 - * -Better htonl implementation (5 instead of 9 ALU instructions) - * -Hardware assisted single cycle bswap (Use Case of ARC custom instrn) - */ - -#ifndef __ASM_ARC_SWAB_H -#define __ASM_ARC_SWAB_H - -#include - -/* Native single cycle endian swap insn */ -#ifdef CONFIG_ARC_HAS_SWAPE - -#define __arch_swab32(x) \ -({ \ - unsigned int tmp =3D x; \ - __asm__( \ - " swape %0, %1 \n" \ - : "=3Dr" (tmp) \ - : "r" (tmp)); \ - tmp; \ -}) - -#else - -/* Several ways of Endian-Swap Emulation for ARC - * 0: kernel generic - * 1: ARC optimised "C" - * 2: ARC Custom instruction - */ -#define ARC_BSWAP_TYPE 1 - -#if (ARC_BSWAP_TYPE =3D=3D 1) /******* Software only ********/ - -/* The kernel default implementation of htonl is - * return x<<24 | x>>24 | - * (x & (__u32)0x0000ff00UL)<<8 | (x & (__u32)0x00ff0000UL)>>8; - * - * This generates 9 instructions on ARC (excluding the ld/st) - * - * 8051fd8c: ld r3,[r7,20] ; Mem op : Get the value to be swapped - * 8051fd98: asl r5,r3,24 ; get 3rd Byte - * 8051fd9c: lsr r2,r3,24 ; get 0th Byte - * 8051fda0: and r4,r3,0xff00 - * 8051fda8: asl r4,r4,8 ; get 1st Byte - * 8051fdac: and r3,r3,0x00ff0000 - * 8051fdb4: or r2,r2,r5 ; combine 0th and 3rd Bytes - * 8051fdb8: lsr r3,r3,8 ; 2nd Byte at correct place in Dst Reg - * 8051fdbc: or r2,r2,r4 ; combine 0,3 Bytes with 1st Byte - * 8051fdc0: or r2,r2,r3 ; combine 0,3,1 Bytes with 2nd Byte - * 8051fdc4: st r2,[r1,20] ; Mem op : save result back to mem - * - * Joern suggested a better "C" algorithm which is great since - * (1) It is portable to any architecture - * (2) At the same time it takes advantage of ARC ISA (rotate intrns) - */ - -#define __arch_swab32(x) \ -({ unsigned long __in =3D (x), __tmp; \ - __tmp =3D __in << 8 | __in >> 24; /* ror tmp,in,24 */ \ - __in =3D __in << 24 | __in >> 8; /* ror in,in,8 */ \ - __tmp ^=3D __in; \ - __tmp &=3D 0xff00ff; \ - __tmp ^ __in; \ -}) - -#elif (ARC_BSWAP_TYPE =3D=3D 2) /* Custom single cycle bswap instruction */ - -#define __arch_swab32(x) \ -({ \ - unsigned int tmp =3D x; \ - __asm__( \ - " .extInstruction bswap, 7, 0x00, SUFFIX_NONE, SYNTAX_2OP \n"\ - " bswap %0, %1 \n"\ - : "=3Dr" (tmp) \ - : "r" (tmp)); \ - tmp; \ -}) - -#endif /* ARC_BSWAP_TYPE=3Dzzz */ - -#endif /* CONFIG_ARC_HAS_SWAPE */ - -#if !defined(__STRICT_ANSI__) || defined(__KERNEL__) -#define __SWAB_64_THRU_32__ -#endif - -#endif diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index 0e4e939efc94..727f7f82c2c7 100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh @@ -70,7 +70,6 @@ configs=3D$(sed -e ' # # The format is : in each line. config_leak_ignores=3D" -arch/arc/include/uapi/asm/swab.h:CONFIG_ARC_HAS_SWAPE arch/arm/include/uapi/asm/ptrace.h:CONFIG_CPU_ENDIAN_BE8 arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_NO arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT --=20 2.52.0 From nobody Mon Feb 9 05:45:11 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 4458F33A9CE for ; Mon, 12 Jan 2026 07:58:37 +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=1768204718; cv=none; b=s6lhJ6SijAijqtq1+z8mvy9swHN2LlEpZwgT5QDa8mhkhBVaR8K9Ixp8YRR1uPjRVYNRMYvVitbBGpod0FXjEYm9cVpoed86vVZAIjCeROSVSCaay9S5d//fxOKz+tHu2LX6cZ/ht6aeZervf4TSSwUVGHPkv0s+Uy07kIaGq04= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768204718; c=relaxed/simple; bh=fz1o/QC//id3SLCiEx9I+QB/CLj6vfH/ATM2HwtC2M4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZSVJvnyAd9aHm8/o1XD7UOulgnkf7EN1R7kJZ7K6Qe0UY3z6+dPBKNua3MX8uU3EuWXltxw4vluQ+Ejn17ImmF/0wGVPBjHx6J7gnjXJOzrrC6KViWSUBlQ3XM8EbTwtHTCXIyQ8nIOX8jTUEKN2zksXd/OpCEewLOVP7Xpxs3g= 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=omYMiVgy; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jAfZhu7+; 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="omYMiVgy"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jAfZhu7+" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768204715; 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=5s1E1yisqHJGGPTpys4I/1xezHpPYE2+zak8zKkm6YU=; b=omYMiVgyCs2/ICjIBKHk+uRwVKqb2olpwT7SpzDhB5GVFq48MzJ/sHFdjM4oNWLwQPBxU1 3PA9Ne8I1jwRRzFiSEzVJKc1Y3TnnU7FehqUKshQKo30JlPtUldAKsCrRR86DmO/d9WYsX 1ChFodv4xO9yMpZ3gyslxtwEtuBJHm7JrxA3oogmrtvYjhn6JY2NS3zhhWpsMxbl8HG2// rshFGY/ctXk7vLOxa1SiNGOW31cMo+JVvMnQgcVTAZSdeaYiksXAd8TaGKo3QBr5T39V+h URj92ms8uHNgAFFrEbBODFt79o70DbqwZElk/n00VaztdlOVJCKc6EKsmg4/4A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768204715; 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=5s1E1yisqHJGGPTpys4I/1xezHpPYE2+zak8zKkm6YU=; b=jAfZhu7+MYFHbZQYp4Wr1DEqaexq5dbKqNHBkWycp5xJn1kHg0vAMVoGlzZuplCYqAuNVf srmP/2rF5wWJuFBw== Date: Mon, 12 Jan 2026 08:58:30 +0100 Subject: [PATCH v2 2/5] ARM: uapi: Drop PSR_ENDSTATE 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: <20260112-headers_install-config-leak-v2-2-4d8084444603@linutronix.de> References: <20260112-headers_install-config-leak-v2-0-4d8084444603@linutronix.de> In-Reply-To: <20260112-headers_install-config-leak-v2-0-4d8084444603@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=1768204713; l=2940; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=fz1o/QC//id3SLCiEx9I+QB/CLj6vfH/ATM2HwtC2M4=; b=SgLGFJD93/ax6KUVAdEqFkrrtteLzYnyVrgmZLmHAO3OlDxH1a9NqMhU6ejqJ2eiYW+IB+Olx MoK7VJQoUOYB/DXjxAg1+xBNyQ+JiDlDEEof/TKvPnQt3686DHOkcx1 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The symbol PSR_ENDSTATE is pointless for userspace. Drop it from the UAPI headers and instead inline it into the only two callers. As as side-effect, remove a leak of an internal kconfig symbol through the UAPI headers. Suggested-by: Arnd Bergmann Link: https://lore.kernel.org/lkml/d2ad12f2-3d65-4bef-890c-65d78a33d790@app= .fastmail.com/ Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier # kbuild --- arch/arm/include/asm/processor.h | 3 ++- arch/arm/include/uapi/asm/ptrace.h | 9 --------- arch/arm/kernel/signal.c | 3 ++- scripts/headers_install.sh | 1 - 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/arch/arm/include/asm/processor.h b/arch/arm/include/asm/proces= sor.h index 326864f79d18..bba83228bc22 100644 --- a/arch/arm/include/asm/processor.h +++ b/arch/arm/include/asm/processor.h @@ -73,7 +73,8 @@ static inline void arch_thread_struct_whitelist(unsigned = long *offset, regs->ARM_cpsr =3D USR26_MODE; \ if (elf_hwcap & HWCAP_THUMB && pc & 1) \ regs->ARM_cpsr |=3D PSR_T_BIT; \ - regs->ARM_cpsr |=3D PSR_ENDSTATE; \ + if (IS_ENABLED(CONFIG_CPU_ENDIAN_BE8)) \ + regs->ARM_cpsr |=3D PSR_E_BIT; \ regs->ARM_pc =3D pc & ~1; /* pc */ \ regs->ARM_sp =3D sp; /* sp */ \ }) diff --git a/arch/arm/include/uapi/asm/ptrace.h b/arch/arm/include/uapi/asm= /ptrace.h index 8896c23ccba7..2ef917957005 100644 --- a/arch/arm/include/uapi/asm/ptrace.h +++ b/arch/arm/include/uapi/asm/ptrace.h @@ -102,15 +102,6 @@ #define PSR_IT_MASK 0x0600fc00 /* If-Then execution state mask */ #define PSR_ENDIAN_MASK 0x00000200 /* Endianness state mask */ =20 -/* - * Default endianness state - */ -#ifdef CONFIG_CPU_ENDIAN_BE8 -#define PSR_ENDSTATE PSR_E_BIT -#else -#define PSR_ENDSTATE 0 -#endif - /*=20 * These are 'magic' values for PTRACE_PEEKUSR that return info about wher= e a * process is located in memory. diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 79a6730fa0eb..7be9188d83d9 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c @@ -337,7 +337,8 @@ setup_return(struct pt_regs *regs, struct ksignal *ksig, return 1; } =20 - cpsr |=3D PSR_ENDSTATE; + if (IS_ENABLED(CONFIG_CPU_ENDIAN_BE8)) + cpsr |=3D PSR_E_BIT; =20 /* * Maybe we need to deliver a 32-bit signal to a 26-bit task. diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index 727f7f82c2c7..4f03521f4026 100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh @@ -70,7 +70,6 @@ configs=3D$(sed -e ' # # The format is : in each line. config_leak_ignores=3D" -arch/arm/include/uapi/asm/ptrace.h:CONFIG_CPU_ENDIAN_BE8 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 --=20 2.52.0 From nobody Mon Feb 9 05:45:11 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 CC49430BBA6 for ; Mon, 12 Jan 2026 07:58:37 +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=1768204719; cv=none; b=jruqiToPa4/3dqROwurThRPNDlmeqKxNJWdi3CL8zGiWt4tnr6NepNMBy0tdRCHKbwtcVk8Y8CZdWbf7RXQogRPkF1mBNA9aLvfhjkhtRigWeBihyw1CPtFxmm48p7XPmpbzWxrJPyIuAGhqa792qZ5jhUmrTNyWFqwY84ayUZg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768204719; c=relaxed/simple; bh=mE+0AJr1mZB6A2o+OL0n7XdbaqJ3PgEVC2ckr3OVoI0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rGGMagBqvZaG+ISprSnrpNK4ycBjcc/+S8J29ZyE7j/IW4xqxHfJPW35m+nVoJhWP8/T6BXLvMcEogICgJ2VJ50iCe/5JpqPT9Y/1p9F+ikC4DwE+yCcT5HUnulVZDx+0VozE0fZ4x8bbHBrTiAS0rPrr3szaoW/+0dsIwpG5O0= 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=Vtcifug9; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MemaBHqQ; 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="Vtcifug9"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MemaBHqQ" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768204716; 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=Vtcifug9RaagyqT88MSE5ZYCcl05riCaRsPdsU/aY8VjI2K7ctC/SNby90EOZ/x2cQaIFC 8sN80yyMHqOQihsk4iNEATryKSxnAzfKfNgWXgGWmoeC6bxQsQGtQFzvV8Moaak4F6PBKV /4gZhwB3jnPiZO0Bdr1WeqebgMbf6urUAL2a/ssKCoDkbZ5Wb+tXXMhXCtUTSpe5X6K8Ts HsqlCPmgK28z74lIKTCLPcdDE1h1uDEx5nBtt3vRkFDSh+DRmj7nPj6QJl5APkQegsHvXV kq62CohPbToowSYvEksbU6IHA7xV+Ffa72TTFB6A+7mcfPY2lwfgxRthuve2Ew== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768204716; 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=MemaBHqQkRpgoNBlhSFabxjnBxO/4h3Gl/2+J55JrGluB3OE/DSR7nebNIv70hTxNCoHGs PNapIui61d1LaqCw== Date: Mon, 12 Jan 2026 08:58:31 +0100 Subject: [PATCH v2 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: <20260112-headers_install-config-leak-v2-3-4d8084444603@linutronix.de> References: <20260112-headers_install-config-leak-v2-0-4d8084444603@linutronix.de> In-Reply-To: <20260112-headers_install-config-leak-v2-0-4d8084444603@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=1768204713; l=1518; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=mE+0AJr1mZB6A2o+OL0n7XdbaqJ3PgEVC2ckr3OVoI0=; b=2sUeoLE/BaN/OFza3UjExdYjfJFxjDWJvIY/UbV5GGogqazTOnosaEyBG3G24W0N6dTsPamwL ZYEkSNEamaYB1TuAzBverE3YwKrT8o+V6fe5HsgJGRN2cZ/mEJr3L/R 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 Reviewed-by: Nicolas Schier # kbuild --- 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 From nobody Mon Feb 9 05:45:11 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 5846C33A9F7 for ; Mon, 12 Jan 2026 07:58:38 +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=1768204732; cv=none; b=It+uzYkqQTUzu4ygkmh/tWfKRz5JfbVcIUy6epHvm14nHVsFVRVbU2p7j04rae5CRkX9B/nHktEo8WEF6jlXa1BwMMhIXbqIpUP7vM8Np/rqGtPdSW+66Nw9dBu8espDR0s+4s7egXYzulsCA2neFnlJ5kORx2BFC+9TQBMSCks= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768204732; c=relaxed/simple; bh=1ntrFEOo6yMiRT1zeHWBcYc625HQZOv1NUT0dl13IAY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bDzd39Nf8PjKMxefeLB6RQkVwp75ZXM2tkRg8MhqEHozUB8cvFnCyqwpwwUGYNnU4NKjujBhLA96ugCw6miEjD/KJIWui5q6RIGQyzdhlHjQs7h2C5wuLDneDPUbGV2tjCO4TxFKombfuqsv61jOQnh5FQAzN3EJZxfhA0SxClU= 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=VYAB18Ex; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=i2k0uB0u; 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="VYAB18Ex"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="i2k0uB0u" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768204716; 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=Aig1PLerlTshO4U9aCkB6AyEJOyKwJW4ZrYV/oqt+Zo=; b=VYAB18Exhf/aADuuaE9DD/hU/x0uJLEMjUJslnMRp0fqnfzAJZBxsfwlkYR+dIX9y9z2kW EmReRBL83bqkEN6HR3F0m/l3StUFl59Sq9/keBFXbCvC8VMEQX2bfxbFyK03HapA88LE2r mkqCYTG3faLkc1QWFdP/MpyDSxqk6BrwO8EWN5LdJ4VFnLbggsLyLELVxTOSBxajXmlWLn l6iyx0Q+vqfNRuplpsqeR1ZXLXNf1l8lOyWXMlT3LZSupVlXXx2n/UPmeRxZchp6EB56pk 08wJ2kuOA5+fDu676bieLe/GP+5VcFssnD2QJSkwA0A92HxTf1C0GxhUQaX6EQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768204716; 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=Aig1PLerlTshO4U9aCkB6AyEJOyKwJW4ZrYV/oqt+Zo=; b=i2k0uB0uFaluyzydjAKPuMXujYsywjPPFzfDzTvwEe8nRBvKSdxxxxxatUJYO72tEbkq9Y PBV5yQUdWIEzHCDA== Date: Mon, 12 Jan 2026 08:58:32 +0100 Subject: [PATCH v2 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: <20260112-headers_install-config-leak-v2-4-4d8084444603@linutronix.de> References: <20260112-headers_install-config-leak-v2-0-4d8084444603@linutronix.de> In-Reply-To: <20260112-headers_install-config-leak-v2-0-4d8084444603@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=1768204713; l=1708; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=1ntrFEOo6yMiRT1zeHWBcYc625HQZOv1NUT0dl13IAY=; b=4grI2sMTGP7DFiQwLDvxNL2mBz1BsBGNLpD2/jJVu4OMV0rC1rF40fA9mIJCt+4wqJPZHWeLf 0FFlKc6ssrmB/feRGqNaDQ5JhOHt+RR776B81Q0Mzb7t3S93NGQyEnh 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 Reviewed-by: Nicolas Schier # kbuild --- There is no point in exposing AT_VECTOR_SIZE_ARCH in the UAPI in any case and I have another series in the works to get rid of it completely. --- 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 From nobody Mon Feb 9 05:45:11 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 DFC4033B6FC for ; Mon, 12 Jan 2026 07:58:39 +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=1768204733; cv=none; b=gNUZ8IqHB6XQM/z+If/W8mzpU1xjc05TCKg+2+7VXWup4c7AdVgSTtHI5gPbKBUQeV5yKbji1lFwTNyP08YAhWjJtQGDrH1U+iYJrACHyuPgqcOyFphMmnAZKuvJ/YV1h3qy1nkWDsjX2NOzsQFI/uIqPcm5JgJoQ4tXyPp25pg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768204733; c=relaxed/simple; bh=3m2ChPrsGt9AyZmjEghF2edS4ROwGKo0RjvgqUHiJ78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZWTO6CAus5lOl0mG0Fyp9RmqyqBi0wMAIdeCXSvLvpXg8C8Ts0jM4b9srQBn4sKyMvfWiMrUE4l8gUMshUMiyX5pCrs1c5a7elFwfcGmiB7hTtpCxtsiw7zucBPebezTNOmpWTib7GwcddPffTT4JFHAiWBqmLmvMlowIrn/qYY= 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=YUA8/D41; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=i+pvltVK; 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="YUA8/D41"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="i+pvltVK" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768204717; 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=+Nm08QPvja+X8sRm8npcNZeirzQwsu4YExZqsNCkcus=; b=YUA8/D41Qd5gz0b5oHny13Ly/SKKuKkDId6G1JNhOQH0X8E/87G7+k+WpjLfYaRlD8Q963 e1xqw92qVBROfZgQ1/kvnzRSsFWaXTz6qrq6t8X8AGeOX4z5eEzIvZoyWpV6zS/XsybETZ egSTALZ2A3ef2qN7InBSZ4dT8WZxmk9tF3n8mr/4/IRc7mVSLjv8Tvuoe7HEUhdkKcAYcS 3T5c4R/ZuOqOINqah/lWpGMYuUH4vJtE5N0X6kva9iHg+Wbq15bmh41Bg1vOnn2e8TBUBU bw+blVCmbkhlT6TqrSXMM2cXFGoHYN+oH/oLzS3eKOVSMVWXsIXwObEC9oP+Fg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768204717; 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=+Nm08QPvja+X8sRm8npcNZeirzQwsu4YExZqsNCkcus=; b=i+pvltVKbnu+ggWlaK4sc/4fwRX1DLgkK1PhBse1cfVMBKq7kC3c62rQvkbHP8pQDwNM0v EARnupm14BZcXLAg== Date: Mon, 12 Jan 2026 08:58:33 +0100 Subject: [PATCH v2 5/5] scripts: headers_install.sh: Remove config leak ignore machinery 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: <20260112-headers_install-config-leak-v2-5-4d8084444603@linutronix.de> References: <20260112-headers_install-config-leak-v2-0-4d8084444603@linutronix.de> In-Reply-To: <20260112-headers_install-config-leak-v2-0-4d8084444603@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=1768204713; l=1231; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=3m2ChPrsGt9AyZmjEghF2edS4ROwGKo0RjvgqUHiJ78=; b=lMTaoQYD5mp3KkppGHRh80zlb5hvyWuPkZm9YoR05ZtcJuFvgjKLhNDS5cIvudXfwBDhIPSwD qPePzBUbGDhCl05oBVNc6DZNK7Ly/RAa6pJgDde0NMqvyIFDV9mxjaK X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= There are no entries left to ignore and none should be added again. Remove the now unused logic. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier # kbuild --- scripts/headers_install.sh | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index 1301ba68d772..9c15e748761c 100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh @@ -64,30 +64,10 @@ configs=3D$(sed -e ' d ' $OUTFILE) =20 -# The entries in the following list do not result in an error. -# Please do not add a new entry. This list is only for existing ones. -# The list will be reduced gradually, and deleted eventually. (hopefully) -# -# The format is : in each line. -config_leak_ignores=3D" -" - for c in $configs do - leak_error=3D1 - - for ignore in $config_leak_ignores - do - if echo "$INFILE:$c" | grep -q "$ignore$"; then - leak_error=3D - break - fi - done - - if [ "$leak_error" =3D 1 ]; then - echo "error: $INFILE: leak $c to user-space" >&2 - exit 1 - fi + echo "error: $INFILE: leak $c to user-space" >&2 + exit 1 done =20 rm -f $TMPFILE --=20 2.52.0