From: sashiko-bot@kernel.org
To: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
"Kees Cook" <kees@kernel.org>, "Arnd Bergmann" <arnd@arndb.de>
Cc: linux-mm@kvack.org, linux-s390@vger.kernel.org,
sparclinux@vger.kernel.org, "Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH v3 03/15] asm-generic: add an in-kernel auxvec.h header
Date: Tue, 24 Nov 2026 09:49:24 +0000 [thread overview]
Message-ID: <sashiko-outbox-230870@kernel.org> (raw)
In-Reply-To: <20261123-at-vector-size-arch-v3-3-d342dae9e843@linutronix.de>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] asm-generic: auxvec.h unconditionally redefines
AT_VECTOR_SIZE_ARCH to 0
--
commit 0c922d7a496b0d1a5af6ec9787042de6d54ad285
Author: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
asm-generic: add an in-kernel auxvec.h header
This commit adds an asm-generic/auxvec.h fallback header as mandatory-y
and includes uapi/asm/auxvec.h and asm/auxvec.h from linux/auxvec.h.
> diff --git a/include/asm-generic/auxvec.h b/include/asm-generic/auxvec.h
> new file mode 100644
> index 0000000000000..b5f73f35e21ce
> --- /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 4b364e639f080..de1c33c4a2560 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} */
[Severity: High]
Does defining AT_VECTOR_SIZE_ARCH unconditionally in asm-generic/auxvec.h
redefine and clobber AT_VECTOR_SIZE_ARCH on architectures that still
define it in uapi/asm/auxvec.h?
For any architecture that does not yet provide its own asm/auxvec.h
(such as x86, arm64, riscv, powerpc, s390, mips, loongarch, sparc, sh,
and alpha at this point in the series), mandatory-y generates an
asm/auxvec.h wrapper around asm-generic/auxvec.h. When linux/auxvec.h
includes uapi/asm/auxvec.h followed by asm/auxvec.h, AT_VECTOR_SIZE_ARCH
is redefined to 0, breaking the build under CONFIG_WERROR=y and shrinking
AT_VECTOR_SIZE and mm->saved_auxv[] when built with CONFIG_WERROR=n
(which causes create_elf_tables() to write past the end of
mm->saved_auxv).
Later patches in the series migrate those architectures out of
uapi/asm/auxvec.h one by one, leaving intermediate commits broken for
bisection. Since linux/auxvec.h already provides an #ifndef
AT_VECTOR_SIZE_ARCH fallback to 0, could asm-generic/auxvec.h omit the
AT_VECTOR_SIZE_ARCH definition or guard it with #ifndef
AT_VECTOR_SIZE_ARCH?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-at-vector-size-arch-v3-0-d342dae9e843@linutronix.de?part=3
next prev parent reply other threads:[~2026-11-24 9:49 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
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-24 9:49 ` sashiko-bot [this message]
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
2026-11-24 9:49 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-230870@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=arnd@arndb.de \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=kees@kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sparclinux@vger.kernel.org \
--cc=thomas.weissschuh@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox