Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1037240rwd; Thu, 1 Jun 2023 09:36:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nfVpHezmvKrYh+Agt56Bb9d8TW/m2O72vrGCKJZ27AWXmezmZml1yY8Ei+Cp6XR0MxL7A X-Received: by 2002:a05:6a20:938a:b0:107:35ed:28b5 with SMTP id x10-20020a056a20938a00b0010735ed28b5mr12383233pzh.2.1685637396597; Thu, 01 Jun 2023 09:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685637396; cv=none; d=google.com; s=arc-20160816; b=0IifDhsE8LCQ18r/FRxRfPwhRrs9cpODdZzoPi3wGgUpZny2HLgRGAMLhgIr4Q4Cae f6djak9wGszzGtc4DkFWrHm9q/7oUpcfyPOnYCx9kOjVs2+NcPwYY1iLUJK19r+t+P8m X8Egi/KB7EwUllqQ91aVZyIBMe1c52wVzdzBce8nL8aevWTeJX5if8o9JhwMbOnTEkE1 twoCMC9QGc6CHC05TAWpqQKITF8fBUdxrYjMOowpAKU5hPyFgj8nxU0az4LUTfaYE/Cm 497uP+H9HjTX+RtaL63wlw9soZZleJqe1LI2EZIX6puoVMSl0E9H6dl02A8bzgUyOlCW EVHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CT6yRAXQX4xr1K7PCpVCFdobPc3ostQ+zb8ateyhc+E=; b=X6b47/L43cerR7qEtjfZmNwsYNCL0FxYbflmwODf9BOu+SEkQx/XC3S40kk7BowIxu b5g5Z7oHsZtIFS3pmnBsqKbicdENdnwED6ITFLpaLdFjTcbSfQ/trqcxNtaDpYfYvHjQ tz1nPs3mTHo6l/NiUb5+02a84imU/mCZxuYGu3ynYins/pGAYUDN1KydIq7Bagbak/2S wsSLUZbXex+Dxm+D1mQpKWS1fAWc3q9qBLi3VtJbcbG7/1A5nHMccrvJCmYxgkinU0a9 JVA5/WrF0rPFBejsp3QUDcJtow3Qpkn6rnp/PmRyLyP8vL59oFR50hrO4+p0pdkDJ9ow DXYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cQMgBE2w; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z123-20020a633381000000b0053b8c98d14bsi2984746pgz.859.2023.06.01.09.36.21; Thu, 01 Jun 2023 09:36:36 -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=@intel.com header.s=Intel header.b=cQMgBE2w; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231262AbjFAQUT (ORCPT + 99 others); Thu, 1 Jun 2023 12:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbjFAQUR (ORCPT ); Thu, 1 Jun 2023 12:20:17 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78ADF12C; Thu, 1 Jun 2023 09:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685636416; x=1717172416; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=66IbxJcu+ERP7iDReAuuseWeSYepw+/LOPDcQLh6/HQ=; b=cQMgBE2wPwabOoxsqdvdV0HK9JzB/E25Aiz2JnLsAHxW301ib0A0g0Ws JLipOHlD4uKXnpvr/NaWWsBq6qnjpi8d3q908UMbSvFC4uVOcHdiTfW7+ 89i6XwssIWsRqZVQ4LfO1IEjUPAY2si1OIyOpoAzGICsdYN2aXzV/C8CV ivVr0kpBwofVYYfuTART+fK8nI7UrTBgOnIzgLhjO3Ff8cYHAoSVcaVdc iD+QStK4AlHcepQ3TWONa4pAjzZuAdJf+F9q6LP89FUilPy6JI1kVlttI 00exzl1ZDTsDLMMeF7BU/IjJQkoET7NDi9AdavlZupquxvV9TvhWtXyYK w==; X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="383879560" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="383879560" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 09:16:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="737160337" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="737160337" Received: from jdboswor-mobl.amr.corp.intel.com (HELO [10.212.227.45]) ([10.212.227.45]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 09:16:03 -0700 Message-ID: Date: Thu, 1 Jun 2023 09:16:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/6] Memory Mapping (VMA) protection using PKU - set 1 Content-Language: en-US To: Jeff Xu Cc: Jeff Xu , =?UTF-8?Q?Stephen_R=c3=b6ttger?= , luto@kernel.org, jorgelo@chromium.org, keescook@chromium.org, groeck@chromium.org, jannh@google.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-hardening@vger.kernel.org References: <20230515130553.2311248-1-jeffxu@chromium.org> <2bcffc9f-9244-0362-2da9-ece230055320@intel.com> <2b14036e-aed8-4212-bc0f-51ec4fe5a5c1@intel.com> <9d64c949-6d5f-06c0-47ef-caade67477e5@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,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 On 5/31/23 18:39, Jeff Xu wrote: > I think this solution should work. By "work" I think you mean that if laser-focused on this one use case, without a full implementation, it looks like it can work. I'll give you a "maybe" on that. But that leaves out the bigger picture. How many other things will we regress doing this? What's the opportunity cost? What other things will get neglected because we did _this_ one? Are there more users out there? Looking at the big picture, I'm not convinced those tradeoffs are good ones (and you're not going to find anyone that's a bigger fan of pkeys than me).