Received: by 2002:ac8:678b:0:b0:405:464a:c27a with SMTP id b11csp19855qtp; Tue, 1 Aug 2023 12:26:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGrwI5vDA22excl00lhwJkUyXDy7JuIF+XNSdb5bBy52ty0mFajtAsv2uDsl/c7zRwqnnlQ X-Received: by 2002:a17:902:e847:b0:1b9:ea60:cd82 with SMTP id t7-20020a170902e84700b001b9ea60cd82mr15764072plg.5.1690917995347; Tue, 01 Aug 2023 12:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690917995; cv=none; d=google.com; s=arc-20160816; b=PA56LYmb1+7BgWmFbO6NF5oztU72LlIlpQHzQ511nyxzAHaepPtqXzJqDh4uX8Hqkk w4HQiNrxT7PmfRZ/BBcQyGHTzhDjKKAuEPvwAnBaX5119cmjTLA2lsLoV3a6mp2WZ3XK FIgea0mCvXHx2KKlabNTzkQ7E7/PQuGMUCFaHFjCD/wN9CT5ZkOtgruX9hJYEmTLi94c x6cK6J4YtZ9z6w2oeNARcBd62uNXXDKXQDIvdsIyz0tJTH3zrL00btlbby3DaVzYYOkS J4/Wv7kD/aXxeL+YIJxsbF/jgzQzeSSL3nhhnSL2rhigRx66Co4OBdORSp/GAzIq71PL 2mew== 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=UNmaBro9friNbMH7XWCiSQc7RE/rpzJHScPmtRxJvPE=; fh=6nfu4VBeJvhXotricLWZeNryL9lRRgULYCX5DSWBfxw=; b=X7EG8UFX9b628PI8jz0dpKloW29ORUrRsAlaKBAksmb+3RBmiqrX8pkusU6VPdxmtV IHqrj7Et41s1YrokJCVCYYDVpEzHbrz+3AyYPTS1y0XeXskciZNHTWA/B+g8/OuqMw7Z o0YDlL0fxSzA5D21kxyk0p4ItaFEAfzt5OxZ7CIVFJ7hjXrBGxLKPMB37Cs04k7W5jck OiEihc36mhl4HV0bNQrXHta+ohkkrh1zJTs6tqGreASyY2OEplxxuf0MnP0ibxVp5DVS KxKBSEoCt7OuecnjrjJTyOZzZ6SX3BEp5/NA61X2EKEXUCEFfMvOLqStKv3F+FV1ysTR y71A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=grHpsCad; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a170902eccb00b001bc13e00c5esi3716124plh.500.2023.08.01.12.26.22; Tue, 01 Aug 2023 12:26:35 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=grHpsCad; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232199AbjHATFe (ORCPT + 99 others); Tue, 1 Aug 2023 15:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232130AbjHATFb (ORCPT ); Tue, 1 Aug 2023 15:05:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAA126A4; Tue, 1 Aug 2023 12:05:26 -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 3A4F461590; Tue, 1 Aug 2023 19:05:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A61AAC433C8; Tue, 1 Aug 2023 19:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690916725; bh=XaEyLOjcTNwc9YeWlOJYScuIZzeMlhSmUXhkTyWOcdo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=grHpsCade+4hhBefcy1y7pfmLc1TAcGI5yfjr3ji+PPlfsj7KES8fDhea9q6wXLgD xrGOW3viFBiZ2vyLfNwKC2X7e0UTc1/jdT+BIQoV/8PnGuJGh7RiYNNQpAaJGGf11f CdB8b0Gn5nYSkS4o8WfpNo99u2ppuAN14a1C5I5IwjPlP7/PUzBYiYFueK9jOe6o1g wKWlPPFaossUwjpE/h96bWJrEMfGbGHML66oQ9wJRkAletVZCNSjo4mwx9aKbjnxmW /wU5qh51gu/TWRN8ejWFeGscGFLY08HjeLHMeUYNUquMcFllxGCj3PCG7S0rJoDSlE IMkXmWaTTxdrg== Date: Tue, 1 Aug 2023 20:05:16 +0100 From: Mark Brown To: Mike Rapoport 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 , 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 v3 11/36] arm64/mm: Map pages for guarded control stack Message-ID: <1cbd6d5a-0e58-4a3f-b7e5-bbab09f03c5d@sirena.org.uk> References: <20230731-arm64-gcs-v3-0-cddf9f980d98@kernel.org> <20230731-arm64-gcs-v3-11-cddf9f980d98@kernel.org> <20230801170231.GC2607694@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zPbhvjZzJERchlQs" Content-Disposition: inline In-Reply-To: <20230801170231.GC2607694@kernel.org> X-Cookie: I thought YOU silenced the guard! 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,T_SCC_BODY_TEXT_LINE 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 --zPbhvjZzJERchlQs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 01, 2023 at 08:02:31PM +0300, Mike Rapoport wrote: > On Mon, Jul 31, 2023 at 02:43:20PM +0100, Mark Brown wrote: > > { > > - pteval_t prot = pgprot_val(protection_map[vm_flags & > > + pteval_t prot; > > + > > + /* > > + * If this is a GCS then only interpret VM_WRITE. > > + * > > + * TODO: Just make protection_map[] bigger? Nothing seems > > + * ideal here. > > + */ > I think extending protection_map and updating adjust_protection_map() is > cleaner and probably faster. That was my initial thought but then I immediately started second guessing myself about review comments. Hopefully Will or Catalin will weigh in. --zPbhvjZzJERchlQs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTJV2sACgkQJNaLcl1U h9AlrwgAheuf8ghyBKWYbkyMEXdB+oQMSgcGlnFgC7nJJfw06f2XaVrBNE+6Swjh pgt+0RrRPIXZHhZXP3vHWP0yM/pgwS3o0K+/jolpahP+ieFfiJa5X4GTuGzPYZiq 6XYZEXkdOtuuyx3McLXU4Eet7PsnmqDolbBcr2pV1oyvRj6zWbdfv+SYoL8DX6bA kUGWitWitEXi8bMTvWWg23s1MoFXLYxUWDZVwCl89aIipWnICzUze6O9FVMsfYJ1 h8ITi9V3QFo5uKkn1MySOUPaK7TI+VKZhAJMaNEQmCHMFXTkQhpp1jJvY4FFRVi2 rUxmpnOLBLA3hsMLGXV+tSV8S9P65g== =kTpO -----END PGP SIGNATURE----- --zPbhvjZzJERchlQs--