Alpha arch development list
 help / color / mirror / Atom feed
* [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI
@ 2026-11-23  9:37 Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 01/15] MAINTAINERS: exec: Add more auxvec.h variants Thomas Weißschuh
                   ` (15 more replies)
  0 siblings, 16 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh, Paul Walmsley,
	Andy Chiu, Magnus Lindholm

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to kernel-internal headers.

Meant to be applied through the asm-generic or execve tree.
The default recipient list was huge. I trimmed it to only the
architecture lists.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Changes in v3:
- Rebase on v7.3-rc1.
- Fix some include guards.
- Link to v2: https://patch.msgid.link/20260903-at-vector-size-arch-v2-0-5bc32a71e3d8@linutronix.de

Changes in v2:
- Rebase on v7.3-rc1.
- Pick up tags.
- Link to v1: https://lore.kernel.org/r/20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de

---
Thomas Weißschuh (15):
      MAINTAINERS: exec: Add more auxvec.h variants
      auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h
      asm-generic: add an in-kernel auxvec.h header
      ARM: drop custom asm/auxvec.h
      x86: Remove AT_VECTOR_SIZE_ARCH from UAPI
      arm64: Remove AT_VECTOR_SIZE_ARCH from UAPI
      RISC-V: Remove AT_VECTOR_SIZE_ARCH from UAPI
      LoongArch: Remove AT_VECTOR_SIZE_ARCH from UAPI
      s390: Remove AT_VECTOR_SIZE_ARCH from UAPI
      powerpc: Remove AT_VECTOR_SIZE_ARCH from UAPI
      MIPS: Remove AT_VECTOR_SIZE_ARCH from UAPI
      sparc: Remove AT_VECTOR_SIZE_ARCH from UAPI
      sh: Remove AT_VECTOR_SIZE_ARCH from UAPI
      alpha: remove AT_VECTOR_SIZE_ARCH from UAPI
      auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH

 MAINTAINERS                              |  5 +++++
 arch/alpha/include/asm/auxvec.h          |  7 +++++++
 arch/alpha/include/uapi/asm/auxvec.h     |  8 +++-----
 arch/arm/include/asm/auxvec.h            |  1 -
 arch/arm64/include/asm/auxvec.h          |  7 +++++++
 arch/arm64/include/uapi/asm/auxvec.h     |  6 ++----
 arch/loongarch/include/asm/auxvec.h      | 14 ++++++++++++++
 arch/loongarch/include/uapi/asm/auxvec.h |  8 +++-----
 arch/mips/include/asm/auxvec.h           | 17 +++++++++++++++++
 arch/mips/include/uapi/asm/auxvec.h      |  8 +++-----
 arch/powerpc/include/asm/auxvec.h        |  7 +++++++
 arch/powerpc/include/uapi/asm/auxvec.h   |  6 ++----
 arch/riscv/include/asm/auxvec.h          | 13 +++++++++++++
 arch/riscv/include/uapi/asm/auxvec.h     |  2 --
 arch/s390/include/asm/auxvec.h           |  7 +++++++
 arch/s390/include/uapi/asm/auxvec.h      |  6 ++----
 arch/sh/include/asm/auxvec.h             |  7 +++++++
 arch/sh/include/uapi/asm/auxvec.h        |  8 +++-----
 arch/sparc/include/asm/auxvec.h          |  6 ++++++
 arch/sparc/include/uapi/asm/auxvec.h     |  8 +++-----
 arch/x86/include/asm/auxvec.h            | 12 ++++++++++++
 arch/x86/include/uapi/asm/auxvec.h       | 13 +++----------
 include/asm-generic/Kbuild               |  1 +
 include/asm-generic/auxvec.h             |  7 +++++++
 include/linux/auxvec.h                   |  5 +++++
 include/linux/mm_types.h                 |  6 ------
 26 files changed, 139 insertions(+), 56 deletions(-)
---
base-commit: a6b4ba7acc23ac0fb680449981982f308ea75036
change-id: 20260109-at-vector-size-arch-6e0f2e9ff8b6

Best regards,
--  
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH v3 01/15] MAINTAINERS: exec: Add more auxvec.h variants
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 02/15] auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h Thomas Weißschuh
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There are quite a few auxvec.h headers. Mark all of them maintained
as part of 'EXEC & BINFMT API, ELF'.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 MAINTAINERS | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 93abbb315065..a659c9bfb0f0 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -10073,13 +10073,16 @@ L:	linux-mm@kvack.org
 S:	Supported
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/execve
 F:	Documentation/userspace-api/ELF.rst
+F:	arch/*/include/uapi/asm/auxvec.h
 F:	fs/*binfmt_*.c
 F:	fs/Kconfig.binfmt
 F:	fs/exec.c
 F:	fs/tests/binfmt_*_kunit.c
 F:	fs/tests/exec_kunit.c
+F:	include/linux/auxvec.h
 F:	include/linux/binfmts.h
 F:	include/linux/elf.h
+F:	include/uapi/asm-generic/auxvec.h
 F:	include/uapi/linux/auxvec.h
 F:	include/uapi/linux/binfmts.h
 F:	include/uapi/linux/elf.h

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 02/15] auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 01/15] MAINTAINERS: exec: Add more auxvec.h variants Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 03/15] asm-generic: add an in-kernel auxvec.h header Thomas Weißschuh
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

The auxvec.h header is a more fitting place for these definitions.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 include/linux/auxvec.h   | 7 +++++++
 include/linux/mm_types.h | 6 ------
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h
index 8bcb9b726262..4b364e639f08 100644
--- a/include/linux/auxvec.h
+++ b/include/linux/auxvec.h
@@ -6,4 +6,11 @@
 
 #define AT_VECTOR_SIZE_BASE 24 /* NEW_AUX_ENT entries in auxiliary table */
   /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */
+
+#ifndef AT_VECTOR_SIZE_ARCH
+#define AT_VECTOR_SIZE_ARCH 0
+#endif
+
+#define AT_VECTOR_SIZE (2*(AT_VECTOR_SIZE_ARCH + AT_VECTOR_SIZE_BASE + 1))
+
 #endif /* _LINUX_AUXVEC_H */
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 1ed35d258d2e..c75626c5aad4 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -26,12 +26,6 @@
 
 #include <asm/mmu.h>
 
-#ifndef AT_VECTOR_SIZE_ARCH
-#define AT_VECTOR_SIZE_ARCH 0
-#endif
-#define AT_VECTOR_SIZE (2*(AT_VECTOR_SIZE_ARCH + AT_VECTOR_SIZE_BASE + 1))
-
-
 struct address_space;
 struct futex_private_hash;
 struct mem_cgroup;

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 03/15] asm-generic: add an in-kernel auxvec.h header
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 01/15] MAINTAINERS: exec: Add more auxvec.h variants Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 02/15] auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 04/15] ARM: drop custom asm/auxvec.h Thomas Weißschuh
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

Upcoming changes will create architecture-specific asm/auxvec.h headers.
Add asm-generic infrastructure to handle the fallbacks for architectures
which are not migrated yet and those which won't require their own
definition.

Extend the list of includes in linux/auxvec.h to cover all potential
low-level auxvec.h headers.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 MAINTAINERS                  | 2 ++
 include/asm-generic/Kbuild   | 1 +
 include/asm-generic/auxvec.h | 7 +++++++
 include/linux/auxvec.h       | 2 ++
 4 files changed, 12 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index a659c9bfb0f0..8cee58e323a0 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -10073,12 +10073,14 @@ L:	linux-mm@kvack.org
 S:	Supported
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/execve
 F:	Documentation/userspace-api/ELF.rst
+F:	arch/*/include/asm/auxvec.h
 F:	arch/*/include/uapi/asm/auxvec.h
 F:	fs/*binfmt_*.c
 F:	fs/Kconfig.binfmt
 F:	fs/exec.c
 F:	fs/tests/binfmt_*_kunit.c
 F:	fs/tests/exec_kunit.c
+F:	include/asm-generic/auxvec.h
 F:	include/linux/auxvec.h
 F:	include/linux/binfmts.h
 F:	include/linux/elf.h
diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild
index b7a388bef6ea..6dc54359c4b1 100644
--- a/include/asm-generic/Kbuild
+++ b/include/asm-generic/Kbuild
@@ -6,6 +6,7 @@
 
 mandatory-y += atomic.h
 mandatory-y += archrandom.h
+mandatory-y += auxvec.h
 mandatory-y += barrier.h
 mandatory-y += bitops.h
 mandatory-y += bug.h
diff --git a/include/asm-generic/auxvec.h b/include/asm-generic/auxvec.h
new file mode 100644
index 000000000000..b5f73f35e21c
--- /dev/null
+++ b/include/asm-generic/auxvec.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __ASM_GENERIC_AUXVEC_H__
+#define __ASM_GENERIC_AUXVEC_H__
+
+#define AT_VECTOR_SIZE_ARCH 0
+
+#endif /* __ASM_GENERIC_AUXVEC_H__ */
diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h
index 4b364e639f08..de1c33c4a256 100644
--- a/include/linux/auxvec.h
+++ b/include/linux/auxvec.h
@@ -2,7 +2,9 @@
 #ifndef _LINUX_AUXVEC_H
 #define _LINUX_AUXVEC_H
 
+#include <uapi/asm/auxvec.h>
 #include <uapi/linux/auxvec.h>
+#include <asm/auxvec.h>
 
 #define AT_VECTOR_SIZE_BASE 24 /* NEW_AUX_ENT entries in auxiliary table */
   /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 04/15] ARM: drop custom asm/auxvec.h
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (2 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 03/15] asm-generic: add an in-kernel auxvec.h header Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 05/15] x86: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

With the introduction of asm-generic/auxvec.h, this header unnecessary.

Drop it.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/arm/include/asm/auxvec.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/include/asm/auxvec.h b/arch/arm/include/asm/auxvec.h
deleted file mode 100644
index fbd388c46299..000000000000
--- a/arch/arm/include/asm/auxvec.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <uapi/asm/auxvec.h>

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 05/15] x86: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (3 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 04/15] ARM: drop custom asm/auxvec.h Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 06/15] arm64: " Thomas Weißschuh
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/x86/include/asm/auxvec.h      | 12 ++++++++++++
 arch/x86/include/uapi/asm/auxvec.h | 13 +++----------
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/arch/x86/include/asm/auxvec.h b/arch/x86/include/asm/auxvec.h
new file mode 100644
index 000000000000..ed26ad09f3e3
--- /dev/null
+++ b/arch/x86/include/asm/auxvec.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_X86_AUXVEC_H
+#define _ASM_X86_AUXVEC_H
+
+/* entries in ARCH_DLINFO: */
+#if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64)
+# define AT_VECTOR_SIZE_ARCH 3
+#else /* else it's non-compat x86-64 */
+# define AT_VECTOR_SIZE_ARCH 2
+#endif
+
+#endif /* _ASM_X86_AUXVEC_H */
diff --git a/arch/x86/include/uapi/asm/auxvec.h b/arch/x86/include/uapi/asm/auxvec.h
index bdde9e18f94e..6677c9ace117 100644
--- a/arch/x86/include/uapi/asm/auxvec.h
+++ b/arch/x86/include/uapi/asm/auxvec.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ASM_X86_AUXVEC_H
-#define _ASM_X86_AUXVEC_H
+#ifndef _UAPI_ASM_X86_AUXVEC_H
+#define _UAPI_ASM_X86_AUXVEC_H
 /*
  * Architecture-neutral AT_ values in 0-17, leave some room
  * for more of them, start the x86-specific ones at 32.
@@ -10,11 +10,4 @@
 #endif
 #define AT_SYSINFO_EHDR		33
 
-/* entries in ARCH_DLINFO: */
-#if defined(__KERNEL__) && (defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64))
-# define AT_VECTOR_SIZE_ARCH 3
-#else /* else it's non-compat x86-64 */
-# define AT_VECTOR_SIZE_ARCH 2
-#endif
-
-#endif /* _ASM_X86_AUXVEC_H */
+#endif /* _UAPI_ASM_X86_AUXVEC_H */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 06/15] arm64: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (4 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 05/15] x86: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 07/15] RISC-V: " Thomas Weißschuh
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/arm64/include/asm/auxvec.h      | 7 +++++++
 arch/arm64/include/uapi/asm/auxvec.h | 6 ++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/include/asm/auxvec.h b/arch/arm64/include/asm/auxvec.h
new file mode 100644
index 000000000000..de24eaaa06e2
--- /dev/null
+++ b/arch/arm64/include/asm/auxvec.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __ASM_AUXVEC_H
+#define __ASM_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH 2 /* entries in ARCH_DLINFO */
+
+#endif
diff --git a/arch/arm64/include/uapi/asm/auxvec.h b/arch/arm64/include/uapi/asm/auxvec.h
index 743c0b84fd30..fb51e906813a 100644
--- a/arch/arm64/include/uapi/asm/auxvec.h
+++ b/arch/arm64/include/uapi/asm/auxvec.h
@@ -14,13 +14,11 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-#ifndef __ASM_AUXVEC_H
-#define __ASM_AUXVEC_H
+#ifndef __UAPI_ASM_AUXVEC_H
+#define __UAPI_ASM_AUXVEC_H
 
 /* vDSO location */
 #define AT_SYSINFO_EHDR	33
 #define AT_MINSIGSTKSZ	51	/* stack needed for signal delivery */
 
-#define AT_VECTOR_SIZE_ARCH 2 /* entries in ARCH_DLINFO */
-
 #endif

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 07/15] RISC-V: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (5 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 06/15] arm64: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 08/15] LoongArch: " Thomas Weißschuh
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh, Paul Walmsley,
	Andy Chiu

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Paul Walmsley <pjw@kernel.org> # arch/riscv
Reviewed-by: Andy Chiu <andybnac@gmail.com>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/riscv/include/asm/auxvec.h      | 13 +++++++++++++
 arch/riscv/include/uapi/asm/auxvec.h |  2 --
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/include/asm/auxvec.h b/arch/riscv/include/asm/auxvec.h
new file mode 100644
index 000000000000..0960bc07ccd0
--- /dev/null
+++ b/arch/riscv/include/asm/auxvec.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2012 ARM Ltd.
+ * Copyright (C) 2015 Regents of the University of California
+ */
+
+#ifndef _ASM_RISCV_AUXVEC_H
+#define _ASM_RISCV_AUXVEC_H
+
+/* entries in ARCH_DLINFO */
+#define AT_VECTOR_SIZE_ARCH	10
+
+#endif /* _ASM_RISCV_AUXVEC_H */
diff --git a/arch/riscv/include/uapi/asm/auxvec.h b/arch/riscv/include/uapi/asm/auxvec.h
index 95050ebe9ad0..0a725f2aa2e7 100644
--- a/arch/riscv/include/uapi/asm/auxvec.h
+++ b/arch/riscv/include/uapi/asm/auxvec.h
@@ -33,8 +33,6 @@
 #define AT_L3_CACHESIZE		46
 #define AT_L3_CACHEGEOMETRY	47
 
-/* entries in ARCH_DLINFO */
-#define AT_VECTOR_SIZE_ARCH	10
 #define AT_MINSIGSTKSZ		51
 
 #endif /* _UAPI_ASM_RISCV_AUXVEC_H */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 08/15] LoongArch: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (6 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 07/15] RISC-V: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 09/15] s390: " Thomas Weißschuh
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/loongarch/include/asm/auxvec.h      | 14 ++++++++++++++
 arch/loongarch/include/uapi/asm/auxvec.h |  8 +++-----
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/arch/loongarch/include/asm/auxvec.h b/arch/loongarch/include/asm/auxvec.h
new file mode 100644
index 000000000000..37dd717a3a22
--- /dev/null
+++ b/arch/loongarch/include/asm/auxvec.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Author: Hanlu Li <lihanlu@loongson.cn>
+ *         Huacai Chen <chenhuacai@loongson.cn>
+ *
+ * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
+ */
+
+#ifndef __ASM_AUXVEC_H
+#define __ASM_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
+
+#endif /* __ASM_AUXVEC_H */
diff --git a/arch/loongarch/include/uapi/asm/auxvec.h b/arch/loongarch/include/uapi/asm/auxvec.h
index 922d9e6b5058..79691c422c7e 100644
--- a/arch/loongarch/include/uapi/asm/auxvec.h
+++ b/arch/loongarch/include/uapi/asm/auxvec.h
@@ -6,12 +6,10 @@
  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
  */
 
-#ifndef __ASM_AUXVEC_H
-#define __ASM_AUXVEC_H
+#ifndef __UAPI_ASM_AUXVEC_H
+#define __UAPI_ASM_AUXVEC_H
 
 /* Location of VDSO image. */
 #define AT_SYSINFO_EHDR		33
 
-#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
-
-#endif /* __ASM_AUXVEC_H */
+#endif /* __UAPI_ASM_AUXVEC_H */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 09/15] s390: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (7 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 08/15] LoongArch: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 10/15] powerpc: " Thomas Weißschuh
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/s390/include/asm/auxvec.h      | 7 +++++++
 arch/s390/include/uapi/asm/auxvec.h | 6 ++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/s390/include/asm/auxvec.h b/arch/s390/include/asm/auxvec.h
new file mode 100644
index 000000000000..beaaefe12a84
--- /dev/null
+++ b/arch/s390/include/asm/auxvec.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef __ASMS390_AUXVEC_H
+#define __ASMS390_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
+
+#endif
diff --git a/arch/s390/include/uapi/asm/auxvec.h b/arch/s390/include/uapi/asm/auxvec.h
index a056c4637ffc..54bbfd68d709 100644
--- a/arch/s390/include/uapi/asm/auxvec.h
+++ b/arch/s390/include/uapi/asm/auxvec.h
@@ -1,9 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef __ASMS390_AUXVEC_H
-#define __ASMS390_AUXVEC_H
+#ifndef __ASMS390_UAPI_AUXVEC_H
+#define __ASMS390_UAPI_AUXVEC_H
 
 #define AT_SYSINFO_EHDR		33
 
-#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
-
 #endif

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 10/15] powerpc: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (8 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 09/15] s390: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 11/15] MIPS: " Thomas Weißschuh
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/powerpc/include/asm/auxvec.h      | 7 +++++++
 arch/powerpc/include/uapi/asm/auxvec.h | 6 ++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/include/asm/auxvec.h b/arch/powerpc/include/asm/auxvec.h
new file mode 100644
index 000000000000..d6c180e9ac2c
--- /dev/null
+++ b/arch/powerpc/include/asm/auxvec.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_POWERPC_AUXVEC_H
+#define _ASM_POWERPC_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH	15 /* entries in ARCH_DLINFO */
+
+#endif
diff --git a/arch/powerpc/include/uapi/asm/auxvec.h b/arch/powerpc/include/uapi/asm/auxvec.h
index aa7c16215453..9ab5b6d17929 100644
--- a/arch/powerpc/include/uapi/asm/auxvec.h
+++ b/arch/powerpc/include/uapi/asm/auxvec.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ASM_POWERPC_AUXVEC_H
-#define _ASM_POWERPC_AUXVEC_H
+#ifndef _UAPI_ASM_POWERPC_AUXVEC_H
+#define _UAPI_ASM_POWERPC_AUXVEC_H
 
 /*
  * We need to put in some extra aux table entries to tell glibc what
@@ -50,6 +50,4 @@
 
 #define AT_MINSIGSTKSZ		51      /* stack needed for signal delivery */
 
-#define AT_VECTOR_SIZE_ARCH	15 /* entries in ARCH_DLINFO */
-
 #endif

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 11/15] MIPS: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (9 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 10/15] powerpc: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 12/15] sparc: " Thomas Weißschuh
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/mips/include/asm/auxvec.h      | 17 +++++++++++++++++
 arch/mips/include/uapi/asm/auxvec.h |  8 +++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/arch/mips/include/asm/auxvec.h b/arch/mips/include/asm/auxvec.h
new file mode 100644
index 000000000000..76c445e7890f
--- /dev/null
+++ b/arch/mips/include/asm/auxvec.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2015 Imagination Technologies
+ * Author: Alex Smith <alex.smith@imgtec.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation;  either version 2 of the  License, or (at your
+ * option) any later version.
+ */
+
+#ifndef __ASM_AUXVEC_H
+#define __ASM_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
+
+#endif /* __ASM_AUXVEC_H */
diff --git a/arch/mips/include/uapi/asm/auxvec.h b/arch/mips/include/uapi/asm/auxvec.h
index 612c2c41f60b..1331ac4d935e 100644
--- a/arch/mips/include/uapi/asm/auxvec.h
+++ b/arch/mips/include/uapi/asm/auxvec.h
@@ -9,12 +9,10 @@
  * option) any later version.
  */
 
-#ifndef __ASM_AUXVEC_H
-#define __ASM_AUXVEC_H
+#ifndef __UAPI_ASM_AUXVEC_H
+#define __UAPI_ASM_AUXVEC_H
 
 /* Location of VDSO image. */
 #define AT_SYSINFO_EHDR		33
 
-#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
-
-#endif /* __ASM_AUXVEC_H */
+#endif /* __UAPI_ASM_AUXVEC_H */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 12/15] sparc: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (10 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 11/15] MIPS: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 13/15] sh: " Thomas Weißschuh
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/sparc/include/asm/auxvec.h      | 6 ++++++
 arch/sparc/include/uapi/asm/auxvec.h | 8 +++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/arch/sparc/include/asm/auxvec.h b/arch/sparc/include/asm/auxvec.h
new file mode 100644
index 000000000000..50c249a8bd17
--- /dev/null
+++ b/arch/sparc/include/asm/auxvec.h
@@ -0,0 +1,6 @@
+#ifndef __ASMSPARC_AUXVEC_H
+#define __ASMSPARC_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH	4
+
+#endif /* !(__ASMSPARC_AUXVEC_H) */
diff --git a/arch/sparc/include/uapi/asm/auxvec.h b/arch/sparc/include/uapi/asm/auxvec.h
index ab8780fb9df1..0fab3b29148a 100644
--- a/arch/sparc/include/uapi/asm/auxvec.h
+++ b/arch/sparc/include/uapi/asm/auxvec.h
@@ -1,5 +1,5 @@
-#ifndef __ASMSPARC_AUXVEC_H
-#define __ASMSPARC_AUXVEC_H
+#ifndef __UAPI_ASMSPARC_AUXVEC_H
+#define __UAPI_ASMSPARC_AUXVEC_H
 
 #define AT_SYSINFO_EHDR		33
 
@@ -10,6 +10,4 @@
 #define AT_ADI_NBITS	49
 #define AT_ADI_UEONADI	50
 
-#define AT_VECTOR_SIZE_ARCH	4
-
-#endif /* !(__ASMSPARC_AUXVEC_H) */
+#endif /* !(__UAPI_ASMSPARC_AUXVEC_H) */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 13/15] sh: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (11 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 12/15] sparc: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 14/15] alpha: remove " Thomas Weißschuh
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/sh/include/asm/auxvec.h      | 7 +++++++
 arch/sh/include/uapi/asm/auxvec.h | 8 +++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/arch/sh/include/asm/auxvec.h b/arch/sh/include/asm/auxvec.h
new file mode 100644
index 000000000000..f0830808eb19
--- /dev/null
+++ b/arch/sh/include/asm/auxvec.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __ASM_SH_AUXVEC_H
+#define __ASM_SH_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH 5 /* entries in ARCH_DLINFO */
+
+#endif /* __ASM_SH_AUXVEC_H */
diff --git a/arch/sh/include/uapi/asm/auxvec.h b/arch/sh/include/uapi/asm/auxvec.h
index 63fcc39e2c6a..cf0f13da977a 100644
--- a/arch/sh/include/uapi/asm/auxvec.h
+++ b/arch/sh/include/uapi/asm/auxvec.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef __ASM_SH_AUXVEC_H
-#define __ASM_SH_AUXVEC_H
+#ifndef __UAPI_ASM_SH_AUXVEC_H
+#define __UAPI_ASM_SH_AUXVEC_H
 
 /*
  * Architecture-neutral AT_ values in 0-17, leave some room
@@ -30,6 +30,4 @@
 #define AT_L1D_CACHESHAPE	35
 #define AT_L2_CACHESHAPE	36
 
-#define AT_VECTOR_SIZE_ARCH 5 /* entries in ARCH_DLINFO */
-
-#endif /* __ASM_SH_AUXVEC_H */
+#endif /* __UAPI_ASM_SH_AUXVEC_H */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 14/15] alpha: remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (12 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 13/15] sh: " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:37 ` [PATCH v3 15/15] auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH Thomas Weißschuh
  2026-11-23  9:44 ` [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Arnd Bergmann
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh, Magnus Lindholm

There is nothing userspace can do with this value. In the kernel is
always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
userspace and also changes from time to time.

Move the symbol to a kernel-internal header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Magnus Lindholm <linmag7@gmail.com>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 arch/alpha/include/asm/auxvec.h      | 7 +++++++
 arch/alpha/include/uapi/asm/auxvec.h | 8 +++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/arch/alpha/include/asm/auxvec.h b/arch/alpha/include/asm/auxvec.h
new file mode 100644
index 000000000000..fa90ee4f899c
--- /dev/null
+++ b/arch/alpha/include/asm/auxvec.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __ASM_ALPHA_AUXVEC_H
+#define __ASM_ALPHA_AUXVEC_H
+
+#define AT_VECTOR_SIZE_ARCH 4 /* entries in ARCH_DLINFO */
+
+#endif /* __ASM_ALPHA_AUXVEC_H */
diff --git a/arch/alpha/include/uapi/asm/auxvec.h b/arch/alpha/include/uapi/asm/auxvec.h
index 57cae8780d81..d21b87b6730a 100644
--- a/arch/alpha/include/uapi/asm/auxvec.h
+++ b/arch/alpha/include/uapi/asm/auxvec.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef __ASM_ALPHA_AUXVEC_H
-#define __ASM_ALPHA_AUXVEC_H
+#ifndef __UAPI_ASM_ALPHA_AUXVEC_H
+#define __UAPI_ASM_ALPHA_AUXVEC_H
 
 /* Reserve these numbers for any future use of a VDSO.  */
 #if 0
@@ -22,6 +22,4 @@
 #define AT_L2_CACHESHAPE	36
 #define AT_L3_CACHESHAPE	37
 
-#define AT_VECTOR_SIZE_ARCH 4 /* entries in ARCH_DLINFO */
-
-#endif /* __ASM_ALPHA_AUXVEC_H */
+#endif /* __UAPI_ASM_ALPHA_AUXVEC_H */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v3 15/15] auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (13 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 14/15] alpha: remove " Thomas Weißschuh
@ 2026-11-23  9:37 ` Thomas Weißschuh
  2026-11-23  9:44 ` [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Arnd Bergmann
  15 siblings, 0 replies; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23  9:37 UTC (permalink / raw)
  To: Kees Cook, Arnd Bergmann
  Cc: linux-mm, linux-kernel, linux-arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Thomas Weißschuh

All asm headers now define this constant.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
---
 include/linux/auxvec.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h
index de1c33c4a256..f7ddea1dbc8e 100644
--- a/include/linux/auxvec.h
+++ b/include/linux/auxvec.h
@@ -9,10 +9,6 @@
 #define AT_VECTOR_SIZE_BASE 24 /* NEW_AUX_ENT entries in auxiliary table */
   /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */
 
-#ifndef AT_VECTOR_SIZE_ARCH
-#define AT_VECTOR_SIZE_ARCH 0
-#endif
-
 #define AT_VECTOR_SIZE (2*(AT_VECTOR_SIZE_ARCH + AT_VECTOR_SIZE_BASE + 1))
 
 #endif /* _LINUX_AUXVEC_H */

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
                   ` (14 preceding siblings ...)
  2026-11-23  9:37 ` [PATCH v3 15/15] auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH Thomas Weißschuh
@ 2026-11-23  9:44 ` Arnd Bergmann
  2026-11-23 10:03   ` Thomas Weißschuh
  15 siblings, 1 reply; 19+ messages in thread
From: Arnd Bergmann @ 2026-11-23  9:44 UTC (permalink / raw)
  To: Thomas Weißschuh, Kees Cook
  Cc: linux-mm, linux-kernel, Linux-Arch, linux-arm-kernel, linux-riscv,
	loongarch, linux-s390, linuxppc-dev, linux-mips, sparclinux,
	linux-sh, linux-alpha, Paul Walmsley, Andy Chiu, Magnus Lindholm

On Mon, Nov 23, 2026, at 10:37, Thomas Weißschuh wrote:
> There is nothing userspace can do with this value. In the kernel is
> always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
> userspace and also changes from time to time.
>
> Move the symbol to kernel-internal headers.
>
> Meant to be applied through the asm-generic or execve tree.
> The default recipient list was huge. I trimmed it to only the
> architecture lists.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>

Hi Thomas,

I'm happy to take this through the asm-generic tree. I've already
made sure it all applies and the patches look good to me. I'd
wait a few more days for additional Ack or any other replies,
let me know once you think I should apply this version.

       Arnd

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23  9:44 ` [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Arnd Bergmann
@ 2026-11-23 10:03   ` Thomas Weißschuh
  2026-11-23 14:16     ` Arnd Bergmann
  0 siblings, 1 reply; 19+ messages in thread
From: Thomas Weißschuh @ 2026-11-23 10:03 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Kees Cook, linux-mm, linux-kernel, Linux-Arch, linux-arm-kernel,
	linux-riscv, loongarch, linux-s390, linuxppc-dev, linux-mips,
	sparclinux, linux-sh, linux-alpha, Paul Walmsley, Andy Chiu,
	Magnus Lindholm

On Mon, Nov 23, 2026 at 10:44:40AM +0100, Arnd Bergmann wrote:
> On Mon, Nov 23, 2026, at 10:37, Thomas Weißschuh wrote:
> > There is nothing userspace can do with this value. In the kernel is
> > always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
> > userspace and also changes from time to time.
> >
> > Move the symbol to kernel-internal headers.
> >
> > Meant to be applied through the asm-generic or execve tree.
> > The default recipient list was huge. I trimmed it to only the
> > architecture lists.
> >
> > Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> 
> Hi Thomas,
> 
> I'm happy to take this through the asm-generic tree. I've already
> made sure it all applies and the patches look good to me. I'd
> wait a few more days for additional Ack or any other replies,
> let me know once you think I should apply this version.

This v3 is functionally identical to v1 and v2 which have been on the
list of a long time. I am not sure how much more feedback will come.
IMO it can already be applied to gain more exposure in -next.


Thomas

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI
  2026-11-23 10:03   ` Thomas Weißschuh
@ 2026-11-23 14:16     ` Arnd Bergmann
  0 siblings, 0 replies; 19+ messages in thread
From: Arnd Bergmann @ 2026-11-23 14:16 UTC (permalink / raw)
  To: Thomas Weißschuh
  Cc: Kees Cook, linux-mm, linux-kernel, Linux-Arch, linux-arm-kernel,
	linux-riscv, loongarch, linux-s390, linuxppc-dev, linux-mips,
	sparclinux, linux-sh, linux-alpha, Paul Walmsley, Andy Chiu,
	Magnus Lindholm

On Mon, Nov 23, 2026, at 11:03, Thomas Weißschuh wrote:
> On Mon, Nov 23, 2026 at 10:44:40AM +0100, Arnd Bergmann wrote:
>> On Mon, Nov 23, 2026, at 10:37, Thomas Weißschuh wrote:
>> > There is nothing userspace can do with this value. In the kernel is
>> > always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
>> > userspace and also changes from time to time.
>> >
>> > Move the symbol to kernel-internal headers.
>> >
>> > Meant to be applied through the asm-generic or execve tree.
>> > The default recipient list was huge. I trimmed it to only the
>> > architecture lists.
>> >
>> > Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
>> 
>> Hi Thomas,
>> 
>> I'm happy to take this through the asm-generic tree. I've already
>> made sure it all applies and the patches look good to me. I'd
>> wait a few more days for additional Ack or any other replies,
>> let me know once you think I should apply this version.
>
> This v3 is functionally identical to v1 and v2 which have been on the
> list of a long time. I am not sure how much more feedback will come.
> IMO it can already be applied to gain more exposure in -next.

Fair enough, pushed out to the asm-generic tree now.

     Arnd

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2026-11-23 14:17 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  9:37 [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 01/15] MAINTAINERS: exec: Add more auxvec.h variants Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 02/15] auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 03/15] asm-generic: add an in-kernel auxvec.h header Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 04/15] ARM: drop custom asm/auxvec.h Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 05/15] x86: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 06/15] arm64: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 07/15] RISC-V: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 08/15] LoongArch: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 09/15] s390: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 10/15] powerpc: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 11/15] MIPS: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 12/15] sparc: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 13/15] sh: " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 14/15] alpha: remove " Thomas Weißschuh
2026-11-23  9:37 ` [PATCH v3 15/15] auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH Thomas Weißschuh
2026-11-23  9:44 ` [PATCH v3 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Arnd Bergmann
2026-11-23 10:03   ` Thomas Weißschuh
2026-11-23 14:16     ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox