From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA32710775E6 for ; Wed, 18 Mar 2026 16:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qpUij/boElpxZS1JyC/IIVmLkerZuIkDbeCw+AaRVqc=; b=IYNVGV3svAIMCXpIr3OrZMwmGW G5w3yBNcz+TKqAhk6Lo096HeY0ua9xvJ/01R+UxepsOhm/vGe1TW0jivE4NiUZMoD4tZHPIY6/t+B 8ozAguUMLhYI+PwovzHPsEkevoK5fUYV0xlFDIjpxOOUOnslLqn0AiApsbWlCzB4s66xexOgbPS73 AsZmZA152MT7e1kKhaAwdzcinIAa+TA0pnwC4C6NPOL+6xL2XaqQJkxtEemgcORh4Quq0sQodeOTZ cvXr6tTwTqBcPw29J7RcDpF0fKWo86H5MlHprbnWY3ga0c7d+VubX2KKtLiB4vQglNWAqHQe5l4rm PvRWWdfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w2tfC-00000008ueC-28c8; Wed, 18 Mar 2026 16:22:30 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w2tfA-00000008udm-0kCT; Wed, 18 Mar 2026 16:22:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 8A99260097; Wed, 18 Mar 2026 16:22:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AC48C19421; Wed, 18 Mar 2026 16:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773850947; bh=FGNSu4DlIfiUMZa5ZkmaJp/QIn2lggE4u2Ndygv6FBY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XpeluXyxDsZzF3NAmckdqJwpVkaAqttUopjBMOigcEjrW9PG4hOk9bFNjIu2+1hu1 IcsDTmGhCVATBRixcmNQQhBpayz2AxBxUoh+MbYsjRcLuorNTLiwBf6/k0JgHJn6Wz raA3nLiznqIL8OBq0mPUTLKCPd5eb3Bv2V64KLPcxM+MrRFRw5yx4UwmNfiJttbMZO J7HUEZM+SLsx9D5/aRBj0upZmqFXxEgFHzFGt2zHtfm6J4HCe4vfApVE0dgUg61GmQ 0lp53wfP1tgknNDPDCf1MumSabgXnKYpdnqZftaDNWH4frl/QojAulg09IVXxCoww0 l5WkFd3jbD+kg== Date: Wed, 18 Mar 2026 09:22:26 -0700 From: Kees Cook To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Arnd Bergmann , 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 Subject: Re: [PATCH 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Message-ID: <202603180921.1B52D626@keescook> References: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260302-at-vector-size-arch-v1-0-a11f03ba2ca8@linutronix.de> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 02, 2026 at 01:25:24PM +0100, Thomas Weißschuh wrote: > There is nothing userspace can do with this value. In the kernel is > always combined with AT_VECTOR_SIZE_BASE, which is not exposed to > userspace and also changes from time to time. > > Move the symbol to kernel-internal headers. > > Meant to be applied through the asm-generic tree. > The default recipient list was huge. I trimmed it to only the > architecture lists. I don't see anything in Debian Code Search that actually uses this symbol, so that seems fine. Userspace already parses auxvec looking for AT_NULL, so length isn't useful. Reviewed-by: Kees Cook > > Signed-off-by: Thomas Weißschuh > --- > Thomas Weißschuh (15): > MAINTAINERS: exec: Add more auxvec.h variants > auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h > asm-generic: add an in-kernel auxvec.h header > ARM: drop custom asm/auxvec.h > x86: Remove AT_VECTOR_SIZE_ARCH from UAPI > arm64: Remove AT_VECTOR_SIZE_ARCH from UAPI > RISC-V: Remove AT_VECTOR_SIZE_ARCH from UAPI > LoongArch: Remove AT_VECTOR_SIZE_ARCH from UAPI > s390: Remove AT_VECTOR_SIZE_ARCH from UAPI > powerpc: Remove AT_VECTOR_SIZE_ARCH from UAPI > MIPS: Remove AT_VECTOR_SIZE_ARCH from UAPI > sparc: Remove AT_VECTOR_SIZE_ARCH from UAPI > sh: Remove AT_VECTOR_SIZE_ARCH from UAPI > alpha: remove AT_VECTOR_SIZE_ARCH from UAPI > auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH > > MAINTAINERS | 5 +++++ > arch/alpha/include/asm/auxvec.h | 7 +++++++ > arch/alpha/include/uapi/asm/auxvec.h | 8 +++----- > arch/arm/include/asm/auxvec.h | 1 - > arch/arm64/include/asm/auxvec.h | 7 +++++++ > arch/arm64/include/uapi/asm/auxvec.h | 6 ++---- > arch/loongarch/include/asm/auxvec.h | 14 ++++++++++++++ > arch/loongarch/include/uapi/asm/auxvec.h | 8 +++----- > arch/mips/include/asm/auxvec.h | 17 +++++++++++++++++ > arch/mips/include/uapi/asm/auxvec.h | 8 +++----- > arch/powerpc/include/asm/auxvec.h | 7 +++++++ > arch/powerpc/include/uapi/asm/auxvec.h | 6 ++---- > arch/riscv/include/asm/auxvec.h | 13 +++++++++++++ > arch/riscv/include/uapi/asm/auxvec.h | 2 -- > arch/s390/include/asm/auxvec.h | 7 +++++++ > arch/s390/include/uapi/asm/auxvec.h | 6 ++---- > arch/sh/include/asm/auxvec.h | 7 +++++++ > arch/sh/include/uapi/asm/auxvec.h | 8 +++----- > arch/sparc/include/asm/auxvec.h | 6 ++++++ > arch/sparc/include/uapi/asm/auxvec.h | 8 +++----- > arch/x86/include/asm/auxvec.h | 12 ++++++++++++ > arch/x86/include/uapi/asm/auxvec.h | 13 +++---------- > include/asm-generic/Kbuild | 1 + > include/asm-generic/auxvec.h | 7 +++++++ > include/linux/auxvec.h | 5 +++++ > include/linux/mm_types.h | 6 ------ > 26 files changed, 139 insertions(+), 56 deletions(-) > --- > base-commit: f6b3b0a4c85882ad75bce3b093173203e3f39f28 > change-id: 20260109-at-vector-size-arch-6e0f2e9ff8b6 > > Best regards, > -- > Thomas Weißschuh > -- Kees Cook