Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3486380imu; Sun, 11 Nov 2018 16:11:25 -0800 (PST) X-Google-Smtp-Source: AJdET5ddrkv0vfsFFBvUkZTQ9GcvigCGRs7sJn8ajuddKYaIHWs/krOUFxwAHVANsJfZ9/gz67UI X-Received: by 2002:a62:2211:: with SMTP id i17-v6mr17783802pfi.35.1541981485906; Sun, 11 Nov 2018 16:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981485; cv=none; d=google.com; s=arc-20160816; b=yX23ttlq4nUEAnN/ohDF2LvKoHY179tsvUbKjLiKUnroEQG6rHz7ojFLGLFZYGMnxY x7K08XG6ZC+Q4DlJ+CpDdIr7+9JXtP77sAxIOIMguLjyn3XzRB2DPFxD2mNiI6WMx6KR piWMMy0aU1ZTVpO+y5VmsyTLNIoe4WvVP0da0sAQ6tYVPGVS7m6V5NQ7pZKEOBalKSs4 x3Ols5qJ0Z+4uCMJYGpzsT4hUvQYg4d2BUsY8ppYGHfwPKtebfghxQhHut9t96Yv1kg3 4C/p7oAaxjH9930k6rDn92RYvyQwGB09OaqoDAW4TS0CtYwUtLIO0xt9+tPvbZ9vyCYc MQAw== 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=u1s87dDRPAoXbW/rouMKE9xBWcZYAQVSnrC78Tdrik4=; b=rtCqOMVsyFp4zjcVX/PIAH1g8xIevRugCO/NSeWjqKYNimaVp1WHBw1e8jqolfQcY4 lTvUkdaztxU6+sgmwLSxfmk53BeSGJi1NjoPZ5J6cpxbzmak3dnFF5R/QRaXoviY7CxF xYsxy+PD/ax+6Ysz/npCq9Au/wQceMSafUuGRQGBGm1xIXedDhRBXbl5/hhZ6Tlhe42p 0yCH0wZAC3kiHAc5TQTMg6S/YePt8ZwyOGiLk+/+CVtSkyQLvA9qlE8D+UmLbI+Eagng Tfru1UgWezodXlDiPd119LOpE05McqUsiGIqhBx6+ZWTrFW/JrDe+YecUilCm14i4Uyk WKgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=aVWJdtDi; 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 q20si15588637pgl.268.2018.11.11.16.11.11; Sun, 11 Nov 2018 16:11:25 -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=aVWJdtDi; 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 S1732004AbeKLKAE (ORCPT + 99 others); Mon, 12 Nov 2018 05:00:04 -0500 Received: from mail-eopbgr760045.outbound.protection.outlook.com ([40.107.76.45]:45600 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731042AbeKLKAD (ORCPT ); Mon, 12 Nov 2018 05:00:03 -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=u1s87dDRPAoXbW/rouMKE9xBWcZYAQVSnrC78Tdrik4=; b=aVWJdtDi6nuVHFbOydG8RONx8BoM3FIrwk5AAIHnMz10UNS+ZYiZkT1MZIAnOTb6xP6OTY4HA2z10hi+kaPN6MuyxUbCFvZbAerDZpUECfzcgbsdlUuBBNHXfgZaNv/qBmJC4GnSBv3Afsa6Bn1GJzAFZtKWde1DGWCX8zzra9c= Received: from BYAPR05MB4776.namprd05.prod.outlook.com (52.135.233.146) by BYAPR05MB5846.namprd05.prod.outlook.com (20.178.49.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1339.14; Mon, 12 Nov 2018 00:09:32 +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; Mon, 12 Nov 2018 00:09:32 +0000 From: Nadav Amit To: Peter Zijlstra CC: Ingo Molnar , LKML , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Borislav Petkov , Dave Hansen , Andy Lutomirski , Kees Cook , 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/h4IEOngRVarOSwtaVKq0EAgABiwQCAADIXAIAABMsA Date: Mon, 12 Nov 2018 00:09:32 +0000 Message-ID: <70EACCF7-D854-4051-9F71-4E966FD6C37B@vmware.com> References: <20181110231732.15060-1-namit@vmware.com> <20181110231732.15060-7-namit@vmware.com> <20181111145936.GA3021@worktop> <43C8C690-F079-4513-82CD-46A62DBA5A3B@vmware.com> <20181111235220.GB3056@worktop> In-Reply-To: <20181111235220.GB3056@worktop> 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;BYAPR05MB5846;20:U/yDI7qJjhmLo/vrsL0cilOHz+255QinXKPU8tloQNuNfpp6uhxpd7zvjfC9ZPOhumkX4KsLQxK+QtC0gv5TiSVjIWvKsqGbGe+R7CMioOQVSgf/oTLmEgq7szytQU6Sj8wOJ90PD0fw2xhojId53d6bNpMRPPeRE2KIaXEqa8Y= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: fb6806a9-3d3a-4d61-a10d-08d648331f3b x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390040)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BYAPR05MB5846; x-ms-traffictypediagnostic: BYAPR05MB5846: 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)(3231382)(944501410)(52105112)(3002001)(10201501046)(93006095)(93001095)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:BYAPR05MB5846;BCL:0;PCL:0;RULEID:;SRVR:BYAPR05MB5846; x-forefront-prvs: 0854128AF0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(136003)(376002)(396003)(39860400002)(189003)(199004)(68736007)(83716004)(71200400001)(97736004)(71190400001)(6486002)(446003)(2616005)(256004)(229853002)(478600001)(14444005)(486006)(36756003)(14454004)(25786009)(316002)(54906003)(6916009)(2906002)(99286004)(86362001)(105586002)(106356001)(7416002)(81166006)(102836004)(81156014)(6246003)(2900100001)(3846002)(6116002)(66066001)(8676002)(7736002)(93886005)(186003)(82746002)(6436002)(53936002)(76176011)(33656002)(6512007)(11346002)(476003)(5660300001)(8936002)(6506007)(53546011)(305945005)(26005)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR05MB5846;H:BYAPR05MB4776.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: oIL1aQYjUAro23bYuOYBHzHetJ4uWTw5knFBupL0bQqKPo8JHBimcVaEVupbkZ4plkmFzrA8hRGvfLf+/i/pS2zQWRvfbjbRhkPWbO/m1re9Q1Yohu0SR/BjY69EOva0hTikvKQVAiZJURv4Ur51WIT5W9WWS45Wj9X7JeITWEsW5WJ6HjcXijdL3z5vRAzujTyE1cWJ82WbQ1BxiYPW1+VZkurTYmqENuH7SH5wYwgqpmHysmzoNmcdZaNyNfuHPmvAc++qlAMmCnZwS4rGvR8CFWLrD/C3NziJm7XEMLECkCc6GkKVdDmKiA9vyB1f+Fa3VkEoz2m62M7OUckWnjDtChZn2qaPRm7ej2EFSRo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb6806a9-3d3a-4d61-a10d-08d648331f3b X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2018 00:09:32.2318 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB5846 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUGV0ZXIgWmlqbHN0cmENClNlbnQ6IE5vdmVtYmVyIDExLCAyMDE4IGF0IDExOjUyOjIw IFBNIEdNVA0KPiBUbzogTmFkYXYgQW1pdCA8bmFtaXRAdm13YXJlLmN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