Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1619170rwi; Thu, 20 Oct 2022 15:08:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74OdRx7n89l2ckPiY26m1qwHfGemUfgC84GyNLG8i+ZbCzRv9njDNuKEReK6GOr/OdM9wG X-Received: by 2002:a17:902:b606:b0:184:1183:5f9f with SMTP id b6-20020a170902b60600b0018411835f9fmr16228789pls.84.1666303695645; Thu, 20 Oct 2022 15:08:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666303695; cv=pass; d=google.com; s=arc-20160816; b=JmcAWPcT4peT4K1HJhX45l8JYHHDC+ksDcC2rQzqtlTE/znj4fEhZ0Ox6z75ULdroJ F1wy0DZfGaAClEkqRZfW7NdXI4TA0GcAe3Rf3thpdBQvZbwAwUi7q4qqBH07K0wEk8e8 g0xWGlsa8qdMmH7165j13gtdvB9bDMVyCuM+MJ5cYUWWIQmLkwRiyX/yJ7IAwGQJLvs1 iIQBxnTerxByLGaprZdbjt0ho7ZX0PWFRmjwEyjckgPXqs7uI4hu37S8ZZJ+rJH+WA8C HBNdsOsnxmwyo7TMu+Vpk2WlvjVOJsBcFuhINkAer40uzpxPro9zGoR2F1sEKr9IyvPx i2Jg== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=mXCu+6IfYv2NiZZFO3yikF3/zh8kAbx9xVyXBm0a2OE=; b=KZOjayrNtTg8d4Yy25ecPaWNOxE40TshepefF2LuailekuHjnUm8Py3glln2qohpiq JGpdUui1GQYPjlX3Yt3oBGbEbTzidPMhVYDZmmwh84+Rs0LYqDjappo3ne/6WV0G/VDo LkzFmB4bW32d/C0lcADtQzvFf6RI3eec6d17QMQ+qel5rv4+3OSNLTtdgm2AOKYwB39C 0ExZ4ad+HoQ1dF6kIXIiT7ankTxSQIy7oSr4kx3869VT03MCGAcKeguG5Ot/UjhZcf/t XujHfk5LqfwR61pPdNT8Ah++8OO5fbs8b/yCmSdTbv5VsnTbKx+UyFAXdz+wCZ2Ixk8Q MtTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=amG1SOlL; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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=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 b3-20020a056a00114300b0054116441045si24231417pfm.281.2022.10.20.15.08.04; Thu, 20 Oct 2022 15:08:15 -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=amG1SOlL; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbiJTV3w (ORCPT + 99 others); Thu, 20 Oct 2022 17:29:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbiJTV3u (ORCPT ); Thu, 20 Oct 2022 17:29:50 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4307124F; Thu, 20 Oct 2022 14:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666301387; x=1697837387; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=mXCu+6IfYv2NiZZFO3yikF3/zh8kAbx9xVyXBm0a2OE=; b=amG1SOlLbawC8zsalQGkQ2vjG38uV+aCN9HxIFl8c4ynkJ57zIWAz9CN jEgQc4lfGC9F+sKh8loaJVRFZBtOPIUFDlsHNuZTeDAvEm/PHFvSlummo qeK5mxn/kfp5SOsSnmoFmrA2oderLM+mUBAxVzyDzQEMhIn+qTH5kqvdX i25t5O78GrHC/7sYWKMBpqbgKsWdv3/ZhOFNVnEuuCvuVUeTv2yQ2JFqr 6DfQPoDCWZRwbcHB0YvJPfcfXdNdVLJVMekXHn9DrEsG4a18ijcCNvciN gL0JbkiE0d1Zbwgi23T/EecqV8yOmsvnEQFJkSVuWV9Z1yM10/qEUjRwx g==; X-IronPort-AV: E=McAfee;i="6500,9779,10506"; a="287244506" X-IronPort-AV: E=Sophos;i="5.95,199,1661842800"; d="scan'208";a="287244506" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2022 14:29:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10506"; a="607937804" X-IronPort-AV: E=Sophos;i="5.95,199,1661842800"; d="scan'208";a="607937804" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga006.jf.intel.com with ESMTP; 20 Oct 2022 14:29:45 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 20 Oct 2022 14:29:45 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 20 Oct 2022 14:29:45 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.108) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 20 Oct 2022 14:29:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HREmLz5C4Up8yT+36yT/CRSUCZXB7DzsEoOjU092KoE1xr1GNdUbgqQdMeIwexosmuhOc7ilh2E/Y7VW1SI/gCIkJRycGsmnmKnFYNIEvESwPXTyQSyd/ma6zkAP/SwGtVsORmk9KBlS6L0+c3n930r9moBjGaxTTfmtLooJVt/XPfrJ569uj/M618pTaiEuXfb7YY5bRyiCqnFGdBP9DkmGKIqgFj6BPX6YjGB8Mo8YC9NDjwXoBVl54vi9vvLlkRZtPZIaM6aWC53ZT19n7beYWADn2g2hLlKP4b3uUNJTU1gBlpvz1qVV0KYoEDy3hUJVsfek43I2VOrUiqyhuw== 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=mXCu+6IfYv2NiZZFO3yikF3/zh8kAbx9xVyXBm0a2OE=; b=KZ1D+wV5WHLZ3SizCj4w5WJhjkrw4df1e/msOEEm3Mraob1EtktpWuAcAPtx6wL3Q7hATJOw52FT4dOVmJdSJULrXNTIybffYJG5hvLh/EMnKWt1RS3ZHzzSeLVC8AD2/QdNfDsYDW3z7zfn6GRNnz/WyxEIdx7di9z5EQ1e/ia+1Lpyb4rbwuGzfTII8LfcP0mtgklAOYI2/YhbKNAeC+mMlROXKUT6SewL5M57Zoxzbk2MwceSNQ2ChD23ZMTIlTmuPU3xp4bJKDieGiJeOZFK4WN9ZX8YC82+ubs32/U9w7PODLenjnss/XRgva5HCDmPWXLfXixnKwWf8FWsvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MWHPR11MB1392.namprd11.prod.outlook.com (2603:10b6:300:24::14) by DS0PR11MB6397.namprd11.prod.outlook.com (2603:10b6:8:ca::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Thu, 20 Oct 2022 21:29:40 +0000 Received: from MWHPR11MB1392.namprd11.prod.outlook.com ([fe80::99f8:3b5c:33c9:359a]) by MWHPR11MB1392.namprd11.prod.outlook.com ([fe80::99f8:3b5c:33c9:359a%4]) with mapi id 15.20.5723.034; Thu, 20 Oct 2022 21:29:38 +0000 From: "Edgecombe, Rick P" To: "keescook@chromium.org" CC: "bsingharora@gmail.com" , "hpa@zytor.com" , "Syromiatnikov, Eugene" , "peterz@infradead.org" , "rdunlap@infradead.org" , "Yu, Yu-cheng" , "dave.hansen@linux.intel.com" , "kirill.shutemov@linux.intel.com" , "Eranian, Stephane" , "linux-mm@kvack.org" , "fweimer@redhat.com" , "nadav.amit@gmail.com" , "jannh@google.com" , "dethoma@microsoft.com" , "linux-arch@vger.kernel.org" , "kcc@google.com" , "bp@alien8.de" , "oleg@redhat.com" , "hjl.tools@gmail.com" , "Yang, Weijiang" , "Lutomirski, Andy" , "pavel@ucw.cz" , "arnd@arndb.de" , "Moreira, Joao" , "tglx@linutronix.de" , "mike.kravetz@oracle.com" , "x86@kernel.org" , "linux-doc@vger.kernel.org" , "jamorris@linux.microsoft.com" , "john.allen@amd.com" , "rppt@kernel.org" , "mingo@redhat.com" , "Shankar, Ravi V" , "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" , "gorcunov@gmail.com" Subject: Re: [PATCH v2 24/39] x86/cet/shstk: Add user-mode shadow stack support Thread-Topic: [PATCH v2 24/39] x86/cet/shstk: Add user-mode shadow stack support Thread-Index: AQHY1FMhfYHsd4bOok+fj02ID3Hgq639GE2AgBrVKIA= Date: Thu, 20 Oct 2022 21:29:38 +0000 Message-ID: References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-25-rick.p.edgecombe@intel.com> <202210031203.EB0DC0B7DD@keescook> In-Reply-To: <202210031203.EB0DC0B7DD@keescook> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.2 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MWHPR11MB1392:EE_|DS0PR11MB6397:EE_ x-ms-office365-filtering-correlation-id: 30f51e5c-22a7-4483-cfc8-08dab2e2315c x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zVQkX3XO79uDZ8dmoZJn3snU9rJ7+LJb4uK4zKvirroPGygwT1rFvYmwuCcsP7I8dVQR10uf6dexdF4Nr5//p2j9AZRrYCqyBW2cfBBPz8P6AUF+VOHAZgLbZCai2MfahGJMHYnsTcwPyxjyvHirczQVxv2vfmRSnpfCfs3UFBG+/aXJ7vd55kM9jDTLAPN3kEvbQHhc0CQDo/wSBS+BInPF985R6vPhy6Lzq8CEQa2fNi1qXLH/FaYwJxqKGjSknMczK6j28nOUYq9xz06f8zAYABfOAEnHkOUDXkchWYlgvm5BUE5kEnKiV3Qd9tVGDyRuAYu3VICD5VRl2UPkDJTYFhgb5NeEuVDorRbPBBJpiwgBpXweI9Cd7hGtomJw84I5cypTJaf56FUEGXw6WvxK2HEDIjQ1g+n0G7NuMUVT8u7VGCY1TnTQc/pxQ8NV3IRMuXrzDDBGrvy37TxbAVKK0VrxYQX3hboSKduZjdsBxWYysAqp/BcFKdM4YkrXQH9vpFBnuVEM8Lf62FaPeRZHCHv5FLVyR0b913qNb23ZbiqsvcW4NcgGokNVS8mGXFPqntr46y+MwxAZXtnNDdJuwN6J4SumVSaYtZKKyv5vcynczZuZ/YYhxrh8pm41SIwQsC0vqUqQu838UHt2JeKdXO+UVOHlEm0J6SSpoYSX/tmkcW+HC8yC4l3wP8TMNDvufnDspr/t6DkWzlfbRaARCqhSro3LiTRbAcmchKqfQnw5z6HB84Q0pXAGxD7ZGJn5A4KQnrtCLUoQ96eErhol+QWyYem0YMrYl62anT8= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1392.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(376002)(346002)(39860400002)(366004)(396003)(451199015)(66446008)(36756003)(6512007)(71200400001)(76116006)(54906003)(26005)(7406005)(316002)(91956017)(478600001)(6486002)(8936002)(186003)(8676002)(66946007)(2616005)(41300700001)(66556008)(4326008)(66476007)(2906002)(6916009)(83380400001)(5660300002)(122000001)(86362001)(38100700002)(64756008)(38070700005)(82960400001)(7416002)(6506007)(99106002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?SW85RW0vdE1nWmo1MzdiYjRoRkZua0tLVUkzVTMzVE5jKzZ6QW9jc2EyS01w?= =?utf-8?B?a0xsSEcrbEF5VkhKUG1JU1k0d0ZDQVNJTUNoZjZRMnlLRDNScFRHQjZYMVZn?= =?utf-8?B?Y0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JNOVNvbldYOFNocC9kZjd4Y25m?= =?utf-8?B?anRwZU1YUEhxVGlJSFFFSHBsMzJSclJndlp4Z1JwK0lCemJIaHhVRDZIQW8y?= =?utf-8?B?QW9XOXg0NWppaEJUWnE5VHE0YklOVnlIRUpqNWx2T04zTWRqTy9sTTJnUDJ1?= =?utf-8?B?L2N1Tm44cnpFVmhXblRiK29NWkRCaUdpc2U4RVdhK1FzNXJCVWNVeDl2dnZE?= =?utf-8?B?ZlpHemVKVXFmeHpacFlpKzRXRm4vNmJCSC9hMmlTNm5JVjFYTVU2bEFvbVNH?= =?utf-8?Q?EQX8cdj6EFE0yDBFvi64Dvw=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1392.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30f51e5c-22a7-4483-cfc8-08dab2e2315c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2022 21:29:38.6396 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zcIUaxu5nLh0jUuHyH8rntMSNOQ+69F7vjUBWG2AYPndSiKcRCpQXrncVj8aleifLQ8MGYk7swRAg5XHkIVP3144PVYDgqNoQ4JQu8Y/B5M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB6397 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.6 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_NONE,URIBL_BLOCKED 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 SnVzdCBub3cgcmVhbGl6aW5nLCBJIG5ldmVyIHJlc3BvbmRlZCB0byBtb3N0IG9mIHRoaXMgZmVl ZGJhY2sgYXMgdGhlDQpsYXRlciBjb252ZXJzYXRpb24gZm9jdXNlZCBpbiBvbiBvbmUgYXJlYS4g QWxsIHNlZW1zIGdvb2QgKHRoYW5rcyEpLA0KZXhjZXB0IG5vdCBzdXJlIGFib3V0IHRoZSBiZWxv dzoNCg0KT24gTW9uLCAyMDIyLTEwLTAzIGF0IDEyOjQzIC0wNzAwLCBLZWVzIENvb2sgd3JvdGU6 DQo+IE9uIFRodSwgU2VwIDI5LCAyMDIyIGF0IDAzOjI5OjIxUE0gLTA3MDAsIFJpY2sgRWRnZWNv bWJlIHdyb3RlOg0KPiA+ICsNCj4gPiArCW1tYXBfd3JpdGVfbG9jayhtbSk7DQo+ID4gKwlhZGRy ID0gZG9fbW1hcChOVUxMLCBhZGRyLCBzaXplLCBQUk9UX1JFQUQsIGZsYWdzLA0KPiA+ICsJCSAg ICAgICBWTV9TSEFET1dfU1RBQ0sgfCBWTV9XUklURSwgMCwgJnVudXNlZCwgTlVMTCk7DQo+IA0K PiBUaGlzIHdpbGwgdXNlIHRoZSBtbWFwIGJhc2UgYWRkcmVzcyBvZmZzZXQgcmFuZG9taXphdGlv biwgSSBndWVzcz8NCg0KWWVzLg0KDQo+IA0KPiA+ICsNCj4gPiArCW1tYXBfd3JpdGVfdW5sb2Nr KG1tKTsNCj4gPiArDQo+ID4gKwlyZXR1cm4gYWRkcjsNCj4gPiArfQ0KPiA+ICsNCj4gPiArc3Rh dGljIHZvaWQgdW5tYXBfc2hhZG93X3N0YWNrKHU2NCBiYXNlLCB1NjQgc2l6ZSkNCj4gPiArew0K PiA+ICsJd2hpbGUgKDEpIHsNCj4gPiArCQlpbnQgcjsNCj4gPiArDQo+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