Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6678353rwl; Mon, 9 Jan 2023 11:27:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtl8KIxxe5YjjVp/neCBy5lGkEJXk2fONy5IdgV7ujpLFTY9b1zFBAJQGEaC09S+59Fa1nd X-Received: by 2002:a17:90a:de04:b0:226:c0ff:20f6 with SMTP id m4-20020a17090ade0400b00226c0ff20f6mr17786224pjv.16.1673292465960; Mon, 09 Jan 2023 11:27:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673292465; cv=pass; d=google.com; s=arc-20160816; b=SqY/LwufUi8M27Wlw3jWCWCmYmYQgvsxedwy4uNsokBSF3LZAFoVRXgTxdAvvOImqx hR7luMbRZFJ33ptw1tgSuAbvs9CboCONW4Id1fHDWpX5GYQoMAYSJfW+cpGV5zfnpGzo ePGCyCipOPAdGwF15y6FZuSxF0rbIVl/F3J1dbw7S49C4cPCgFQrX3iRZDmVMvWAqmzh o0jtM905Xb1wgOWRJC6Fj/KXj/CMcytgqufqcU8WW7cvQIkg54uTHJsALh5yDIhxw2z+ FSdHD9yQhjQ94AEcKZ/jVWqd8sE8mN3KZXZUJJ/pffJ83NpjAfShv0/d0M1ukuG+OqnI 9kdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=xBfP1UUUu/m3u4QCqt5hPIRo13W3hzr5F4cZI15EgL4=; b=RKirboaWY3ovN5JPnlCN2zBG4IYabL5tpAj2pouWiCvQKZs+f3caPCACknwlyvM1nn yW6rPVsKsah7052/ZJtBGN11LT1DDnyXvtBXMlx6gWg00n5rut7s2S5UGK3Rm6N5vEW8 pseTDL+ktQYNbwB03LPRV0Hmz38LRrgWz/gkvE+jepeUhyB3vKEalJloAVVV/3nQKagD /dVocYDgqPJn2ngnA0rxGh5hSor2XSw4XjrT1vEc07OWxgW5rMKh5le0lzxhPxtla3SI mS67pdaxTIgvDFz4abuMWtGTzIjKyhLLcD2qsVlva75Ll4sPjqc45d9rJqJDvZ5R4QqA 3EfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=iZYbIS2T; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb12-20020a17090b4a4c00b002194ca43255si10895603pjb.50.2023.01.09.11.27.39; Mon, 09 Jan 2023 11:27:45 -0800 (PST) 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=@microsoft.com header.s=selector2 header.b=iZYbIS2T; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbjAITPO (ORCPT + 53 others); Mon, 9 Jan 2023 14:15:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235538AbjAITO7 (ORCPT ); Mon, 9 Jan 2023 14:14:59 -0500 Received: from BN6PR00CU002-vft-obe.outbound.protection.outlook.com (mail-eastus2azon11021025.outbound.protection.outlook.com [52.101.57.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7FA28FD9; Mon, 9 Jan 2023 11:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9no5nM9Lrg9jbshi0bsQQWx/n+tSqqKlr7zXO8WLfADV84+2AS7ZSjYWeka10br2yQyjdLqrjfqHN9V5cWqiNRaHnB+L4JXfz/R0BrBIooZvBnEIpvbw4xVaa5kkLxwC3SzuUqBuTy7W1FafzXnykuxgrYnztyiOzlSCiYTcN8D0FeqnZV2qCBNCiFHGguAN4iytnVq+z2Q68YzWJzBs2SEpQihZi1/EmvGYGhWETgf8NEtX7LiqvKlSEjqu6f1JSYl9+HJEg6GIdUEB8IAuiFw6fReyKKu0XxUrMzcfRRFfP5hKBEQFjBnFgc4MyAs+i76XeV3MbNp/TTkxzbILg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xBfP1UUUu/m3u4QCqt5hPIRo13W3hzr5F4cZI15EgL4=; b=QL9ZXO+Xv9X2yy+RJoZUi0g/Xb6jzVJizsJXmNHKTp+P0UTZUSg7Y+LTsxnwCMavzdQhEh4AfCD/Et3ObVRghh/7YvshE/sGSpGk2x/Bp1JgFU7KiQBhasZSkp+2PDBPZyHKHaPHPuYiimcrNw1uKEaZ6/2dDjKeie/wWGsw/00Vo1HnNJ68TfsatGGVclx3aTpbNrPGlkgfyOHh+B3Pmq9wFqXjUsS24BgcOshkWzvDEfTEbPQ2A4lpB0eocTorgWkYfLCE0b8X5aVyxHJkoPugL5un0l7EH3rIqYMCz/6kijmm3O3bxD98JG/UOD7pa2GP+O9rlTENdo0Y3TXyaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xBfP1UUUu/m3u4QCqt5hPIRo13W3hzr5F4cZI15EgL4=; b=iZYbIS2ThToDwe2g031XBzsk1/TF9a8Fbtv0AhgCXF8KhAH9dfR6SeGrl48jn5tGcD2xOjI+FQpBCAGpIX66OTo8HvSPV3+Rae8OOqrgDJuSVEXk938KibtE4yJHrKdCaKY0fD7wyPnIeDXTGazTpGv9MnLnXN7ds5Xc6NEVBp4= Received: from BYAPR21MB1688.namprd21.prod.outlook.com (2603:10b6:a02:bf::26) by PH0PR21MB2079.namprd21.prod.outlook.com (2603:10b6:510:a8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.3; Mon, 9 Jan 2023 19:14:54 +0000 Received: from BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::db1a:4e71:c688:b7b1]) by BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::db1a:4e71:c688:b7b1%5]) with mapi id 15.20.6002.009; Mon, 9 Jan 2023 19:14:54 +0000 From: "Michael Kelley (LINUX)" To: Borislav Petkov CC: "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "luto@kernel.org" , "peterz@infradead.org" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "lpieralisi@kernel.org" , "robh@kernel.org" , "kw@linux.com" , "bhelgaas@google.com" , "arnd@arndb.de" , "hch@infradead.org" , "m.szyprowski@samsung.com" , "robin.murphy@arm.com" , "thomas.lendacky@amd.com" , "brijesh.singh@amd.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , Tianyu Lan , "kirill.shutemov@linux.intel.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "ak@linux.intel.com" , "isaku.yamahata@intel.com" , "Williams, Dan J" , "jane.chu@oracle.com" , "seanjc@google.com" , "tony.luck@intel.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-arch@vger.kernel.org" , "iommu@lists.linux.dev" Subject: RE: [Patch v4 04/13] x86/mm: Handle decryption/re-encryption of bss_decrypted consistently Thread-Topic: [Patch v4 04/13] x86/mm: Handle decryption/re-encryption of bss_decrypted consistently Thread-Index: AQHZBf6qXxv12SnI/0WwIL+HXSylNa6E8yMAgAA/XSCAEX2zAIAAAIfg Date: Mon, 9 Jan 2023 19:14:54 +0000 Message-ID: References: <1669951831-4180-1-git-send-email-mikelley@microsoft.com> <1669951831-4180-5-git-send-email-mikelley@microsoft.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=aba4fbda-5485-4ae5-a69b-7cfc3ce8ae3b;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-01-09T19:12:47Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR21MB1688:EE_|PH0PR21MB2079:EE_ x-ms-office365-filtering-correlation-id: c808704f-adc7-498d-ec1a-08daf275ca71 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: z1Md2UbmDSewAfeEL3ZRPPRLC/xme6gL6EwSqPYDl/E5lEK2Hk9BmH/wFITft3tWwS9rjtTkRwPFgSaJwgnHe9Snu/KOIDM8ZuIfKhILAnzVIU9Rf1M79Ap5WyH92+b3EPtGOReM+HYT/6py5Fpm9dP13MofxMDkTTcBmD0wDDO0BySs3WJaCPvx0c+QdKiF74574NFcEhhbNbbFxuhnxOCVpEe22Z1DjlTqmF0SLMSejkR+UE7GkV0DlP/uLSMeKQ4f9EAWQKqjayPlo63QZJ2gfX1RO82Ehk1dhsE2ys4WtuhU15Izp0fXLQq0OkNVjnDtJbAkdfR7/IwpgNwBDgCFv1QCDZGBEWWugiKWxeHkdw7N70rSgHFh/ZcVJNAPfgjtNJq6bz3dCtaEcrL7RwjVmtOfCGVeuu4kTIuJBevmmGf/x92NMwmQ5UEyAI3YtmzxSgW81or5DIcoyBVFtlFsrkUiZo/UPMOFb7AldIz5VmjJIfPfWsFMcMNAqHb+cE0oH0OGwJXCIk+VQYjt+8mpJcXGG7tGDJhxfnOVF4DolfRHugTfU1RpXCMSkW7S6pxCBihRiigs+eYtUpImum52/7dDN36DObW+aS0dyB9nCuil1h15Ur38vNNXz+uwDCCFgAERAqjU040lhUOw7IzIUWYxiJdhj/Zut9vWmim57sImUhSAApSogW7f01Uiw9ZT2TUFxEgWvkRaWOz6ELzG0oNIAZ8aW7sv4xiCTQzvzUtSK7jxh8YZVyc545s5 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR21MB1688.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(346002)(39860400002)(366004)(376002)(451199015)(33656002)(478600001)(54906003)(7406005)(7416002)(8936002)(122000001)(52536014)(2906002)(10290500003)(5660300002)(8990500004)(71200400001)(186003)(9686003)(26005)(82960400001)(82950400001)(7696005)(55016003)(316002)(38100700002)(6506007)(38070700005)(41300700001)(6916009)(8676002)(4326008)(76116006)(66556008)(66446008)(66946007)(86362001)(66476007)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?snwJ3cYFBqqb1H1rGdGYrhCP9VQDHNXULimOG5yqGlw70N/e/b8nWzCX9A4m?= =?us-ascii?Q?zi3FgPdBtFsxmpGW25ydRsdv7i4veX3vTDc7m1842KEP3LgeJNDUBIj4EGDh?= =?us-ascii?Q?ZNv1DE1LhTwq6SuImKRe9wkP1Lfg6dxYOxnvfpZR1Lt61xZ2GmKrbiE2w7hV?= =?us-ascii?Q?USxIQ0czTqCZ/Oy6nuDfTfIjRlljPoFDdfdXheluKDg0XT9ob0xOrlD2p3jk?= =?us-ascii?Q?90hbR4jVQ26rafT4oZWiegrUG+QfZNKpqJyjV2SkQdSFCFrSVSxYlt4QpPJ1?= =?us-ascii?Q?vOgWQWQeRVWa+RyUCbuhwJCImbh+GesWwQRhHvEg5T8w0WbJaBr7P8HhmGB5?= =?us-ascii?Q?2L+c7WOGGgxzcIfQL50oJfelkL9meFOy2DwgTT6kglgXivD2x5BhNJTC3+YW?= =?us-ascii?Q?8szwXMcbux+VgMIBLm3x3QCAXRyxT/+rb+yp/y9Y8EJetyTSLYGpITCU4BdP?= =?us-ascii?Q?VQxOlV2DNoI61KLkfWmCHYpeHN+CBliUW5kYqHEGUlMPgdLKYw3A9iJItRsU?= =?us-ascii?Q?nv7Y9d7G5YhdENLAHovMlgJVGcOaC0thVz7ZlbRJubI6CTfy3VVonHaOY9CL?= =?us-ascii?Q?eTX5rwpQhFXKFIutg2kZPkNYE7wChgwTQFaGudibmzBl1H7rX8cErrNancw8?= =?us-ascii?Q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fXWY5WSw+8ErRCG?= =?us-ascii?Q?h79Hk2UT8la8iHW9dxJct/5wAP1TabH7A89Zkyj05KuvAyMIb4AEuHBnupqB?= =?us-ascii?Q?gA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR21MB1688.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c808704f-adc7-498d-ec1a-08daf275ca71 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2023 19:14:54.7749 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2uyS1SyyLqP8EmurMCyDa7+ER2eMQlIC3gVpWryrHH6iScJKymrv0IwVZr5O86kT3eYWMcSLOwsbEA3qR32SDGwWd2COr4Bn4qfQDg58NUg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR21MB2079 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 From: Borislav Petkov Sent: Monday, January 9, 2023 11:11 AM >=20 > On Thu, Dec 29, 2022 at 04:25:16PM +0000, Michael Kelley (LINUX) wrote: > > I'm ambivalent on the backport to stable. One might argue that older > > kernel versions are conceptually wrong in using different conditions fo= r > > the decryption and re-encryption. But as you said, they aren't broken > > from a practical standpoint because sme_me_mask and > > CC_ATTR_MEM_ENCRYPT are equivalent prior to my patch set. However, > > the email thread with Sathyanarayanan Kuppuswamy, Tom Lendacky, > > and Dexuan Cui concluded that a Fixes: tag is appropriate. >=20 > Right, just talked to Tom offlist. >=20 > A Fixes tag triggers a lot of backporting activity and if it is not reall= y > needed, then let's leave it out. >=20 > If distros decide to pick up vTOM support, then they'll pick up the whole= set > anyway. >=20 > And if we decide we really need it backported for whatever reason, we wil= l > simply send it into stable and the same backporting activity will be trig= gered > then. But then we'd at least have a concrete reason for it. >=20 > Makes sense? >=20 Yep, that matches my thinking. I've avoided marking something for stable u= nless it fixes something that is actually broken. Michael