Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4899890rdb; Tue, 12 Dec 2023 12:26:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGC2gnKNbNiVSIhJCYSM+gp6eib/mTM1fjE5/7MsU20pbg5l+z2E2CwVIbnKD9mHJHXOHyp X-Received: by 2002:a17:903:124a:b0:1d3:387c:f9ad with SMTP id u10-20020a170903124a00b001d3387cf9admr1703267plh.129.1702412796049; Tue, 12 Dec 2023 12:26:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702412796; cv=none; d=google.com; s=arc-20160816; b=yt3DgAseuzfyQNWdVnkg6izWBXpDgZWlDYvLxbWYH+PAb8LiXzuf+H0nBD3MwqziTI KxA7A0MwwRBrmeARo3tmlwt9guVL0X2yy4mdVwY4XDBoCUSoX3KOKfjJCmapyVcgBAyG vJezoK8mObbp+4fBVpcEcwgFcvP9LnJANIW0Y3Xzr3HdeyLvZnEJ7RFgwVP2tBIDSoww gXpgyJNMOxVwPPK4nb0BfVeDvsYTycNixL4hdTsdQOWQxVNhsFCZm1OTdZfhfL38M6EN /AYZHi3JA1ieUalOpxWGSMpvTJ2eq5tvyS1QihNn0eHaYGIk+k6W54FPytbUzgEURFZM 4EyQ== 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=ITS9iepxKmDBteakc9JcBmcwe4qkWaGAUfkgjLJxKz8=; fh=5FfT+GBg1K4PvFy4SP0JphFNxZ+LzDQPGO5oG6rHGVw=; b=WXfeT6ZFVpWWFv9V1aBBHmMH+PMjMC4jTW7gsG5SRRm2+dpWnz31TmKDll21dtNVv5 vgOWhlstVoHhDyAc+SqNrTVlbuMvmLwnwgK26yJ65XPG1YfyWJUlytddaO8w95+zX4A6 5gRDtxWZqDAhybGrXHrBAouFOzCc4JwbbFM3DV1wNbZ+d4OXs6HvOjgKIp6vfrWwebZG iF1Xu0IhPhbcgRlVbx0QNj5ebx9D1yDWj7sAlZ/x26qDOLsGjjVcQqNKc+LPlYu1rcqq IpVOATErqaoM6EOGbHXZoAFjpz6HjviWcKTcWzoLfAW5ODG23jssUWFcXj1gGI/3l0Jz H5Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QK3xwh7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j9-20020a17090276c900b001d0b24e1648si8456837plt.578.2023.12.12.12.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 12:26:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QK3xwh7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id D1E6B8023769; Tue, 12 Dec 2023 12:26:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377223AbjLLU0U (ORCPT + 99 others); Tue, 12 Dec 2023 15:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjLLU0T (ORCPT ); Tue, 12 Dec 2023 15:26:19 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE8BC98 for ; Tue, 12 Dec 2023 12:26:25 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C190EC433C7; Tue, 12 Dec 2023 20:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702412785; bh=ITS9iepxKmDBteakc9JcBmcwe4qkWaGAUfkgjLJxKz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QK3xwh7/RovgLawsgEE27tFvsEmWXv9zo7z8pvLyL07K+1LB60nrenIjCvuljOe6O 41c/d6u9DpvjRjFbkGD3P7jmXStQB53cqmZKdEcnFfWLpGUOCj6vXd8lnyrF285YBk lVETctoAeX57YmnxNLRbavEXKvRsDBaDhwBiBYye6h5MN+tCnF67DNpZdysaYny5kM t6INZGptEmFHhK3ZOTufikrTYp0MGbYMADqUFNtympWn8LwrjrDYUNKzFAW2JmdTUH jSwlGihfJo7Y1K458B8sp76wN0x2qFUaS7cUbWtzteUthuknj5NGIFYj3sBiBRZ0Ms PcHfkNUJGI2Qg== Date: Tue, 12 Dec 2023 20:26:15 +0000 From: Mark Brown To: "Edgecombe, Rick P" Cc: "corbet@lwn.net" , "ardb@kernel.org" , "maz@kernel.org" , "shuah@kernel.org" , "Szabolcs.Nagy@arm.com" , "keescook@chromium.org" , "james.morse@arm.com" , "debug@rivosinc.com" , "akpm@linux-foundation.org" , "catalin.marinas@arm.com" , "oleg@redhat.com" , "arnd@arndb.de" , "ebiederm@xmission.com" , "will@kernel.org" , "suzuki.poulose@arm.com" , "oliver.upton@linux.dev" , "brauner@kernel.org" , "fweimer@redhat.com" , "aou@eecs.berkeley.edu" , "linux-kernel@vger.kernel.org" , "paul.walmsley@sifive.com" , "hjl.tools@gmail.com" , "linux-mm@kvack.org" , "palmer@dabbelt.com" , "kvmarm@lists.linux.dev" , "linux-arch@vger.kernel.org" , "thiago.bauermann@linaro.org" , "linux-doc@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kselftest@vger.kernel.org" , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH v7 02/39] prctl: arch-agnostic prctl for shadow stack Message-ID: <28c584ff-ef25-464f-852c-c5ddf66e5906@sirena.org.uk> References: <20231122-arm64-gcs-v7-0-201c483bd775@kernel.org> <20231122-arm64-gcs-v7-2-201c483bd775@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LPMEijolhyLOy67U" Content-Disposition: inline In-Reply-To: X-Cookie: If rash develops, discontinue use. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 12:26:34 -0800 (PST) --LPMEijolhyLOy67U Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 12, 2023 at 08:17:09PM +0000, Edgecombe, Rick P wrote: > On Wed, 2023-11-22 at 09:42 +0000, Mark Brown wrote: > > These features are expected to be inherited by new threads and > > cleared > > on exec(), unknown features should be rejected for enable but > > accepted > > for locking (in order to allow for future proofing). > The reason why I stuck with arch_prctl when this came up is that CRIU > (and probably other ptracers) needs a way to unlock via ptrace. ptrace > arch_prctl() can do this. Did you have a plan for unlocking via ptrace? The set of locked features is read/write via ptrace in my arm64 series, that's architecture specific unfortunately but that seems to be the way with ptrace. In general if things have a need to get at prctl()s via ptrace we should just fix that, at least for arm64 there's things like the vector lengths that are currently controlled via prctl(), but it shouldn't be a blocker for the locking specifically. --LPMEijolhyLOy67U Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmV4weYACgkQJNaLcl1U h9BRvwf/S9so8PzoqYCQJHpoRcvkwkq4+soyG3JSVYBAX+IsKPFGhH92O4Zp5DZJ aASTrqwmW/PsW8TX8LOC1w1a2OadrpSIa4r8kxsWZWdzkg6OHWcZ/XlhGe4a1yMF kUw36Z5PIqQRf02YHLYdelHq6/xswjma9YcOb5iVB0TZAL5mQw/2CHXr4ahGlAFr Pj4wVYIkXRohUP6gR04RuD61bfD4WIFneYjIjzPYYYo9yxWSiiOrpO/MD1Jb7bQe BaUHpGEsUZysAGRWxVvg+6v85VbHn/PYX8xT5xk9AmfYP8KM8HaClCKtzVBg//10 a9fZcXajnHu4O2S5h6Jsn5IYnbwpcg== =ln+K -----END PGP SIGNATURE----- --LPMEijolhyLOy67U--