Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13723763rwl; Wed, 4 Jan 2023 12:05:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXuz8Mu8a6onP1hZ7+5VeD4ZxNsXRi6qim8aySgQIIagnJ5MD0ChiMPnpYqhUigsCYA3yVt/ X-Received: by 2002:a17:906:7e55:b0:7c1:7442:8b70 with SMTP id z21-20020a1709067e5500b007c174428b70mr47258932ejr.75.1672862743816; Wed, 04 Jan 2023 12:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672862743; cv=none; d=google.com; s=arc-20160816; b=sGkEKQrZ8JoGvc3I1x7uD/+J6z9H4I1uxe23XtORGcFfaPu2Um9NVS7Bk1bM/nTKYW pa61Vbwb0itRkKTPeS+PTPrqHr4XkI/KRORHLA7mIVbs8d+T0NPoyJ3Kt/ZTi2ScNG+V DVYRHxWUfZ+67cu8z0J0XJKy7ZMU+I7c59GWRAI4rVOkvkK+gFxKxQ6PmKt2IyklEzA7 nhFkuKeJXZ/VUCKguAPY5NQtkGKwS7FymkdRpLOhUlfUi+37ztRJBpNuX4Jn7tqpkmPV 4jVnNaenC4QSwNk+3trNgwqBwlcNkY+xTzEFI64BaoYyywKciRWo7Qi4vUotYR4vX/Gt ZPqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wIhu1moa6HEAy5TYuUydB8p5PcFpIdgQ3O9Dw1rYOxU=; b=aT8KUWpyxBwq3eQ5DbNM1BIE0J9bsmiy230LJKhFc9f8A7Rp9lXzXz8zgHAi1UEQTI GD9yH/kIUoys8VOOoiqb2fTMyuprp7XLvm33cUKSO4IbYJhPtwbPbiwrbtF/I/PFrmPl WfOJPRdc1ZzPwHzY4kzN+1Gi3el7dvwWui0X6a+VJhMIWr9CNjzcIaFTH3xRXcULWIAk GJ3ZRSNGeVC11MiBDCi6Hhi5GMGS0TBlBskVhYzNNQ/VjydzqEK0c1/IZK0tiGr+EW1O C6PV9rZKcAruPsXvMTSCF07Fiq9tQrzctTDkOx3JjGvcOoQZp6WJ3PxcAcD3KSwk36NI A0gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RJEvnwIm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga7-20020a1709070c0700b007bf9de4fe91si34345443ejc.53.2023.01.04.12.05.30; Wed, 04 Jan 2023 12:05:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RJEvnwIm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239277AbjADTYl (ORCPT + 56 others); Wed, 4 Jan 2023 14:24:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232953AbjADTYQ (ORCPT ); Wed, 4 Jan 2023 14:24:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15AA324F; Wed, 4 Jan 2023 11:24:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B1981B818B9; Wed, 4 Jan 2023 19:24:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87942C433EF; Wed, 4 Jan 2023 19:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672860252; bh=HMofFnLD4nMl6SokG6q6jiqDbjpbt0AiauT5OjkYS2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RJEvnwImU36uFY+yMmoyC8R/9RuH1XfrnRgaWSPWcowLcfxDhjSgh8qAAn7TPp1hR /rk5d3RH33uspdhXhNqPA7OughkCDWxxWDIKPcTmfX/XktNsCpUxPVna95rT5z7mrW /XvadQMdOVqWlPUiOProIicHKaU/T4uGYfTt747fr8vAXz8jOLij4AhDsuQxExIhTR RdCyC5Jzze3BRmiZJW/sjbu5qlyNwV1d+3zXEmlwE2hge7CzJxSL61cgG2e3dbXDuo bJ5QdcWllh6RP0kAyIva0mAnKokhQIezd7oDegEaFqWArNUWGL+aPPfyINDp9790ee 7eAdt5pNxspkA== Date: Wed, 4 Jan 2023 12:24:09 -0700 From: Nathan Chancellor To: Mathieu Desnoyers Cc: Peter Zijlstra , 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 Subject: Re: [RFC PATCH tip] rseq: Fix: Increase AT_VECTOR_SIZE_BASE to match rseq auxvec entries Message-ID: References: <20230104192054.34046-1-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230104192054.34046-1-mathieu.desnoyers@efficios.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 04, 2023 at 02:20:54PM -0500, Mathieu Desnoyers wrote: > 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=y. > > Reported-by: Nathan Chancellor > Link: https://lore.kernel.org/r/Y7XJKZhuU9VJZQ11@dev-arch.thelio-3990X > Fixes: 317c8194e6ae ("rseq: Introduce feature size and alignment ELF auxiliary vector entries") > Signed-off-by: Mathieu Desnoyers This resolves the boot failure with the configuration I tested: 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 @@ > > #include > > -#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 */ > -- > 2.25.1 >