Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9533988rwl; Wed, 11 Jan 2023 06:57:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXsmVq9LYq96SWmejlbQ95H7l8v2XoPOtOxwcM0eMcgVNQ5LiNAwD5HzLpJ2JAWswvrSvviE X-Received: by 2002:a17:906:468d:b0:7c0:a5c8:d14f with SMTP id a13-20020a170906468d00b007c0a5c8d14fmr61127488ejr.77.1673449065057; Wed, 11 Jan 2023 06:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673449065; cv=none; d=google.com; s=arc-20160816; b=YeT2LEFynEjONIcd+h53BVSI4RYY4jBPMPswXkwImsWe1JkfvkAvFNsleKOtPdXQaR AfWzKu+bdrriIOoSYE/tnN+hbhZa9IFeXIyBma+jDQOnAnfTYLeKN63KwjBMLUelLBL+ HNwRNSCbYHnPjo67OdY1N/kHTm3R7VjRq2ykp7b+LWgtkZ+3rfF0xJgvIMVL2gWFr6sH TcokeXBzg4wCwxOGuD7f56n6RxaxnF85mpT5V6nPa01mNCdWvCw9+0MT2f5SwApJMEk5 FZiZLHkagdFOziD3U+fK97hHz0ABpblEQV7aZm+vAv+/2ERNGbqCJM9nGNlhhfzUIDJ2 7w+g== 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=13MEdz4iJ2vVIT4qZus8tp4KQdEvpmtZcNgcvXYg/50=; b=B7I+ODFQSUH1gRQWr1VEBs+FQpJvYqcYycXATZaeXzU6vEQIXnHRD+RPPrVFE30Cnm IhC+S0W/v3y+pE2oTxCNoilGqtgWqNjG32o6jZTTXe5w/FU0WTiKyqoWg38H1rETWh2x CXNg3MnbVJSqohkHTwFxEubyrv8lIEcYKW3n9Oq/9C/7Q92ut9xJ0ENCV9plCG+SRZRs IY6d5LSqj9QIBwGThbYd8uU5h52M0+A/06vBpQOFvVeOPAQ6m2yXojQWlV0zFWb/7Ibr OwyyTJ9My75wUNtu3QRbAR9HpGkdXIxN5MezOYAWOL4H4qxT7GNZOp6kcUBe5JtyNhsm I7wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=q0Un1ViV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di13-20020a170906730d00b007ae5ccae236si15558378ejc.90.2023.01.11.06.57.31; Wed, 11 Jan 2023 06:57:45 -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=@infradead.org header.s=desiato.20200630 header.b=q0Un1ViV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238861AbjAKOQa (ORCPT + 53 others); Wed, 11 Jan 2023 09:16:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238931AbjAKOQI (ORCPT ); Wed, 11 Jan 2023 09:16:08 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6301B7FC; Wed, 11 Jan 2023 06:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=13MEdz4iJ2vVIT4qZus8tp4KQdEvpmtZcNgcvXYg/50=; b=q0Un1ViVqDfyyC7buQJ07rIqiv geVf1FTDEIhq4vUURyUkBDlR3Mxa5uoQebA3cfEMpIfUIwm3p9/O+UW7hu5oS4OMF0lXeRT/wo1CA JNJqS2ARU35yr+kKdoXSh6EytPa0KfE1txGfG9ADArHwPM5YlwcKZ/Q62vcmr1xQnU7fvxiE2j/oh KkqjhAkiRch2wzOJ1/lTsKcSD0zA9z3dvEWwVX68ux88Rm/7vI8CEmKUvSnJBEJtvpR6fxOp5aL8z //TmY1nYmzCyz6qgtoaaq35eYO+5IbWKDw+R+5z4ktyGmABzb0qUznZbJ5hjYdgs/K+7Dh1TjU/y7 wJRvLlAA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pFbt7-003hbQ-1c; Wed, 11 Jan 2023 14:15:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 2BB9A300129; Wed, 11 Jan 2023 15:15:40 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 14DED2CA1DB41; Wed, 11 Jan 2023 15:15:40 +0100 (CET) Date: Wed, 11 Jan 2023 15:15:39 +0100 From: Peter Zijlstra To: Nathan Chancellor Cc: Mathieu Desnoyers , 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: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 12:24:09PM -0700, Nathan Chancellor wrote: > 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 Thanks!