Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13713272rwl; Wed, 4 Jan 2023 11:56:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtEDfTsVRzhTGUX9AlADvNtdvlWkbgXDKlhydR99UC5yaeRbOVf4A0Ak9uu3kLMQoFRiPmE X-Received: by 2002:a17:90a:244:b0:219:94b2:78a with SMTP id t4-20020a17090a024400b0021994b2078amr52389382pje.30.1672862205604; Wed, 04 Jan 2023 11:56:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672862205; cv=none; d=google.com; s=arc-20160816; b=ASEJzXfercVHe74JEeLP56Lmne23gjOpnJIv3cJ3z5ImBgaVL0ob0rcOfwdFROaYPY OChg3SD5pIS8UpdOsPNpyU3NrSqsGWHdmHd9fjki+ATicSr4+Ey3MgjI2BUSqtjUg6dP BM07W8AMdGx1Q6BLEoJFulzux1Pzdv1YZuIJPULbKBvs53Z4KS8E6Na9nihC3dfiAM6v tNUP2IbdWFCp0Ll70r/V83HJtmReM9QQ+iJ1biiL4C3oqtK4LJ2DjtZOQc8Yv5TSKBsz zwCAZpI/YUGklOJPA4bUCrZFpQS/2DzuTZk3LoEHxunwWyVzj2NkUOSE754sqhHIOvo3 dkwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pIH3pQI2hYspJLSCsI7uvaHjdgIazUVcdLPlf82w43U=; b=GsRopFb0AiyKbpQdkx4xw6b+61BYG268fYsy8ru71Vl51flamlLhbHybnm8FZEO0MS x3v1Cz1WZTHxQ9lzu8AgYdR+RMU2i+z1OwkK+whtk1uilsHacNjMJ2pC/0HSarE5w7kL IecrDaon1slM/udmvYCvlC6vR7RBnLHF11OUL1I+r02ZrsH0CVWpZHD0ooieQPx8NxT2 tj4IXAa8tGsNNp/ZTRuLpPbwHGaCkCfjQYtA1akMM/gkt577TOsMbgAu6JWUbEa86qnl hjOLbiXjwNDPukdLZ2itLcsib/GhUw+zK5RGQHAbyrJ3v6tPlA/6pHYh2WyxtsrS70mA zRHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=uHpzNIke; 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=efficios.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pj2-20020a17090b4f4200b00223ea512658si41839560pjb.162.2023.01.04.11.56.38; Wed, 04 Jan 2023 11:56: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=@efficios.com header.s=smtpout1 header.b=uHpzNIke; 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=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239846AbjADTVI (ORCPT + 56 others); Wed, 4 Jan 2023 14:21:08 -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: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 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 --- 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