Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3338843imu; Sun, 11 Nov 2018 12:43:03 -0800 (PST) X-Google-Smtp-Source: AJdET5drLTEkYAuapzrmSEM/59yheDY7+qfE+gmXcb7tmVRZ7w2rXBCUhK3u5bjoTyrLqVAQjACa X-Received: by 2002:aa7:814f:: with SMTP id d15-v6mr17717823pfn.78.1541968983726; Sun, 11 Nov 2018 12:43:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968983; cv=none; d=google.com; s=arc-20160816; b=SsT+UC144QgVVP10ZC8OkUgvlbx/ry6vxJcu9qeElxyi03F56Sb8aLwsSb068OQJSM CXvBqjjUsWnyQbX2UeurFRox4tk+g5aKvfi7+/9jLRDU93DfuXfcsUCigq81rzVOXREq byWO1slF2lCRmVTZjWwnTSgGtyUYDe1LyRseEbOO4D9XC4ZedybUp9OHj277CM8w4aa7 f7vCZ/Jc05XZar2Sok4eCtc98OX5aL6U+7StZzlBK7GqMePRVaiQcbVet0W87jmVk9lj rpio6BJSz5QlSVwk6GpZuc5KnN+CSpERoeT3yAtOLjrDI2OvT10EJmmGTvfzCAEueF6E bPKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=yCm/TUxAZ4Ix6Ido4C5cGWs6/jzeqqJtcfqekFJybhI=; b=I4pEHdAs5i2cbaH/ie4fW7Y6thr6ALSjjP5SMmy8AXHG7NDtZHM11ID351Ont7hRG5 d8PqejDXvTB8BIqb1GUx6qVemY2SlCWv7W4+cRCfFYnN1BKxazwyUntMoSfxkiWtXevc thH2EFdfoCLVnQxkckCnIjKP5OcqW29CBRvmNGI/61oihW3MypWcV3IezRdtw+akwwNi i/fL+aUa04fgDEua5HzimqioARuiP33xphm7P0cG6UaXnYyw7DZtz9C2UFdgL777HkO8 2CQ8kueqglQiaHKJrX44a4MAqdMXf/c1cs3dDZS83hZCY3F1RaNGctasMczwshs0cDYU Xxbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=XsDmV9y4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si16467871pft.177.2018.11.11.12.42.48; Sun, 11 Nov 2018 12:43:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=XsDmV9y4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730388AbeKLGau (ORCPT + 99 others); Mon, 12 Nov 2018 01:30:50 -0500 Received: from mail-dm3nam03on0089.outbound.protection.outlook.com ([104.47.41.89]:60048 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729849AbeKLGat (ORCPT ); Mon, 12 Nov 2018 01:30:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yCm/TUxAZ4Ix6Ido4C5cGWs6/jzeqqJtcfqekFJybhI=; b=XsDmV9y4nUu/0DC4icrvKAMoT3e7YKuU71YtlxQfkZdMxNPWElnLHn07DgcejjpajFeArVdsF9P3LzdZfM8WKQ9tLZrM5cSVr6Z2hLhay3GGhQWUbZ0oOVc6lkbXzcITZL6BVcHe88KRcysoGplSOP1/kmNeTdX98Wnby6wEKu0= Received: from BYAPR05MB4776.namprd05.prod.outlook.com (52.135.233.146) by BYAPR05MB4968.namprd05.prod.outlook.com (20.177.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1339.12; Sun, 11 Nov 2018 20:41:12 +0000 Received: from BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::a1b8:a948:4c8c:747d]) by BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::a1b8:a948:4c8c:747d%4]) with mapi id 15.20.1339.018; Sun, 11 Nov 2018 20:41:12 +0000 From: Nadav Amit To: Damian Tometzki CC: Ingo Molnar , LKML , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Borislav Petkov , Dave Hansen , Andy Lutomirski , Kees Cook , Peter Zijlstra , Dave Hansen , Masami Hiramatsu Subject: Re: [PATCH v4 06/10] x86/alternative: use temporary mm for text poking Thread-Topic: [PATCH v4 06/10] x86/alternative: use temporary mm for text poking Thread-Index: AQHUeYjbLsK1w/h4IEOngRVarOSwtaVK8bAAgAAY/oA= Date: Sun, 11 Nov 2018 20:41:11 +0000 Message-ID: References: <20181110231732.15060-1-namit@vmware.com> <20181110231732.15060-7-namit@vmware.com> <20181111191141.GA1996@Ubuntu-DTI> In-Reply-To: <20181111191141.GA1996@Ubuntu-DTI> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=namit@vmware.com; x-originating-ip: [208.91.2.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BYAPR05MB4968;20:oL33UZt6iWJr/LcG7YZ7oCdAUTSnQauQIuOctYHtAM/1OX/G551K1FEUmnpTVjDF5YkPMQPrhXvaHipNieecuOhvrzlB90iHZMgn5gSKSeqXLdfU4P6txf+HVa0A0TcJnF09MsUKw5ijLakxc8eFoGHGsft0IivvwzzrIYeGPTk= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 812e769a-750a-4f70-8dc2-08d648160480 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390040)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BYAPR05MB4968; x-ms-traffictypediagnostic: BYAPR05MB4968: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231382)(944501410)(52105112)(148016)(149066)(150057)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:BYAPR05MB4968;BCL:0;PCL:0;RULEID:;SRVR:BYAPR05MB4968; x-forefront-prvs: 08534B37A7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(346002)(39860400002)(366004)(396003)(199004)(189003)(36756003)(25786009)(99286004)(6512007)(305945005)(7736002)(2900100001)(6486002)(6436002)(186003)(7416002)(97736004)(81156014)(39060400002)(54906003)(81166006)(229853002)(33656002)(2906002)(11346002)(446003)(486006)(2616005)(256004)(86362001)(14444005)(476003)(3846002)(26005)(102836004)(6116002)(71200400001)(71190400001)(8936002)(6916009)(83716004)(76176011)(4326008)(53936002)(82746002)(106356001)(6506007)(66066001)(66574009)(105586002)(14454004)(5660300001)(68736007)(53546011)(8676002)(316002)(6246003)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR05MB4968;H:BYAPR05MB4776.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: iDbmFHXq+jkxonaIc2btPRiqYOheLvPdjS+fZsjSSOV8M2GeDYhLmBz4saK9Y26F2hV9v7eZU88BsBC6W09Eeqskmk90QJXRUl8svm3azfKAYgvLERC4Un4z10VKdYri72SMM8RKv39okIxOhc8FwrowTJ3ByjtaaVXtUqfn2j97UfXRZ3u7aSS8r9y2H7M0c3PDXYTr/dmUVtnbyon4k6f04lckFBMwf47UbXDmBu/voDCdpi7sOjMZBbIyTt9BET97Ec9SONKD/4t4j8gAcPHAwe8ZPer5HaLAc5UL4Hh9NWFlRYcD0FDPQQ4m43redWY229yAuzxmX97sqG1jowiT3xvY0kAjJVNvuWAyoqE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <79E1045839A2304DAE046622E192A113@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 812e769a-750a-4f70-8dc2-08d648160480 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2018 20:41:11.9643 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4968 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogRGFtaWFuIFRvbWV0emtpDQpTZW50OiBOb3ZlbWJlciAxMSwgMjAxOCBhdCA3OjExOjQy IFBNIEdNVA0KPiBUbzogTmFkYXYgQW1pdCA8bmFtaXRAdm13YXJlLmNvbT4NCj4gQ2M6IEluZ28g TW9sbmFyIDxtaW5nb0ByZWRoYXQuY29tPiwgbGludXgta2VybmVsQHZnZXIua2Vybm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