From nobody Thu Apr 9 12:08:21 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 AC08836C9C4; Mon, 2 Mar 2026 12:25:46 +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=1772454347; cv=none; b=kK79YHrv6gRQ0GbKDDwy7PcDSfaB3k2SKUxfd1rMwCwfLrJpmEoPPM77WaN9q2KkVSE1w+7jQiBJgXDHuxHuXkvQ4vfz0o6FSnH9rVm7JNaGpmYEfjNKC/Su7sJ8kOi+2Ota4abzcXbkkquWmDN/yTWs/4aNlSSGTpCkqXo+huw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454347; c=relaxed/simple; bh=BIlr7zgi66zD1ig2kTolm4aENXktO7wosOLcoYFwhtU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ADBD+/eAWoLacUd9nrNbIF5HMDYyB+B7Cl8FM5zyjKmIHE6R/LVHQu9HXTYbMUn8AJGYbMZ4J2m6p8/qbPyDAbriVQbHoOBV7TEeJRn7NXhPJki1mi/1BM6fxJyNmsIlHajWlC+uwE29ZR/+38LKo52fsylgu8uiSETgYxEXSYg= 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=0ote18nb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/aSPglB8; 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="0ote18nb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/aSPglB8" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454345; 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=Y+wSVvr2iY1iH7k3F0iPCSqLzNSvbTbj527LLEkOjHE=; b=0ote18nbZ1t68zJyeexrdJSVHAZPwP9UOAsFgAAFR/fpqYcoez3egBK6lgBnGLIpBoYIKz byNNJflcxX/8kT7PsREcxt3F16BI7KnZB/m2IKc74GZSYeD2m3CHoAuFhIulLiNJ8gNHgT fEGJClPPwBHWhKwqt8bqeoHqX9DFdCRP2bHywf7Ar1A3BuZHm88vpLBma/whU2VfEjPu/N 0AVHGyqtCyidsedREaPVbnXHovlkR1DKs3rnrmanu3HagPXtCHNl99JbLfJz39FsFs/Mnq gYBYIP+QlW6OTeMQ6Ptwvq/2BcQ8xXbDDHUKO8JYjy6dMfwBHZRxnLHMpnCOzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454345; 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=Y+wSVvr2iY1iH7k3F0iPCSqLzNSvbTbj527LLEkOjHE=; b=/aSPglB8AXbqg7opAXpO0/jUG+0+n3k3JqmDL/ll0iG0SJf+fha6jNyO8a0dtGc75s+t06 2+O3rwMHLHMlBaCw== Date: Mon, 02 Mar 2026 13:25:25 +0100 Subject: [PATCH 01/15] MAINTAINERS: exec: Add more auxvec.h variants 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: <20260302-at-vector-size-arch-v1-1-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=935; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=BIlr7zgi66zD1ig2kTolm4aENXktO7wosOLcoYFwhtU=; b=0OWgCWYeIEIelNOmr0tEyiBwM5q6MuFfywVklpSmD0OLBHIs+3QQGBNYsmCJJqT5R/0oHxk2v IVHrY681uTqCvAuwCRegS2QuY8D2kC+ODREUKmQlpZd3Q/msGQ3Pvmv X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 55af015174a5..7a2c952d72bd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9573,13 +9573,16 @@ L: linux-mm@kvack.org S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-ne= xt/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 --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 4E61436C9DA; Mon, 2 Mar 2026 12:25:47 +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=1772454348; cv=none; b=MLlmFRvyxPkmnpp9CLoohhW+0MFGuY1OWPoic8HAKlpTEYi1+rpE8RNDIqLS8Qi1rwHnyl3eiNssA9awtHk5ktAY2mXrI0uvIlmaLxtEfF5Q3C7v7tfr0f0NEAiE2atwuVdAqx71U9q5dRSbUrqDAkXDxuqVZjbnPDMeJjyiVTo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454348; c=relaxed/simple; bh=R6dPuK9hTEu2wzxXNEaPtc8TE7i9ikP4nTJiTP9bZT8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=My7OKZ08AselRg4FtG8TFLT3yMv7JGCBjUQGQUBuGXfoRueKdzs6oYImQLUu+IGSAmZJykPqgWwthnrApamh3nFOgabsI6M4oCwYaK7oX449X0YE/gb794v9wJjnzzw9G/rNC6rnuovKZXmz71N19y4zO2bQWr07nHN+xecZqRA= 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=ZRJF2/RI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0RhC5Fte; 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="ZRJF2/RI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0RhC5Fte" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454345; 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=wgXUWuBQc37HPqUBgBljEt4K1lGTSpiCtiKFdFvnpEo=; b=ZRJF2/RIYlZzXdvvP4EyC5ziS1eYTGNaiCpGWGAlhlhh6WP8XJtMwKY10FScMfkRk07Kpn WAm0HrLrPe3V8GufiCyKFmoR+hIoDakEwVJRmOfrOG1vTfDvZthRNy9j1FqSQDBSumosRb lSJyQo7Ek9W6Irxwps/fZr6+32MXQ1g940bY7aUn2wgzoOpTYYGfSmYo1TtUi2eNGBzDXQ HoOKG9XkKlO6Lsynm5IwDc/mDANODBHa3D+7XWmQ4jr8Z4GRPHRxNIFyYedKVrZJWzUsgn Xi/TXpXkeaoOKoyyrYw2RkYIhmbqg4P5rd78zu1pTPRTbMW07FzruR62fY8Dzw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454345; 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=wgXUWuBQc37HPqUBgBljEt4K1lGTSpiCtiKFdFvnpEo=; b=0RhC5Fte5zjulHI4Ol2L/ovJ2Kd9lvvPGCNYvwBDoFq6AG8nEkIzJV8ldugwY4YHFGhnle Y1e4YJBTshKAKTBQ== Date: Mon, 02 Mar 2026 13:25:26 +0100 Subject: [PATCH 02/15] auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h 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: <20260302-at-vector-size-arch-v1-2-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1267; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=R6dPuK9hTEu2wzxXNEaPtc8TE7i9ikP4nTJiTP9bZT8=; b=ZulijLjkAtvEzMGw3cQEKThTnvyrB3XWkn02AB0dxIROztyb5g4HrOCwXizPScG4JZMtRLaOM 3hiDIzMjiB4ARdfLbg+OTnHYu6B/6h5UxzpDiSphCOmDSpy2QygkNcG X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The auxvec.h header is a more fitting place for these definitions. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Kees Cook --- 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 407f7005e6d6..943e8b80b41e 100644 --- a/include/linux/auxvec.h +++ b/include/linux/auxvec.h @@ -6,4 +6,11 @@ =20 #define AT_VECTOR_SIZE_BASE 22 /* 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 3cc8ae722886..64019dc29f4c 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -25,12 +25,6 @@ =20 #include =20 -#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; --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 DC2DB36C9E2; Mon, 2 Mar 2026 12:25:47 +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=1772454350; cv=none; b=HqgXi2m9oPuv3kzO+WhmYYNQDiMvRXXmcr6h0k0oiYwQnh7Nvb33pFYvpZVAZs70kdoCAPhu5ddJaTSTE3WNC8z3zs2fvXbDQpYO8+QVQpKnRWe6IzvDpYujDuHs8gBmbNOpzvQ9e708OXqjaMpcRaO6G1Odmh3bYJSt1q2ofgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454350; c=relaxed/simple; bh=juGti0dpwtScxN3ZOParltAs+5PHUSX08Ot1ja9jIhY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=quCksy5BdHOFTc59v5IB9ZEd1lKEeYuXFkhAjmGe+YWxC1CClmknG98dsDzf8Wmzvr4fv/z/fBVLRxXRh2m+nTXTJ4GbGyuZQCQcBDOVn3sfgSVXYpuyWDvedXq5EjG8d8VE1XYt4seGJTAReDAvz6u5frCIFV0rYpUW4IldI0I= 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=VSTpMZSg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=G/2aXJAd; 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="VSTpMZSg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="G/2aXJAd" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454346; 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=BHIzJvF5KQOpwYCYi9ql6W4HspVQ0yjpDjp6mM86yJw=; b=VSTpMZSg42IpjDoyq8x9+eZPlsHoPorC5Yp8YHj4lKeW+Q1Szd1xOG4fFF7EJLwDkmEElh Z3g2XNlLUEQXFYWtT1wTzzVrlTXkuKzTmGMw+x0EqKJ4LeUXrjJjJz9lJnK+89gpq3WLGy oN1SPmqhXJjTI1F26N/mPppPlsn4jQGpTDBXT0NDq/8fxvXULJkTzM2tpxTQVwaHLcuW1U Ae/LHkrGix4F6TnO6aBb8sxd1YFTkcIXW+VMaM4TNsJsrPLF9PBIQ54+mKt8MHtaGAITcS B+X5r0z7pzo5rFVib7xx/JWax0hdtUhV0alQE1QY5Ha1BrzXLHxtWhLz6E8YJA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454346; 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=BHIzJvF5KQOpwYCYi9ql6W4HspVQ0yjpDjp6mM86yJw=; b=G/2aXJAd/neq7Iq6LG5EvgJJLTyYQF8QAAaiLOtne55+AhOQkYy3dDXFI4V6jUcj/tzh18 cH1j7O7IEeC/0FAg== Date: Mon, 02 Mar 2026 13:25:27 +0100 Subject: [PATCH 03/15] asm-generic: add an in-kernel auxvec.h header 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: <20260302-at-vector-size-arch-v1-3-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=2425; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=juGti0dpwtScxN3ZOParltAs+5PHUSX08Ot1ja9jIhY=; b=Xcrk5dRYDUnYdF4eUZUFljFjwJQobHGx53H0FPFSGhAS/a5w0rdNpYo278IFrTj31KWMPplHV UTZtJZTy+WEAZQyCi2JwlViZJY/10n5lJZhKwTiWSCLwCN/M5GCwyen X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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 7a2c952d72bd..239c4e3ef5c6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9573,12 +9573,14 @@ L: linux-mm@kvack.org S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-ne= xt/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 9aff61e7b8f2..756a991aef67 100644 --- a/include/asm-generic/Kbuild +++ b/include/asm-generic/Kbuild @@ -6,6 +6,7 @@ =20 mandatory-y +=3D atomic.h mandatory-y +=3D archrandom.h +mandatory-y +=3D auxvec.h mandatory-y +=3D barrier.h mandatory-y +=3D bitops.h mandatory-y +=3D bug.h diff --git a/include/asm-generic/auxvec.h b/include/asm-generic/auxvec.h new file mode 100644 index 000000000000..e4abd2a8c5ed --- /dev/null +++ b/include/asm-generic/auxvec.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_GENERIC_AUXVAL_H__ +#define __ASM_GENERIC_AUXVAL_H__ + +#define AT_VECTOR_SIZE_ARCH 0 + +#endif diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h index 943e8b80b41e..68c9d6b118a9 100644 --- a/include/linux/auxvec.h +++ b/include/linux/auxvec.h @@ -2,7 +2,9 @@ #ifndef _LINUX_AUXVEC_H #define _LINUX_AUXVEC_H =20 +#include #include +#include =20 #define AT_VECTOR_SIZE_BASE 22 /* NEW_AUX_ENT entries in auxiliary table */ /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF= } */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 7258836C9F8; Mon, 2 Mar 2026 12:25:48 +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=1772454349; cv=none; b=VOwTbrHAqk5gk46mZ/GxD0D/Xnqs4l3gljclx70R5B7gMhbuxlFN5vYByB367W0tqRA1wcR+qmJZi1oYlzdiUXkXn/PFV2HazemP1UIRA2YWl2yoXtWuKaj+dmCX4913hXZs+QdTmndtxCiIf8TZLR0zaNp9JGOMYKQQ89JRELs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454349; c=relaxed/simple; bh=x3siZYFPocmk1PJ7pJ2spSV3FxjnTs1Nv3DHpd4VwUE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZvdJFyFzJ+WirLbFBGUjgVIbVqT9v56XaJvnvv1fj9kPW8RIxmXVlX/eRFakIh6nW/q2WtmLlOkP+qovYEbdaPYjAFBfCsJo3pZtJVIQmOj71frzS3+KyfMHp3Jt6kEsDf/TFMtYUEovtcJ+Rz/UQGahKSv/w2gjGZ/sPV7Wabw= 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=rxZQv7hK; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4UlDmyzz; 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="rxZQv7hK"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4UlDmyzz" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454347; 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=glnHOe4x1n8QotwxnJCfVYRyCZYHnBdaRGVCFc6KFbk=; b=rxZQv7hKeFYWJyFKJsUWMqNlbl2vjnSpyMUWvtbM+KVkUK8WaqYOWnhTleOFkje/NFvInP Qt/vVXUdfFnn1iq74C1RCTqwoqvw522r7PU2TEuWmhtnt/N+13u0BFDqvSJ9+N50ZjfS4U BSarBmo8rYOEJLTRt0ek/3O3vhTop7sJQum0OPLLRalA9vrZx9iZHrKfjYg84JldDBDnZA t0WwlWRm4tnjSIcfZAdKa6/AeBM96TDCbJDRytzgPtYIaNnWXkYcPaqvUu9PXVyIRi67Kg DLHn9Iv+m+Ef7KGJDn9Agiynrv+ZuTEFjtwN8a9glkN8hM57G/egFrrJPWtgeg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454347; 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=glnHOe4x1n8QotwxnJCfVYRyCZYHnBdaRGVCFc6KFbk=; b=4UlDmyzzjetdRsu/XceNY6w9k+iZB9u+rg7F/k0y7+4PQofKHMuBzzowktpEfzJO2FIgmM N2iAdlv556mYd5Bg== Date: Mon, 02 Mar 2026 13:25:28 +0100 Subject: [PATCH 04/15] ARM: drop custom asm/auxvec.h 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: <20260302-at-vector-size-arch-v1-4-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=481; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=x3siZYFPocmk1PJ7pJ2spSV3FxjnTs1Nv3DHpd4VwUE=; b=rDZhb8bdTw53LKoUbzecX+TybS3+vD/iuZGnWTOdu4kbPRoekZDJcE/myi94bDcvoXoVfIa/j i0gchlTXUzRD5/MoKkZ/K9H2k8m5yzGUuEJql+dJlXH03noNQrp6bhu X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= With the introduction of asm-generic/auxvec.h, this header unnecessary. Drop it. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Kees Cook --- 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 --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 23A9B36D4EE; Mon, 2 Mar 2026 12:25:49 +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=1772454350; cv=none; b=f9Hy/ei5vjOFOJ9oGiFhURuwjdtOdd0modt0KibXTUl+2Bt2lorkfUxHW0XjKIE1hdp5tpPk+32Woae0UcYZce25EZEnOSNTfU42O4NUnlDBoLwXINSdwxcmq2XghN2WhEEPtB3mbtoR9glN4hFvu1bqcI2k3f26QcOvBvdHsnE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454350; c=relaxed/simple; bh=H/zS+Ct3UHio/FsL18acsKnK+cbSHWGTE0BjVHLUtvg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tKX8pOpf7IEBs9XMPmSlsQs2PAbwLGAaFa56vDtDSfu5oRPHwSMBegCVK8gA7oDxikPQ7Wlsf0sMYAIfFDiuXLstrAMqc4M1cqiqn9WMMTK1vH50SLq1wyP2ojIjJACzB+ftxn2bCLKq8oYJ/SkJIw4MDG5Pduj7mBGmrgSNRGs= 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=NgEmBRH8; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wBjvzdwE; 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="NgEmBRH8"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wBjvzdwE" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454347; 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=yr/FVLaERA/6AyGKnbc+eEestu0HgmTMXr3G7w1zsEE=; b=NgEmBRH83vNY7H36CH4oO6VnJ5MAvKmiUKvwK3t7ouIQuPACqkkjKl2URmwcjH+onPdSZb r9EzOPFWNJPD/IuM4H7H7vF+bKQ2SYeG40TaRA9tVFaRIHivjPmTcNQ5/9CdZNluIMIyXb eAEshz46RA8/Ju0Ah9MapcJN+oVWn19o1cu3Mz6ujerXIQ7x5HQj7wht4jZmqkSgxgJ1TF 3OxHlKUOzBCmOC0KB00MIeEsuA/rH+5YF1NUpCcU5Zfiqm6TXzb8mbOaNOvRguUB5IAS6w sz6lJH8dDDk5KbCgBUQK4ckDtwyo3MRB9L7tWcpXT8jZB/H/xMqqehwM/C37xw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454347; 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=yr/FVLaERA/6AyGKnbc+eEestu0HgmTMXr3G7w1zsEE=; b=wBjvzdwEGM5OTq4hn5Ae5qenwnN25sPzXSMLGyi7kK7MBM5frm1SN3i93koTAjShsmKHdH r/HgSkHAiAt1SKCQ== Date: Mon, 02 Mar 2026 13:25:29 +0100 Subject: [PATCH 05/15] x86: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-5-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1952; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=H/zS+Ct3UHio/FsL18acsKnK+cbSHWGTE0BjVHLUtvg=; b=zafh0BF3nW0lW74zLMVAm5CMViipzIhJlV12m0OWQt+FQwiQhO8t2F9dDNqKSZeCroOF2w7dU QaM4A6LGzPhCYQpOkBtTE0q/iOHVWPqMyNJAu5/H35A8mav/lYtcmVc X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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 =20 -/* entries in ARCH_DLINFO: */ -#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 -#endif - -#endif /* _ASM_X86_AUXVEC_H */ +#endif /* _UAPI_ASM_X86_AUXVEC_H */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 AB08236C9EA; Mon, 2 Mar 2026 12:25:49 +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=1772454351; cv=none; b=YUiE4R/CeqpLcCz3rF+aJdKk1Y8xrW7kiV5axoMv8LFCCeSa3/ZzPXXic+0myF4CPo+0VSRyLLgZ6vkUFokany7ocSnJ14rc86KhVcp/0oToQX2rLqjzxIAWNc1t5dXCAGn2It+UCWP1J1DkhwxzOd/OFXtKjydFEVOAF9xotj4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454351; c=relaxed/simple; bh=NcNAjFpusRcTaOeHqUd5vUDlghSduTpD8ok7Y/f07wQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q/Izpuxlb7PwlXnP4TtSU2uUM2WuGBjomzuuGM9PU87AXzD8VhUXvkawZS0QpWefuT0KHkRQoyFkXzlMDe/2kW7tPTNw6xSyJhfp3B1Ql8KzLHcld1b0QymEypaLqW8yUtXr/C9Qz4k5gAXcvAdiiOt6R8DGn8Av6x4c4v+vMfU= 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=CRJt/UjA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MBwnxjs+; 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="CRJt/UjA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MBwnxjs+" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454348; 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=tlk3cqJZ30Lz5MhUet1qgc5NgTTbprbGncwAJnGFeH8=; b=CRJt/UjA77my9s/VwzZr+j6qmjyF3oIVyiLTMYKBq2Sh1cqL0kMsN1qmUgdc0mTKviVZ9P rN5i5a2mJ6Syz8O+A5oRl7YkQu+OSRfqOmex5k1XFQHkmUmRrESTPgOKRNKDTjrQIhhPOe Pi1gueEvqygXyPKCQB6giWSdTNlUs1PSeqcgS1aXQZ/YSKg5AdFODTmb+LA74y68Q8bzlw jpjjnG3HeKthKo3qJCjXHqWWI2YRAQZEtkJjshcmL3gflfzyYuoBG9keXT4sRjMDDa8Mjo FvTT8WwqKMRr+0hgvx/TqCyJBmOuXOHqaUuaNctXm7PoJedartXLjhTimMdJLg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454348; 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=tlk3cqJZ30Lz5MhUet1qgc5NgTTbprbGncwAJnGFeH8=; b=MBwnxjs+xWwop6Ct7CBgP9e8by6gH+y3rfllXxAy/TGMGEjACAyDkON2IpJ6i+NGG/l5A8 GOlZMj1xzUvgZ9Aw== Date: Mon, 02 Mar 2026 13:25:30 +0100 Subject: [PATCH 06/15] arm64: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-6-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1548; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=NcNAjFpusRcTaOeHqUd5vUDlghSduTpD8ok7Y/f07wQ=; b=MiKiwAWA2C+9P7E+r7QvNNNf10TuRkC/eecHXJHLCNJUMLtyvOLvvIqkh8xzavM6nRpnPO504 Fm13zL1o5/hDGNiNI3mFFSmqn9QMFTOn5P81Y3mb9x9by94kvb/sFzx X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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/auxve= c.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 . */ -#ifndef __ASM_AUXVEC_H -#define __ASM_AUXVEC_H +#ifndef __UAPI_ASM_AUXVEC_H +#define __UAPI_ASM_AUXVEC_H =20 /* vDSO location */ #define AT_SYSINFO_EHDR 33 #define AT_MINSIGSTKSZ 51 /* stack needed for signal delivery */ =20 -#define AT_VECTOR_SIZE_ARCH 2 /* entries in ARCH_DLINFO */ - #endif --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 42CB636D51E; Mon, 2 Mar 2026 12:25:50 +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=1772454352; cv=none; b=aR4IYDWHrpwE1C5BCDwwhpbc5tixBDxenO4yY4WWhgd3/YWIx8raey/vAs3poVUorll82OMnDce8UQBQ71814J5IDYb53hZ9D2FpL7twbGpuH0K9zWwmm8vv2MNyUH+zsgMooWE1PHOUXG7iC3L/561sIMqxAu2rZr8yOma45kQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454352; c=relaxed/simple; bh=Zpl+G7mVLygoIP0MMSeWtai1WKLwvJyTNt46U7Sw0iE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kry6hPuUINjt5Gx3tC0cJxpkClgRRJCrtsTljvjbpLj9A7PuxPXlmCfyasVMH9+KmXkr9VbiMhzh+Rdp9lDFrCCEvAgzStsQG9VBYutO6olxvCaPuBqXR39YxsdSu1853WQJenLUEvQ5O49zl3j0QmmUVIr6Yty2EtdDtSuy+Dg= 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=ajSAQlia; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=JwfnIxj0; 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="ajSAQlia"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="JwfnIxj0" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454348; 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=p/rC8JaKdvarxwfXTuFmyKVLUxrMKeBR1vS+B+mbt60=; b=ajSAQliaS2qS7tskq6tMH3t68+qJUkIdQPRiKkQMCt0DsJ7PTdi8iUy+3o2QlTfA/80+BY pL4KjEeMLMt5yVfqYI8OjS5j5Hgc0vW1HnPf+ayu8rkOjs3Vqzr3P8Pvk1qR09O6GiUPU7 UjvxcgX0fxJ2BXwr0xwniOcLVDPzRXV2NpnJ6qmMXgvTVUCqPxt79l9TQoCuPBc5LqctF5 MOP0zzVzjZIt8A9dHgSUvittHeK7AIKBGH1r07yFDH3F1nOQGX7jARYyieK4yCcZ8SyVqP WgJmsqUP71HlSfhNa2LCC30IGSGkt4eDD2DxsNAdFLLAYMipDWo+OKxY7VeX8A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454348; 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=p/rC8JaKdvarxwfXTuFmyKVLUxrMKeBR1vS+B+mbt60=; b=JwfnIxj0Sdg5oU0oqOjI3YutVwzh75rX2vx7bewd7VBp+XEcIlK6TmXTrPbufqiMTXJYxv PB8QnQj/S2BFCGBA== Date: Mon, 02 Mar 2026 13:25:31 +0100 Subject: [PATCH 07/15] RISC-V: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-7-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1455; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=Zpl+G7mVLygoIP0MMSeWtai1WKLwvJyTNt46U7Sw0iE=; b=1sF3PQMcvc8QkKpWrYiRBLQP3NxEkxGiX9D/WLc7u5XoilAqV1Gvh/xCY9I+JL4qVtUA6VIVB dt3gdx2a1ezB0KhTVbLa5Br+JAHDOGRPvkd3jjBSo797OWQR9U01GlA X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Andy Chiu Reviewed-by: Kees Cook --- 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/auxve= c.h new file mode 100644 index 000000000000..fb4233445276 --- /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 /* _UAPI_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 =20 -/* entries in ARCH_DLINFO */ -#define AT_VECTOR_SIZE_ARCH 10 #define AT_MINSIGSTKSZ 51 =20 #endif /* _UAPI_ASM_RISCV_AUXVEC_H */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 CA03936D9FE; Mon, 2 Mar 2026 12:25:50 +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=1772454353; cv=none; b=PcurpLkGXS6i+2ZXyRW+mLgKi7sXEBZO6ihU9cf8BUVwcZgWmDmf4qscIMpcShNfNCTaC6ec5o/iIsSEdekGtafb7uVc/P07SoLEu369BxDzkJbHs7Pov1fNBKTSQEh/j12Dsq8QcP+bPguANJnqRJLgkJ26nlxuh0XinFYNQH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454353; c=relaxed/simple; bh=+/a7BCuaRvs/grFgisGI29OqfBKuEYQlySRlV2+Ad3w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HA/t3uIRt+jH2/+N8SoORgCuLBUlloabSPKFlKjW3YDt8pSLrPRPi71UR1AOSFOFpW4IuhfSKIX5PMAU/4NDFOmJaNKmh4ez03Cwx6OsVLeEd/bKMG0eaw8g0NlnfrpYD2x9OOunMdT/UN7SbyErIROT7sGwgGYE+dGOT42HVFQ= 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=u5zypD0/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YRuN5Am8; 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="u5zypD0/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YRuN5Am8" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454349; 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=KXDeF7UDpB8ZiPE3iLm028k2zogpL4XBUC66IjBoygE=; b=u5zypD0/i7Uz5OODrlF49hQ+lpWWTOdLI3nJOWR1OIvOaMO/3vb+rs4YWorLAbvP3SeupE efw3ir1dAVgCC7GhhgW3qdEFCEqGz/gSDiFzw5LRuYIKpRBxkhhBowXFddLuhZtiaOP4gF dlepkL6XEteTWqc5T9no4ZA3k61IKxfE6IyhfQStErarfrPL67AkxEbr6CYYlqNEZQVMqN NX7z/XIV3AaMIkKD+rc7xX8BEr+XDtbuCIpEFqfZ3QBZQ8mYAYth30AHwbN8dJIxz2QK7H BcQ+zup4ER2aBs9NnJ3azWnJ9/PQBtVXq08kdgFnw32rydUXnsqSCDbbdOlVJg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454349; 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=KXDeF7UDpB8ZiPE3iLm028k2zogpL4XBUC66IjBoygE=; b=YRuN5Am8QTcAru6KtUv5IvXWiWNuN4ajxCeRCgIAwKrJtoAJkHubhsTbdBJDWkHmvs5dPw Q4dALwGBXmkPgVBw== Date: Mon, 02 Mar 2026 13:25:32 +0100 Subject: [PATCH 08/15] LoongArch: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-8-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1725; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=+/a7BCuaRvs/grFgisGI29OqfBKuEYQlySRlV2+Ad3w=; b=PsVs/lovJCA1Gx2WwwkdDjFmcUu2Juw49xEDuMkmmUjNuORoQIekOKf3Yr14UygMky0lYF1th pALKMlLZtR4CkzYTF734/hb85wQvMSVlXVQIwWJIc24yD/mabNmcyJT X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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/a= sm/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 + * Huacai Chen + * + * 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/incl= ude/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 */ =20 -#ifndef __ASM_AUXVEC_H -#define __ASM_AUXVEC_H +#ifndef __UAPI_ASM_AUXVEC_H +#define __UAPI_ASM_AUXVEC_H =20 /* Location of VDSO image. */ #define AT_SYSINFO_EHDR 33 =20 -#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */ - -#endif /* __ASM_AUXVEC_H */ +#endif /* __UAPI_ASM_AUXVEC_H */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 8424036DA16; Mon, 2 Mar 2026 12:25:51 +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=1772454353; cv=none; b=Q6XmaTjoDlqa2G3KdIcKTRq2AOLOPZnjrrYDx+Uu0adTsHRVSfavTz7nUXMhSpPxX+whh1bjNdAS/ZKTZh/odieczpls/hxG29vpCL76VXELdwRgTS2fRt4Ai/lq6QcVMTKn3qM3C8wmWsPwdQfx78EPA0x2s7aEQCeqQZ7gZ/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454353; c=relaxed/simple; bh=wSV5J7HzEFuS3KJbZLwjne1zxmW3zDPxdBoyG55t7aA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tujOWzssvB+ebaO7TeCqbKPFN7Qy8HSXXHFILc5TqjxyTqBcUXitIRh5xfNg0t0JN6qGOSI59HNwN9zO6j4BsibTpAJCw0kbhBpldqj0MQ3El+eHC1QQl+jNd9HAu67c6CBkOzs1yo6vS/dJ8IPpYKhBYABiIltmwmaPQz7QS2U= 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=NHM8ly0i; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=M5bdRgSQ; 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="NHM8ly0i"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="M5bdRgSQ" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454350; 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=cGu4YUonqtswtsX27rVZnBUBJm/UklEpSAAXy65RzL4=; b=NHM8ly0iuYcuh7E4eVeKeGXpReTprXhsGXJI+WYqlEaUf/lJYOUtBGH2QJnSAmI3I5QAPW LY468YWc+wcltpXurLXAtczrS3GRRs7ErvM61alrkPsKE3X9qmMsWKbpRyDz62q6oE5QGd Cw8Ohv3wtKFFpU4zvThVjA5RvZbBiw4fuurA+7UNWmQxvsskDaVVA4bfSSZgB12N/2TAie 0omDMNnN9zOIOVB7ao1DehqzId2upP6OirsIQL+gbHRxhanTRwW23vCB34naWTWXi9Htpn 0i4DmvsTWUtmu8SNg8v9pArAePWhRXG5bmVWZWSE0NmChST4B+21+gbeLT8M7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454350; 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=cGu4YUonqtswtsX27rVZnBUBJm/UklEpSAAXy65RzL4=; b=M5bdRgSQ3QlnfcfTl+A8OeDFC/IW8uhkG1G/LEw+Ak1w+mPEMp7EWeeSHFb/e7QgJ7ScQS t/VtnQymro8BskCg== Date: Mon, 02 Mar 2026 13:25:33 +0100 Subject: [PATCH 09/15] s390: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-9-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1408; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=wSV5J7HzEFuS3KJbZLwjne1zxmW3zDPxdBoyG55t7aA=; b=DiL9Q3q9a2OSCTrfhnV8gNkfPXzhPZlr/JwJIjpZtjcaaAF6eqOl6SEEE9FmY9unQs6qSC3IS Tt2RIf9FHBFC64LLNTZGUWGPwKnIoYVR6wJCeubfkDRjuZzU3F/usem X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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/a= sm/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 =20 #define AT_SYSINFO_EHDR 33 =20 -#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */ - #endif --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 D9CCC36E473; Mon, 2 Mar 2026 12:25:51 +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=1772454353; cv=none; b=fRyn0vQ0TxLZ+TobP96baqVnmYHtSAd+DJ2/g28/D3OpR9K275RbV/VFsnEa/9fRIn51xbtfGar2IpZ7muN5+56u7rF9Pz8VI6Glx8pHrvjByw/rH4uQMjkqVSnCpLbMx5UjwMuWuqQT+6Qt1ca9CDKo3QrVu1skbLEGUt03MZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454353; c=relaxed/simple; bh=KhAA9NBJJtHIM22o0JEE0DI+I7SP3GR1+cUX6gC6bWM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OMbGJ3GxXFMVwBAZVtHJfjuU/2Yecn7lDlIIQgqAS4HvAVXO9OExryeX7WYt0r8mcwmPVQ5vPhaF/ch0yPRWxGXlXUIbdD1HtA1pAC/7tAKqamX1vq3GVg2QDmpHhMyhsHE7ZhReP7xbMdqrUhuaQ1xck5XeNpuoUDffIYVSCMM= 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=zCoq9RLG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jvOwc5/7; 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="zCoq9RLG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jvOwc5/7" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454350; 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=vJXnjzhafvwvwcLJeLx/JDThum82eNRZ+z9+q40EfBA=; b=zCoq9RLGS8+8Po3hHcth4EHhs3ixn4AZwUIPixmCjgLS1Hf03Lgv9rf45OpQ6lXKNYcXmO x0ZUWl6+/PgitXxeWXIAzELn5d1DXLXNveRN9V3nF0ozyW2UUehdzvPfjGObc1KJJdDrL4 nptOdJbV7CxiN74qy7BRfU4PGFVQaeTGo+XxFJnmWo0PTJnjnUg5HmCvvm22q9qyxQgeJ7 X5BS/l8Yhy3jYQfDTK8hyatzbIIv6JfQsxytr6PIJESv6V9EwDsSq/G6tuk7rOU8/WH9fV LGEhauN3fOdaJMmrQI1L3e6wvuXkuiFz2uTYTcldWK1Zipo7oGvhkQShz2ob/Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454350; 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=vJXnjzhafvwvwcLJeLx/JDThum82eNRZ+z9+q40EfBA=; b=jvOwc5/7jBII+uejUvR7Ec31ujH98q8FcAeuuCJ+X8H4M7QnsAQzjQ0jhftKvsfJJyxGq/ KBFXdSVINJ5ZpaAg== Date: Mon, 02 Mar 2026 13:25:34 +0100 Subject: [PATCH 10/15] powerpc: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-10-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1572; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=KhAA9NBJJtHIM22o0JEE0DI+I7SP3GR1+cUX6gC6bWM=; b=1xI34QvitdF0I83i8CIUtWdYTc0yBgqiKjqBALtMj6mhthZIMQsEaK/I9frbiDgrwa8Dyn2kR BAhEAkxtO/bDDzmtnODmzu2v6S9A4iYl4oRMI1eIsDxYQs6Kx5lcAWN X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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/a= uxvec.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 =20 /* * We need to put in some extra aux table entries to tell glibc what @@ -50,6 +50,4 @@ =20 #define AT_MINSIGSTKSZ 51 /* stack needed for signal delivery */ =20 -#define AT_VECTOR_SIZE_ARCH 15 /* entries in ARCH_DLINFO */ - #endif --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 6247E36EA8E; Mon, 2 Mar 2026 12:25:52 +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=1772454354; cv=none; b=ECBfhWMbSvCJNY/ibNruPV6JWWfnu+ODhYPl+Ltojt+Bby5og9+exiwHmJwo0IcSYkKk9eSyJHpGEYiZpFGvJaIQPpIAPFPlMTooLA72V29PndsUy1TebPRkd7TQDTy7lx43c5ZXNT1nOMTzwrJwa00YYcXL5AneMA2lXSL9vSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454354; c=relaxed/simple; bh=TLuD8XFHYeCFVZxgca4zMFKNXfKPCtPRG8z7BYiMKxc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gHioHgrHFnOgCTCdJ5/ue0Vef9TN/NowFLYYknNdI5rYpyi8nzxAG+cHxBhAQQvEjT6dIplVlPwHIsCQdGrgfNZh0VklFVGbeJiOCIE63pIoN3jWPL/zh5C4UwJ2knBwyFG8rDVjPhY0BXSUooHe9xnZ1VjbaEd+RrLqou48ojw= 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=r/CSxxEZ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=S21YjUM3; 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="r/CSxxEZ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="S21YjUM3" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454351; 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=ecfuUU5azHq8roSLF5Ax0HiBG0Iw5IvlHchWrSnBNHs=; b=r/CSxxEZZPx25noWnuLPEOlvg405Xw3xca3EQ0DE8oLM2u4AtAQKtb0mTgYGT7zNHayXKG BQcz8N1JHly/LqSLJydEWe+r3AoQ9SjVio2xtukiWONbZ7tY/j6K9f9K/VAjR8Y+XIZzRg Gc3NPnb6uEX0qpxuX6WKeYi+5XpUgY123rtr0SMPuI2QKA/Rp/0x4Yn05tRyih5Vmihiq1 9LOdeK/U4wIXyctQGqk4grG7EJUMxQHBdiNQ768uDI5Dv6mpUX8ufkZ5jaGs7ki5MemiOk Kn0+iI9vvKr8GdhcFoMuZ0AFt61kGSLtejHCDQWf6JNj0nKrPOa3fswYI5rCNg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454351; 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=ecfuUU5azHq8roSLF5Ax0HiBG0Iw5IvlHchWrSnBNHs=; b=S21YjUM37qvJpPQjuNWiTVpxOK1UlM+hhPYM3nYbn/dEZid8oxS5V9nRwJIuc/r7qqTqec PWpqTrRguz3wgvCQ== Date: Mon, 02 Mar 2026 13:25:35 +0100 Subject: [PATCH 11/15] MIPS: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-11-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1842; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=TLuD8XFHYeCFVZxgca4zMFKNXfKPCtPRG8z7BYiMKxc=; b=1ouhbDL/O9yTtFSwv4lrq+riHwXSRD0g9+uI9iWaUTHNLcjc0IXfS0sFkkdYUE4260PFKC7dE 4P5ShG0H57pDHM2jDb3gFoqedukI/2cts2/yo62lyKCENJaUAL69pb8 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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 + * + * 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/a= sm/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. */ =20 -#ifndef __ASM_AUXVEC_H -#define __ASM_AUXVEC_H +#ifndef __UAPI_ASM_AUXVEC_H +#define __UAPI_ASM_AUXVEC_H =20 /* Location of VDSO image. */ #define AT_SYSINFO_EHDR 33 =20 -#define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */ - -#endif /* __ASM_AUXVEC_H */ +#endif /* __UAPI_ASM_AUXVEC_H */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 057E236F437; Mon, 2 Mar 2026 12:25:53 +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=1772454355; cv=none; b=pkDm/HdMab2/tMZ8Csc5Xzw++TENpIX75DlGqBz4wsLAC0hGGTZpba5a7NoWvBUHAjJs2q0HFnm05JKQ0c0rH5SNl2IlQ1PMS8Ym2VYeimukySF6dus5oSohNulehDF2442ELVNRQ0oMJlzpWGeYYa4T3UGAXNnpzlkStfEzuq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454355; c=relaxed/simple; bh=Iwaju8vXi9F4QFXCQeLchkBfrV3+4S1lN9ALuspGOMM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EolkyCao2h938HdMJsRSWLeRHHCQds/rrhVtqSKEP3w/wO8dgEniT1rctooULLCDJP9uVzI7L9IrtUFb8qSp++REKgyY2Su7smeV1sqjKQjjSL4jgBQExPWaxyUWQlc3o30gwAWJoITT05LIj+Vo3mLaSzs2Up37KBSHH2lxVHQ= 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=DRPBoJTS; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=l3N5HQGw; 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="DRPBoJTS"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="l3N5HQGw" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454351; 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=IIl7i97gp0WaH6kynmrYy0424iWZ8UY7WAcAVJym5Rw=; b=DRPBoJTSt1Cn72FxGrkICtx6iDm9aDHjx/AiP76zWoLsyxyzrn4ftQM8rjPsBPR2yghAxc iR03PQOiOtY65dbfApwClyN8khUvycPTz5RPDD0zS6rfyoHl/BLatzcQVmp558W1UrU0/V DFLjDsmsvIVFvnRmUwCirnFDQgXPo+umbV9RIGje8FXGAYZUx+Oi9PCoWGSVr6fjD4npDk X0e31PVB5vjJFxtV/JxaclK2glIQQnIbrbYGPZVHGwtbyhuWE04K6kgZN5ywBmzdxx54K9 oRG0MM6oeTqAEIOftIbOHX4Ql1V8Gitv0Z0kUSKeQRgIsWMIjbEf/G/ltVyCjQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454351; 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=IIl7i97gp0WaH6kynmrYy0424iWZ8UY7WAcAVJym5Rw=; b=l3N5HQGw9RkKQ8pgKQOl0uOf0kedifyuf/MGCLSijjuMiUCiOQTt4T2v93KxTFefrGNyku 1oJIKuXH2FuNXNBQ== Date: Mon, 02 Mar 2026 13:25:36 +0100 Subject: [PATCH 12/15] sparc: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-12-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1413; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=Iwaju8vXi9F4QFXCQeLchkBfrV3+4S1lN9ALuspGOMM=; b=qYE0Cjq7x88NCS4YgSX8MOndLBO3D8QhHWThM4b0UUGFInc+vhxv4cTOMQS/J6/diZo2W/4vM jvG23iECxNuCS96zpughHWKWr8+8K3S6bWHHCGi1ZI/2c1sH/jMD9lc X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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/auxve= c.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 =20 #define AT_SYSINFO_EHDR 33 =20 @@ -10,6 +10,4 @@ #define AT_ADI_NBITS 49 #define AT_ADI_UEONADI 50 =20 -#define AT_VECTOR_SIZE_ARCH 4 - -#endif /* !(__ASMSPARC_AUXVEC_H) */ +#endif /* !(__UAPI_ASMSPARC_AUXVEC_H) */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 B8969373BF4; Mon, 2 Mar 2026 12:25:53 +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=1772454355; cv=none; b=IGArGZFoPf5bCOti0/yZl7e0WQ8LJYhynV3Gl6mkAUezux30viWgIwr66PPrI+wkPAU1aX70zc5xVzOOGfIhLIws+TwtmYCNegWFvB5myrXsCoDHB3vgv2duHLNTjYBqvPnQq3vQogNIIhytLcd6La0mxLQBtqQMbekY5arJTLY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454355; c=relaxed/simple; bh=H/m8MEbscz6WrH/+FAiysHkWJ0RcGdw589TTpDmII/4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l5n0g3a58LIZ2PPH/TGaNIlM4jYR4V09uc1LMMkPKUFCUmsJGBc/FFbn0cWLnvXlpLy9jfiwP5/8cBhB0ukoJiF59NHIrWte/TYEp7Z4ziAAOa5SsR/Df4Ee9VK96Yll8q2nOfX+t72Umov4wqB/oL52acsfCNMQkBNXcNLtztI= 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=da6EZmSf; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=l0hZVyeq; 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="da6EZmSf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="l0hZVyeq" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454352; 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=6IuCsvm2cGfELoFVj6dzhBy1SObe9G7IuVP1EF/2gXo=; b=da6EZmSfUm9111bFjIM3F+dNlZNGWPW1eN0BtOHAmyUkek/S4ApnyYsLAvQDTs3BfD8bNR olHyAq4d14aPCG7ZVsMhzqZcxVZhq3SlX2/LZCZ6bRx/FXwxP01+/B9YgUVTVhxcjQD3Xe 2QVGzitWwT+eK+uYSrOBd3wPjWBv6oX0WxUiljKTgs5w4p1AATrCcykQEjpm7Wckv9EzS4 R+prsnzd1PNt3Wn0W+ZeBl5H6RAhXbXQNmrGKr9HD5az0J/a+4xWjV23G7X5AoolJFcj9Z JCL0A7KseyQ+esU0vtZv29qwN6j6gzV74ezeGydEcvB+RCAX1FY+gd/IX8cYpQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454352; 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=6IuCsvm2cGfELoFVj6dzhBy1SObe9G7IuVP1EF/2gXo=; b=l0hZVyeqGYmKCh8kKgBW2VcGXwDLfx5b9Gdrnegn+TBMrdFjh/F3qGt4TKfpLXDUNM+pxG 6dNRMGZ/nruazVAg== Date: Mon, 02 Mar 2026 13:25:37 +0100 Subject: [PATCH 13/15] sh: Remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-13-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1566; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=H/m8MEbscz6WrH/+FAiysHkWJ0RcGdw589TTpDmII/4=; b=70FaFWSkNZh4Bigz/FCzkj6Q189+PNtssX+j5xte676xMOG9LLtUgl7gGtydm5ZgSwLz8qm7a m8JP07HyaioCw989TZl/9nlUAJ4kPMiJ3LDiNOJB7E4QpPK9Lg7q5Qc X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Reviewed-by: Kees Cook --- 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/a= uxvec.h index 8eb47ede7193..1b07c4bfe160 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 =20 /* * Architecture-neutral AT_ values in 0-17, leave some room @@ -34,6 +34,4 @@ #define AT_L1D_CACHESHAPE 35 #define AT_L2_CACHESHAPE 36 =20 -#define AT_VECTOR_SIZE_ARCH 5 /* entries in ARCH_DLINFO */ - -#endif /* __ASM_SH_AUXVEC_H */ +#endif /* __UAPI_ASM_SH_AUXVEC_H */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 2AA70373C0F; Mon, 2 Mar 2026 12:25:54 +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=1772454356; cv=none; b=Baztd+kwLWUnaaGJKYHw5ywhf+fA8Y7Nk4Em0PkHDJ63wOk2Yl+StUolET1ywzqAwyZ8dNU2ePEWBe2E2aj4V8lpbmTbd0nLynUgbM2omglnBWZ1IOU4ZLwhyPpfLO2BTMEgS0CqCKaBUWJxL/0KBKpSUqt0xqWjqlwG1hFsuX8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454356; c=relaxed/simple; bh=1k5fCTPjgHXmT1wIddDgmvVMNFYPCfoGbNYiBvOaniE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ClNG2WnI0d3lRam122Qp1FhgJaboRS+x+ocMMGI8hlZbKpdB0PpMs1Ej215HixfG8IEVzaRfKfJ/hZJLltlF34PJYtbKqaBCT5J4puAE64YqIIDnB0ye8Nl0ji17ONDMHiiYJysVNTrS1tHK9RJeTNiYy+ljGu+Zp3uPl8CPw4w= 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=MW1bGCsS; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Glqb/iX5; 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="MW1bGCsS"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Glqb/iX5" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454352; 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=rUatCUMGjSOAYdWwYL9kAf5S0UMPuz+Fx84eRD4pGU4=; b=MW1bGCsS9DfO9X+v0DSKadvLFn+SWmk1pn+rddicrRlb+25XuZl0eJt6iP0G+BXg34cvQ+ 1Ypq8dU9/4H9JLtsbNLwN5Op4E1bl+T4qCK3Q+t4+bjDkmJqqKq1cZulRp0Q5bjxyuTa47 wiRCfLK8Jy/Zk+I2mf8sQaKTwx9mwTzg39fMPaeuYCeMY1g5BgCHN7iPogP3geq0eUFj3Z 1espng2OIo24NrTFZzZJjZfVEZhat3bTP91FgzcChTJq/X8HDD3/SOOdkrO038gUGid1NP /TG9xAya313yScFDighxypdFYvV3s2al8OVDGX6NMfe71/7TtA36WV+yKWJIog== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454352; 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=rUatCUMGjSOAYdWwYL9kAf5S0UMPuz+Fx84eRD4pGU4=; b=Glqb/iX58ImwLmydqxjJwzbHZqXKn5FJ/rKO/+KdO7fpIDILYZKeypk8G9y+WgL/AIWKQi 8ZSn2D4OHrttUMCg== Date: Mon, 02 Mar 2026 13:25:38 +0100 Subject: [PATCH 14/15] alpha: remove AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-14-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=1621; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=1k5fCTPjgHXmT1wIddDgmvVMNFYPCfoGbNYiBvOaniE=; b=+emcoOjpmCtOGbRKRilDXun4wh9rZo8IxjTkm9zYNPepV3X+fcHLumuZs3KaZBdDmhAbmZz3X Sar6SiZRFKiDIiijEXUFkxsbjuuwCItZ6i5gyRlwHoXVec8Fv7oUaT2 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Acked-by: Magnus Lindholm Reviewed-by: Kees Cook --- 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/auxve= c.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 =20 /* 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 =20 -#define AT_VECTOR_SIZE_ARCH 4 /* entries in ARCH_DLINFO */ - -#endif /* __ASM_ALPHA_AUXVEC_H */ +#endif /* __UAPI_ASM_ALPHA_AUXVEC_H */ --=20 2.53.0 From nobody Thu Apr 9 12:08:21 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 B276B37472E; Mon, 2 Mar 2026 12:25:54 +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=1772454356; cv=none; b=FluORprMvq4dhG5ZOIcagJeiGxumgCNEDTpfve4nKF8/DyjSgfkmTIu94qmXkcM+VGSQVMOLw+YRJPlicUmzLQEO25QTuSoUg14EruJOGPq2UISPxdNJWxVDGDpfSkjt6UCwlkbMccopiEtfjFI9ETSM324LBYht8l8HzWCY2E4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454356; c=relaxed/simple; bh=3SgKzX2uaURwdk6BulOU26vMp194sxSrGIKk7+4gH+o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YW9OxaqX28eWCi6RqPzxV0keumuS3Y2/sler+WrMEpA2vCyeEmhes7EOQtkQFXZCvULAPhUPVleqxG976Yq8FLRlcetB9sK/uiNZjlP8JaxOIKJ65kuj2uMAzs5Dhag1W/Qyz/6nw2yPxRJuweBu+RB3d1S5JLeVqPXVf3NtFEY= 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=bjv0a6y3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=BYfC3Feg; 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="bjv0a6y3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BYfC3Feg" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772454353; 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=Gk+DNY1FnX2Is9++3W7weFVsUWOyhOhif2Eu1mxTHc8=; b=bjv0a6y3jCZ57+M0uFA88aCV5qSJ4Nd0obqTh1cZRZ6IaeWWNg/CTFwcAHwXw//lfMMUVu m1Mpa8otbmrWDJUuqL59FPydBljYCAaaGVif88nsL7FmUoVnPZ45eBu/dbmrRuw0f6Yo6w v9eNArcvNvWsTi5mM3dGszF37CncJy76utUKDIR7HGZiggCkaqipBC1lZDaBI2haLxXiKZ M35kORuqVQt+esRy8qf4cdpa+eJ/GDFoQkajHSv+QyO+Ky0KkAVVx8uVkOXMDX0AEguZXr nuJHkW7DK+/9SJ98zVgc7fjaR+AC8titmzEOvetbJ5VW1vSlFpSMgU0fO2yfFw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772454353; 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=Gk+DNY1FnX2Is9++3W7weFVsUWOyhOhif2Eu1mxTHc8=; b=BYfC3Fegaop1FFBF9oem1OjAUVs0XyTKiFOs56Iip+kmC013SL48mBu/X4JFdKO5qcaRVH 9OQ9T+TEdCCCwCCw== Date: Mon, 02 Mar 2026 13:25:39 +0100 Subject: [PATCH 15/15] auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH 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: <20260302-at-vector-size-arch-v1-15-a11f03ba2ca8@linutronix.de> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> To: Kees Cook , Arnd Bergmann Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1772454343; l=730; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=3SgKzX2uaURwdk6BulOU26vMp194sxSrGIKk7+4gH+o=; b=vht2sJN2rUis/ZgzV++4P2sJ59ygy9DcT8yNfNbBA9oZ/PokJlfDEb+BAVSUMWrI8Um52Kvy2 /R46rtq58zdC0ybNyXouxNGCbUYsNmMjl7tobyboz5eg/Pw0p7lpe82 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= All asm headers now define this constant. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Kees Cook --- include/linux/auxvec.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h index 68c9d6b118a9..814f984726d6 100644 --- a/include/linux/auxvec.h +++ b/include/linux/auxvec.h @@ -9,10 +9,6 @@ #define AT_VECTOR_SIZE_BASE 22 /* NEW_AUX_ENT entries in auxiliary table */ /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF= } */ =20 -#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)) =20 #endif /* _LINUX_AUXVEC_H */ --=20 2.53.0