Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp402985rdb; Sat, 19 Aug 2023 06:29:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGU3RXN/nVI85mSwsQDzfrCYyRWhyCWXQxZGTWfRtPZ1HiNV3F4vDvLvPrFuz1jZzMiESEB X-Received: by 2002:a92:c60a:0:b0:341:c98a:529 with SMTP id p10-20020a92c60a000000b00341c98a0529mr2864702ilm.0.1692451741948; Sat, 19 Aug 2023 06:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692451741; cv=none; d=google.com; s=arc-20160816; b=fz/tOaRCNmv3hGs166kQHB5+i8pvCU3wbfXS/TkpbUOx3BHxdB0FpMyWGGLa571HoL tuDk/T4vBfQvLVSL+IWmUuznXjC3GPBwZRfOaCrWQlqxaEA0ylXylnFyBDduK4cIYOIS /ZpWIINh7cWD+urCOAYgwcvhz50xHw1jm2k/AXYnz4nSAoSgDwikcMeCZzBHPTGEvuwo Zelh+nMixvW8TvAEtajbRCTd9RV2FwjczqeCzJahJ5bviMFYQYZ8N/ncbrC3SWY8T3wD 3LMxL5wkjrgFgSvN270Mx4WXfTH2C+79jtnk3JKONuu3jAThOChWrRlXva3X1mQ2DJph /jPg== 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=1JiWSPRDzlcQkonHOTJfOlbVQmRCyzrqNmv6BEdoPCA=; fh=wS7gH9gJTwVbMI1951Any7fjyeH00wl+n7Iolqr1PYU=; b=NgRCGW/qqSHyFPjQ6Pws/B8CmU9B/YD9yDC0tcBu5csrfk4bnyO4y/F/VWFQcvjW55 W5QeWLCMBM1HdQD9Jh2M8GMooj3Wq4zL9as8AQWsM167e7XSJDlnabaYjunH/OaXa35W IBxJoYUtYF0/9A4ZEW10G60lnLp6YqKykI/gCLr2AHqVIAoYdKHf32FIDs8YKlnfnxWV yg7mC5/C2Yrs3SMnDwhtgvO+5ptVrO/7sP2ih99bRBgUuIeTGyB4kxEE3q0tVKoBs1dg uEPsY3tjh1wu6O+ZLO/9JPkd3A99JgjLDFRD431CTRfCoLlUb4ur39pjcWRtE7mmSu20 d69w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UeDGkINQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id gi23-20020a17090b111700b00267fe4a44b7si5014601pjb.176.2023.08.19.06.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 06:29:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UeDGkINQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 68E8CA5165; Sat, 19 Aug 2023 01:40:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbjHRRJJ (ORCPT + 99 others); Fri, 18 Aug 2023 13:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378915AbjHRRJD (ORCPT ); Fri, 18 Aug 2023 13:09:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4978510C0; Fri, 18 Aug 2023 10:09:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC7B162BC5; Fri, 18 Aug 2023 17:09:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 610E8C433C7; Fri, 18 Aug 2023 17:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692378541; bh=1JiWSPRDzlcQkonHOTJfOlbVQmRCyzrqNmv6BEdoPCA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UeDGkINQMUZMOv0CaERFn8GmpN/lFFhAiO84OP7u1x7AFZUtfVsRfzTEFzC+ygpsR Y9xpRo/IlegEekeP1Dut+AJzPtf3KaySn86syYV9hvhBj7tYI7hwm7WVjGwkVpEbKQ ZjgkorrFmrhhByHlHzjOB7PJonhx3wFLnve5nNkSRvFS4Qnnbvl/LHsJGsoNKavGlh wQaSzUFSZnBSxJIIJQqmSVEnLqSDKMGJQhsBsfKCrvRcquTSr/kacVzGcONadDoykq GZMPrwKnsKvdT1EyR550F0bV2J9QMoG16RUnCOQNCw1zWjT6j+ubsWMcE8yFgXt2oD mtaDQp5RlwIFg== Date: Fri, 18 Aug 2023 18:08:52 +0100 From: Mark Brown To: Catalin Marinas Cc: 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 , Szabolcs Nagy , "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 21/36] arm64/mm: Implement map_shadow_stack() Message-ID: <9c722954-8f30-425e-a0a4-6edad463620f@sirena.org.uk> References: <20230807-arm64-gcs-v4-0-68cfa37f9069@kernel.org> <20230807-arm64-gcs-v4-21-68cfa37f9069@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t6HZ5j30fo2L27Lx" Content-Disposition: inline In-Reply-To: X-Cookie: Your aim is high and to the right. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --t6HZ5j30fo2L27Lx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 11, 2023 at 05:38:24PM +0100, Catalin Marinas wrote: > Given that we won't have an mmap(PROT_SHADOW_STACK), are we going to > have restrictions on mprotect()? E.g. it would be useful to reject a > PROT_EXEC on the shadow stack. mprotect() uses arch_validate_flags() which we're already having cover this so it's already covered. --t6HZ5j30fo2L27Lx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTfpaMACgkQJNaLcl1U h9CmuAf/Y7ANc4Kk+mnfQwnFeS/EQ5r5NF8oVlV+xJ9aNN/eMcDpeaYBvln2GA6v ki7svYKRiiuRDNr3/h0fyHapLK3tsJpZxS76iqNbYh6EFBbZ5vX5njXBuLHneFL2 Kc18LKu7USgVA0WGmDvkClBhnSmeoOFrZjnrBJyJZFHNjTwRNM+tVnOCBeKTS/Ur zPyUEIEB9wq1bs+NTA1CgvI82vIVrO3nLu00IP/35zQpX665RocIKw3craz+6Efl 8NH22NdfYjWPNSv9WI5pf2WG+CX2AOQ3v1IMF+S3jrN6NVdf5oOrpAYiejOjtf50 5MKlsT1RWl3PNInSnsIkRNYXCDmr7A== =lwGM -----END PGP SIGNATURE----- --t6HZ5j30fo2L27Lx--