Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1997568rdb; Tue, 3 Oct 2023 07:27:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNyvZPiIOTViZTZg7bC2wFJZgNqw/lmge4xUmWb7IJMNV6Z4KfewTWPipcmEEhUMpQJ3Ty X-Received: by 2002:a05:6a00:23c2:b0:68f:dfea:9100 with SMTP id g2-20020a056a0023c200b0068fdfea9100mr19505780pfc.21.1696343232744; Tue, 03 Oct 2023 07:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696343232; cv=none; d=google.com; s=arc-20160816; b=ir3aNoqxR6d6sCEMU+9fBAOVd2zzYhChd+LyQY07/gnhvrNkvG4TdIn1bWRxtgvPAm 6YJ0gfHfBsasFnbRLPH4TQHygjK5zuAbLrD77FFGu28H4jcBSVUafCEYIDbyCuh4BFud OQuwiongWbU7a1FV++dEhkkhIwTw94sw6rII7d+NHL5IwtyS8zT7Fkd1id0/6NPXthKV QCFv7XCcGF6qjytJmhuhlDL6z5coWynN2AJGeyasyj6wLVe8RgXPEnE11D2t/xPZ2K/e XWHPEmse7NSrtJYFSAKZtFNFAvTvzI15Bd/8aDH3GJHwQJxIJr5SlflI+fTieIy+oGRn JEcA== 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=vKR2S3cxeootWC9PM/ohD1gqmRd5stJ+tXKefzZXDbg=; fh=oOLr+n7Zwasjdvc8adg9RVTtdSQPcIDVNx1+AMNjpGY=; b=F50i62POp4sbLzCmvrjWdEvJZfMBNvJZIELJZjwaHJ8BhhRzdr4jIEgtr2xxTD2Kpf /VUpLeBtoWGsvhosA8g/gnPjfQPuE5QrD86GP9GujtdYc4HIgQlBiHdD7E2jw0Bclimg 1YdoQ9lrmKAcRQSPkErZlvRTNVta6+ZsWJtdsDMC71+QsQY9kUG8oN+DldRVEunH2YMu zZ9moASVbkZHKbcuKLe/827rHfoYzLx2rlIg669xfnmbZnwWl7p708ViOMQ/Natem/8o rOMzmaIYN25cxTAOQ7+Fj3j5MlWdY4y8y4taC8O4MCQ7SEP7G1y+gRNTwl2KlLwFFypn 0sfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DyIy3Yv+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k22-20020a6568d6000000b00578a30162c8si1440612pgt.537.2023.10.03.07.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:27:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DyIy3Yv+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C36D8819475D; Tue, 3 Oct 2023 07:27:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239596AbjJCO1I (ORCPT + 99 others); Tue, 3 Oct 2023 10:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232389AbjJCO1H (ORCPT ); Tue, 3 Oct 2023 10:27:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792D9AC; Tue, 3 Oct 2023 07:27:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30CB2C433C8; Tue, 3 Oct 2023 14:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696343221; bh=fHO6Z58J7VfsEj58RJs1tu4Owi0xG1v6AW4/0YSyTUo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DyIy3Yv+W/CyQ0YMjTSv84e9IfSa4C42rHX7FzcqawTdjAVka4EOVLyvr/YyCMX1c odzbNo2zKoZUztGOLt6XRaIkN5f142zGU5/3Ggqxro2C84FL1rDyPp08VMU5MG10Fx GkVgHQiKhmdfUPqW8Um1FIq2jMkuy7aFDL37p0oeMYLirBJy8+c15bCa7v9005CwDV vPhuRQkLPUo2NOslC7Y6Q284DYNNncBJJCf3kX/xZtMGoRk47+N+eWY0fhGL7bQ5B/ uA6az4zEwL7+A16vgdwSsSWiVMenTAeoIyWauQa5q7N2DqlCCR3GYZo1lQ533slcrI 1isHnZlKYDz/Q== Date: Tue, 3 Oct 2023 15:26:51 +0100 From: Mark Brown To: Szabolcs Nagy Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Kees Cook , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v4 03/36] arm64/gcs: Document the ABI for Guarded Control Stacks Message-ID: References: <43ec219d-bf20-47b8-a5f8-32bc3b64d487@sirena.org.uk> <38edb5c3-367e-4ab7-8cb7-aa1a5c0e330c@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CnsHSUBemytPXFhS" Content-Disposition: inline In-Reply-To: X-Cookie: Oh Dad! We're ALL Devo! X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:27:11 -0700 (PDT) --CnsHSUBemytPXFhS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 03, 2023 at 09:45:56AM +0100, Szabolcs Nagy wrote: > clone3 seems to have features that are only available in clone3 and > not exposed (reasonably) in libc apis so ppl will use clone3 directly > and those will be hard to fix for gcs (you have to convince upstream > to add future arm64 arch specific changes that they cannot test). Ah, I hadn't realised that there were things that weren't available via libc - that does change the calculation a bit here. I would hope that anything we do for clone3() would work just as well for x86 so the test side should be a bit easier there than if it were a future arm64 thing, though obviously it wouldn't be mandatory on x86 in the way that Catalin wanted it for arm64. > where this analysis might be wrong is that raw clone3 is more likely > used as fork/vfork without a new stack and thus no gcs issue. > even if we have time to fix code, we don't want too many ifdef hacks > just for gcs so it matters how many projects are affected. My impression was that raw usage of the APIs was a specialist enough thing that this was viable, ICBW though - I might not have been searching well enough (clone is an annoying term to search for!). --CnsHSUBemytPXFhS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUcJKoACgkQJNaLcl1U h9D1+wf9E8KLlwo7oauOMfMCaEHN33slVADlMHmi/XAO6e+v3qV+f+jIWgnm7QVZ NXQYwsmD9BjcMdlgDmlglFSC1Ui3L1auA8BtZNc0XaYT49uDudcAO4sxApsu0Ei4 YG1WN+8MyabX/ktfHNf2XyosySVjLipmkrlWSJaI89BnELx681xWUf+Ew7KDX6on I62ZOCIMFM9V0kfe8cIbwGsSRXm53lb29tDkOSKWRWQaNw8faH2YiSbmWG4kSF8u +dSRg051fgrBUj1dttRgE3oVlKaOAKF5+XtNe27dNeFpxXMMs6pZTjdZd0Us4QjE ETLB2y5WLQvi5XfxRiQqlJopkuzikA== =/LLg -----END PGP SIGNATURE----- --CnsHSUBemytPXFhS--