Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp254505rdg; Tue, 10 Oct 2023 09:17:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuysXxvjRcyAx3b0EPAStd6KWTQAEn6xuRRTkM1r2CX8iZGM401qZDHAHf01A4d9kmSGWm X-Received: by 2002:a05:6a20:6a1a:b0:154:fb34:5f09 with SMTP id p26-20020a056a206a1a00b00154fb345f09mr22636300pzk.15.1696954646933; Tue, 10 Oct 2023 09:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696954646; cv=none; d=google.com; s=arc-20160816; b=r52gpxV7JXp0RyYlvuv4sM0O3bsHP1o3IVBk77tVl4GL6qCTqSNGE+fxMlmb6adtnM JSraiAO1Xgy83YAO6f+jts+Vp5iRk64noDZGqli/rdyHjnyDUWGdgTX5kbr9oUFf1zH4 BCD6bsavnpWHAYqqlfdTEtA+71lJbrZ+j5c47NHi2LyVnF7CC1haRsOR+NxTxaM4Lzxo VQGoAbl4mj3bsoVJk+m8/Zg/i387/6s/KPlGuDQmPc8+IHDEeF2RcUJ0Zt4bbvMhV8S3 /FzFvfvEGIywYHsDPcNEeDCbsM/gQ0LKwZ/kcxG6pkBiv4GQdiejSFFdtuNEN8n57oi3 Ps/Q== 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=TNnQnV6qAPMxeNaQ8/i5+bMatl9Z1QzrQ+wpZHw3tTA=; fh=JDKfJCaynV/13G4B+tPK4PsgttXCV66OL6M4l//EE8U=; b=awmCuVw1f6NPiaDqgewnG565i2vnbDJB08zXfZ5Sle2lSzKrdYx16bI8pQUu+kzhPT Q0V0QHGrQsTneIrmezLavVh5El5hz84USX7qxyV1ZDcpnK0LrOpKvGaytUPG93Jy/o2+ Vf87Vdsp55u4YOBbalbQE6PXX/MuhxvDGyaRA7GuhHPSGd1TUezFSPAFgMl2iz4VlAgb kshM2I/UuK7ti1xD/XOAq1pkyJ1KYwQAVPwfQPv9a73Zo4/UCtZskmQ1LPTu0w69DgIt o9FO0v2GQqqX0Ncs5F/oejrqQVj//vVs2xIGdzJlk9OKnIyOlJmWpl4pDqSFnFNOeYoM ZCVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mkV55KXN; 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 y4-20020a056a00180400b0069026254582si10276532pfa.98.2023.10.10.09.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 09:17:26 -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=mkV55KXN; 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 D8C8B80417D3; Tue, 10 Oct 2023 09:17:25 -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 S231395AbjJJQRX (ORCPT + 99 others); Tue, 10 Oct 2023 12:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231231AbjJJQRW (ORCPT ); Tue, 10 Oct 2023 12:17:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39AC094 for ; Tue, 10 Oct 2023 09:17:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68016C433C8; Tue, 10 Oct 2023 16:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696954640; bh=lvXsPbuo3lNekKcZ4AxUxozr9gHUgje+MPo7mWhXGIo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mkV55KXNd4cDdmEEJUrceq9Ywe6ODR7KI/Vz8WOcxOT1lkl3wvuK71tp7iHQ6+55r MtHXaiPLceXpdJINwSmAgx1d0cTGS4erUqGsu/5VH4gg8fI24Lh9xljsTW4twMTlht Oa1LYFUPt2ykqW8CovGYTAYMvQoGWXT4wbluWCVUZQxRERlhOgscgB5skjPxKGt7mb J8PSXJVI4x2rwSKOoBhAvbkZ3VmgiL40IFk19dCoGOG+SecUeQtVhtE3R1EWppfpwu ME/kqWA04AHrpkvtm7t2YVeiaaAOp7G1b3N+BpQqXvQZwernUvyhzSejLmTfx6p/Bq RFqfdXd8UxOmw== Date: Tue, 10 Oct 2023 17:17:16 +0100 From: Mark Brown To: Deepak Gupta Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: Re: [PATCH v1 RFC Zisslpcfi 15/20] sslp prctl: arch-agnostic prctl for shadow stack and landing pad instr Message-ID: References: <20230213045351.3945824-1-debug@rivosinc.com> <20230213045351.3945824-16-debug@rivosinc.com> <7c4448d1-4622-436f-8779-f52c4f011783@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ACAhjzT85bg724HA" Content-Disposition: inline In-Reply-To: X-Cookie: I feel partially hydrogenated! 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, 10 Oct 2023 09:17:26 -0700 (PDT) --ACAhjzT85bg724HA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 09, 2023 at 02:22:51PM -0700, Deepak Gupta wrote: > On Wed, Jun 7, 2023 at 1:22=E2=80=AFPM Mark Brown wr= ote: > > On Sun, Feb 12, 2023 at 08:53:44PM -0800, Deepak Gupta wrote: > > > +int __weak arch_get_shadow_stack_status(struct task_struct *t, unsig= ned long __user *status) > > > +{ > > > + return -EINVAL; > > > +} > > Having looked at this further is there any great reason why the status > > is passed as a pointer? It seems needless effort. > I was trying to be cleaner here to not overload returned status with a po= inter. > You could say that any negative value is an error. I don't have any > favorites here. OK, thanks - I changed it to treat negative codes as errors, I'll leave things like that. --ACAhjzT85bg724HA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUleQsACgkQJNaLcl1U h9A+oQf+LpsNDfAqDS2nwgFHdh60JolPY8rn6NrF842aj9Y2olxRwTCSw34whng7 5EBGkVw6506Spqsle1zvqdXSzA1VyWFfzZKJ+04ZsH6N6Wn42m0gry/3RnKcphxW gF3Yz5JSyLRam8m4pGDM3OBDwLReOxIgxhOZs4VjWbaRdlL2MJ4y+gqHYx7JJRCT fpF5koeDVyLxvPNJVwMHtHRE6adGLqd91yFi/UNL/ERzz4LhYxixwpk8LcZJzLcT gjlqKcScF9TvoCqnItWWO6ulsNqN/fxtAvK+PYBCEZfiPqMktLztr2oeq238hdg0 3oCa+f5qhH7JF0SgvRu+mPmURwO7Lg== =7Bqv -----END PGP SIGNATURE----- --ACAhjzT85bg724HA--