Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5400706rwp; Mon, 17 Jul 2023 03:36:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5zNu4sR4A6qUuJuXzL7KfI+Vr+S9XAJg17H++BOJgoIUIDUdkAsTZ3o1THs1Lf2pIi6es X-Received: by 2002:a17:906:c205:b0:993:f9d4:eab3 with SMTP id d5-20020a170906c20500b00993f9d4eab3mr9338265ejz.18.1689590163139; Mon, 17 Jul 2023 03:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689590163; cv=none; d=google.com; s=arc-20160816; b=ekw33Y2NeCjxJAzGkbIPyPLXPE9ZcPT7kqsMi+oNzEes/Rrhv765iQWCWO6MVq1/6V oLVyk+dtGAG9NWfKMoX2yunOUk/jnfE1jx33R9y0OGs0faH0DzoFqwg4Y7hfjrnibhF/ maRKlxLkZcS2pj36ka/Sw1jehnANrS5ESZROaSzH5OnNhnUlvGXMrj3Fo7rgyCQCu1wM hHL6K6DwHz+cJj1OQJbrr5YVYwj85Gvu5rp8Qb8RR3RHW8wtOrBfD2r2DziQ9OKQODhK 9WI5+Tij5Z77crAq0bAFvaYlAAshxt2WI9hDQ4r/Ju9p+Mb1HdeiNzdlWtDQcgRYqKhs 7f1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=3MsrlCl/YRXwQRSI1B/jt06tU+EaLLF/rgjMdgXloAc=; fh=ZAYaLXg3HK54q4cAWIQTqyIIjoGZj5RW4EZA54COeXk=; b=P2RJ0GphuM/DRvnqjCsotQpJVYCpUMaj7hfmKQLzFLUAydf7Vwz7vG51/Ox+TPzdBf U8oJIH8EusFoHQ0Dw6BibwPOPQYVEEzgjd9OForCqTzFWHYoyVij3h9O6YMbsXjx6i2L BYHJk1e+5Hxxf7ZsmErIx3nKHnNSlPNTZ0NoKRlB6y3TLkGVpa+fz8e8I9Vj5huHJiCV jiN7elwg6EHQj2Ei8+O5QJ33FxusD69ujhG0f248wgg2OuoWCdE/5GI6ZG905r7EC+W1 aobz1a9ehGnCAP8rBe6TKAsaMX6Mfd9XIGFQLSTkKmrMqR41CcPdnd2SRMrbR6UPcHxz EeIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l1q0O6oc; 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 gs15-20020a170906f18f00b00993150e5326si11980801ejb.626.2023.07.17.03.35.39; Mon, 17 Jul 2023 03:36:03 -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=l1q0O6oc; 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 S231204AbjGQJmq (ORCPT + 99 others); Mon, 17 Jul 2023 05:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjGQJm0 (ORCPT ); Mon, 17 Jul 2023 05:42:26 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85CA819BA for ; Mon, 17 Jul 2023 02:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689586939; x=1721122939; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mO01ZFkCZty6uHVGdcmYsRXqtJhMKZQf2z1Jb0eiF8Q=; b=l1q0O6ocHTXiStZ/THjuYQHaLW0bGdx0vDVNTBl4aFKFhGa+Am5MSJmc NXZXqZNw7Fzaqk905E7uXaCfA2ThZnnPgh/bdr0fDzvDkWfWEcPd1eyN+ 2hd9eQyEqsNw0A7V3d+ap571cEhimSYKPGl/QMvdcCXsqP+61WilXbWTl vlO1VwU8bzvoJ0pUv5axqjLq94ykCDZko2kbulHKrOszDtdTyuE82xovF k7/MHAsRo/Yi8TM9YwOClX3WgPRHdEJuTKUnv7jQgO33WaTomKXy05kDb l/8XyN+6anvZyqf2Fgp6zghv2tA3W4yxuHxj2KmtetMmdP6GljpdARL7N g==; X-IronPort-AV: E=McAfee;i="6600,9927,10773"; a="369440918" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="369440918" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 02:42:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10773"; a="836822374" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="836822374" Received: from jkrzyszt-mobl2.ger.corp.intel.com ([10.213.9.176]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 02:42:15 -0700 From: Janusz Krzysztofik To: Dave Hansen , Borislav Petkov Cc: x86@kernel.org, Thomas Gleixner , Ingo Molnar , Juergen Gross , Andi Shyti , Marek =?ISO-8859-1?Q?Marczykowski=2DG=F3recki?= , "Edgecombe, Rick P" , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org Subject: Re: [PATCH v3 RESEND] x86/mm: Fix PAT bit missing from page protection modify mask Date: Mon, 17 Jul 2023 11:42:13 +0200 Message-ID: <21945539.EfDdHjke4D@jkrzyszt-mobl2.ger.corp.intel.com> Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 In-Reply-To: <20230710080519.GAZKu7v2N/eK/jYXPL@fat_crate.local> References: <20230710073613.8006-2-janusz.krzysztofik@linux.intel.com> <20230710080519.GAZKu7v2N/eK/jYXPL@fat_crate.local> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Hi Borislav, On Monday, 10 July 2023 10:05:19 CEST Borislav Petkov wrote: > On Mon, Jul 10, 2023 at 09:36:14AM +0200, Janusz Krzysztofik wrote: > > Assume that adding _PAGE_PAT to _PAGE_CHG_MASK doesn't break pte_modify() > > and its users, and go for it. Also, add _PAGE_PAT_LARGE to > > That's my only worry. Let me remind you that v1 was free of concerns on potential breakage of pte_modify(). I can update its commit description as Dave requested and resubmit if you confirm that it will be reconsidered as a potential solution. Thanks, Janusz > > I'd suggest we queue this but not send it to Linus now. Instead, let it > cook in linux-next for the whole 6.5 release cycle so that it can get at > least *some* testing. > > Because if we send it now and something else obscure breaks in a weird > way in his tree, then we'll have to scramble to fix that too and it'll > be one helluva mess. > > Dave? > >