From nobody Tue Sep 16 08:44:38 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78EB4C4332F for ; Wed, 4 Jan 2023 19:21:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239874AbjADTVJ (ORCPT ); Wed, 4 Jan 2023 14:21:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233421AbjADTVG (ORCPT ); Wed, 4 Jan 2023 14:21:06 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C23B24F; Wed, 4 Jan 2023 11:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1672860060; bh=EkluNBVpVWqQAv87WSQmghkcqC2q2Qy6C1sH75HStM8=; h=From:To:Cc:Subject:Date:From; b=uHpzNIkexlMwMW6tcNulYBdFNfgt/LIfn/2hxHwEPbcvX0EY0xNxNtx4nytz3So3I eA4+dqiTbDQVdhd/5EhS+4kZS8AtpXJffodZopOxaRaFj3FT/oFc5P2rlQCU1x4/2G CT50Dnc7FAsOeq+2T4Rv7mvTMfa6ugO8kX0sGDfg8+ZPOr/94ClKDjO5WytRyNlZvE OyziHvhheM8LLwjdeAx0OoHWRa2guPOmWACMe6l0kzsOI8bzgmI8EdSmWnJ8pGjEa3 OISba1sr4BVI6b4KNdf+TWbjKplAKoJIySKWR+KSJonxNseLadt0ct+/Wc+NVEgfZo eg5JQL5oa8ZMQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4NnKFm4PWhzf6q; Wed, 4 Jan 2023 14:21:00 -0500 (EST) From: Mathieu Desnoyers To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@ACULAB.COM, carlos@redhat.com, Peter Oskolkov , Alexander Mikhalitsyn , Chris Kennelly , Mathieu Desnoyers , Nathan Chancellor Subject: [RFC PATCH tip] rseq: Fix: Increase AT_VECTOR_SIZE_BASE to match rseq auxvec entries Date: Wed, 4 Jan 2023 14:20:54 -0500 Message-Id: <20230104192054.34046-1-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Two new auxiliary vector entries are introduced for rseq without matching increment of the AT_VECTOR_SIZE_BASE, which causes failures with CONFIG_HARDENED_USERCOPY=3Dy. Reported-by: Nathan Chancellor Link: https://lore.kernel.org/r/Y7XJKZhuU9VJZQ11@dev-arch.thelio-3990X Fixes: 317c8194e6ae ("rseq: Introduce feature size and alignment ELF auxili= ary vector entries") Signed-off-by: Mathieu Desnoyers Tested-by: Nathan Chancellor --- include/linux/auxvec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h index f68d0ec2d740..407f7005e6d6 100644 --- a/include/linux/auxvec.h +++ b/include/linux/auxvec.h @@ -4,6 +4,6 @@ =20 #include =20 -#define AT_VECTOR_SIZE_BASE 20 /* NEW_AUX_ENT entries in auxiliary table */ +#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= } */ #endif /* _LINUX_AUXVEC_H */ --=20 2.25.1