Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp263288rwb; Tue, 4 Oct 2022 03:49:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Yrol70C54/APA1AHU/Hd5uE2imJJbZwobIzZJ9GL3wpGLx8wE7iwbMZkF8yQq7/4fykkh X-Received: by 2002:a17:90a:3989:b0:205:e4c2:e09b with SMTP id z9-20020a17090a398900b00205e4c2e09bmr16939855pjb.190.1664880585594; Tue, 04 Oct 2022 03:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664880585; cv=none; d=google.com; s=arc-20160816; b=kaofwTRguJuR2o6pV2Fu1hcupptpDrIZ+kSS9CWVqJR3WsQWEbP++RSzmcuVD0gA9i 7+RwZLthbWa3CQ5KZbw2MJG0uheXrxpoKiW22ZTnI7ArNCudpkPHoXhHx1PUcgi8lofD pGgaL0ds2T40P5WlfDRRAu2qtYfAf19AYVf/j5+bchiDV+GPF87vSHs40W4SdMbGTrms LZAbKkWaVrAtgzGFPAtC1labWeOCIfsEC/IY6wobqggjXuBbfoJbJ6QqRlqL5GdT3jjB wx82yCxunouOjcz+cMPdAw57AOi1N+hRpkDvWuoUfXH/b/3Qzuk40HEV+HsTLfh2Rm6U JMWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=w3AIO9u3vqmUmJuksH/Ot+qudaWIa2qF4AyKn8NrEqY=; b=sDk9tukkuZzQlvFjP7/nWXhzMG500SLklWC2XEbCiSOAXV5naygyEhhtS7RxxMTUxU gT/A1mfEHMulfKwsuWjoKZ75OsGHNsOy5DMrjsxad9DRtLBzG7jjkDtEOmkHp00/gy56 SPEPXnpACjiXTbDtjUdZy48tGlcsln090b6Z+EjFRmSaQceWY7C40x4CdJ2RH5I3fWxK 9TiTSzSTg6AVcH4lD7TLGEGU6uOXYMjiyQI9trYc4fM04+WNjymYuc+3u+H0261Cr5WM 56UL6EbsWP91mk+DeRGBRNfRV8lXwEXRADhOuqEqsxgaJwqS/89ZHtR3uwvl0+zt05J+ of1w== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cc4-20020a17090af10400b001fd70129092si2223505pjb.15.2022.10.04.03.49.33; Tue, 04 Oct 2022 03:49:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229550AbiJDKSJ (ORCPT + 99 others); Tue, 4 Oct 2022 06:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbiJDKSF (ORCPT ); Tue, 4 Oct 2022 06:18:05 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A206B2C117 for ; Tue, 4 Oct 2022 03:18:03 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-234-vpaXn1vgMYacXBGVntZ1PA-1; Tue, 04 Oct 2022 11:18:00 +0100 X-MC-Unique: vpaXn1vgMYacXBGVntZ1PA-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Tue, 4 Oct 2022 11:17:57 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.040; Tue, 4 Oct 2022 11:17:57 +0100 From: David Laight To: 'Dave Hansen' , Kees Cook , Rick Edgecombe CC: "x86@kernel.org" , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-mm@kvack.org" , "linux-arch@vger.kernel.org" , "linux-api@vger.kernel.org" , Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , "Jann Horn" , Jonathan Corbet , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Weijiang Yang , "Kirill A . Shutemov" , "joao.moreira@intel.com" , John Allen , "kcc@google.com" , "eranian@google.com" , "rppt@kernel.org" , "jamorris@linux.microsoft.com" , "dethoma@microsoft.com" , Yu-cheng Yu 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: AQHY12Njz3/HZpf9jkaO+WwIiUYgJ63+BXng Date: Tue, 4 Oct 2022 10:17:57 +0000 Message-ID: <4b9c6208d1174c27a795cef487eb97b5@AcuMS.aculab.com> References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-25-rick.p.edgecombe@intel.com> <202210031203.EB0DC0B7DD@keescook> <474d3aca-0cf0-8962-432b-77ac914cc563@intel.com> In-Reply-To: <474d3aca-0cf0-8962-432b-77ac914cc563@intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 RnJvbTogRGF2ZSBIYW5zZW4NCj4gU2VudDogMDMgT2N0b2JlciAyMDIyIDIxOjA1DQo+IA0KPiBP biAxMC8zLzIyIDEyOjQzLCBLZWVzIENvb2sgd3JvdGU6DQo+ID4+ICtzdGF0aWMgaW5saW5lIHZv aWQgc2V0X2Nscl9iaXRzX21zcmwodTMyIG1zciwgdTY0IHNldCwgdTY0IGNsZWFyKQ0KPiA+PiAr ew0KPiA+PiArCXU2NCB2YWwsIG5ld192YWw7DQo+ID4+ICsNCj4gPj4gKwlyZG1zcmwobXNyLCB2 YWwpOw0KPiA+PiArCW5ld192YWwgPSAodmFsICYgfmNsZWFyKSB8IHNldDsNCj4gPj4gKw0KPiA+ PiArCWlmIChuZXdfdmFsICE9IHZhbCkNCj4gPj4gKwkJd3Jtc3JsKG1zciwgbmV3X3ZhbCk7DQo+ ID4+ICt9DQo+ID4gSSBhbHdheXMgZ2V0IHVuY29tZm9ydGFibGUgd2hlbiBJIHNlZSB0aGVzZSBr aW5kcyBvZiBnZW5lcmFsaXplZCBoZWxwZXINCj4gPiBmdW5jdGlvbnMgZm9yIHRvdWNoaW5nIGNw dSBiaXRzLCBldGMuIEl0IGp1c3QgYmVncyBmb3IgZnV0dXJlIGF0dG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