Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3336477imu; Sun, 11 Nov 2018 12:39:36 -0800 (PST) X-Google-Smtp-Source: AJdET5flZrs3oyDerDjUVRms5bjdfIR4sln1LApTSvoKfLioCvnOJElxoetnb9j3ZBSnd/ym6UMc X-Received: by 2002:a17:902:343:: with SMTP id 61-v6mr16674055pld.327.1541968776297; Sun, 11 Nov 2018 12:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968776; cv=none; d=google.com; s=arc-20160816; b=CfLwAwn9Z0sa0BtK673x1M9yKUdHg3SvLkVkvUu7QsKMPJ5wtRP3ENcQ5QmaY22N19 PJADo3lB7dnDRfExs9QFbh2mWGgYKBydyuC6hOAebvFnuW84wgUz4C7ycyBB9NvEe2Vk r1uXToeJ6XWbriDrfqqQnW88Zc6K9WPLv9Nxsgzvqw1ZgfWyGPkCphaWK7yFOA95hI6l /gsp6rDxtxmEC7Cmy8yFEW8nmNVMw+WeVZc8qIl+jwNGX+CU6UkMPWUuk9KkAVL6IGCA wvqd1fe3wRv1Mvepy+2ZviA+2ApKN25sWCe+xKI1VebBvVmS1al21vXVFXDM6HqHXmvZ Y2hg== 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=WaB1LE71ABbiwgbXdrf2YL+QkMXUtQsk4N0XVwxtItQ=; b=w/rMRi8DYZIhdxgyDYIy9/92PQJyT7KYQj4FIKOgzpn249SrP6zJO9oJphJ+U6znHo kaOxi+GDmXvJtkP8xBU9SgBT6QQkBGZrpTCfRmJTSxQr9HWf7vcdzvJU+KBXNlcK38t4 VoS4966/oDSxjTE6GrkJzuLwp/mxOwqP2n+XewFy92ntcXP7XtHJ59MSMs0aCipeL+N9 fqkqR4ctKW4fh1nf/IoKKP5hHlffKvDz0whGsiLY1kMOcdmAnXmNoBd+GyhCS5RYfVHm vJV5FZhV40/rFcXaIjNcaRTrFxvrjRLBisbTSjCUrPuSbmg/B6D6CNWXpAYZDhp8GcV/ LB3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=o4f3QQZA; 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 u23-v6si16077501plk.47.2018.11.11.12.39.21; Sun, 11 Nov 2018 12:39:36 -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=o4f3QQZA; 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 S1730217AbeKLG2b (ORCPT + 99 others); Mon, 12 Nov 2018 01:28:31 -0500 Received: from mail-eopbgr680058.outbound.protection.outlook.com ([40.107.68.58]:18560 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730168AbeKLG2a (ORCPT ); Mon, 12 Nov 2018 01:28:30 -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=WaB1LE71ABbiwgbXdrf2YL+QkMXUtQsk4N0XVwxtItQ=; b=o4f3QQZAlo+/ORhcFkfloD8MUK3OUa34DU/n7jni6UU/2GPk3jE36nxDgdoZ1h7RC/6TOAZ9DyUdC2VkkBwciJVF5ScLq4Xl5OscMmj9xEF+yTwmyz4mWdONFRa0TpjN5FeQxpwSJJh7IUrJFpSNpTWKkc+YSwMhHkOg/o+Sl/I= 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:38:53 +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:38:53 +0000 From: Nadav Amit To: Peter Zijlstra CC: Ingo Molnar , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "H. Peter Anvin" , Thomas Gleixner , Borislav Petkov , Dave Hansen , Kees Cook , Dave Hansen Subject: Re: [PATCH v4 05/10] x86/alternative: initializing temporary mm for patching Thread-Topic: [PATCH v4 05/10] x86/alternative: initializing temporary mm for patching Thread-Index: AQHUeYjEpAFjgaUHf0yH80LOcug/yqVKpr6AgABjTIA= Date: Sun, 11 Nov 2018 20:38:53 +0000 Message-ID: <0A01B5B5-C771-45AC-81B3-92EE9611D8B2@vmware.com> References: <20181110231732.15060-1-namit@vmware.com> <20181110231732.15060-6-namit@vmware.com> <20181111144327.GG12766@worktop.psav.com> In-Reply-To: <20181111144327.GG12766@worktop.psav.com> 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:Z1gfxTIiplORukTDaySA6ZjfGVzs47HLsDz61Zuh8xGLTTIl4l2rMD/bYHd2+o9vQuA+sVjpdaqd/bd9MCOghYzkTZ4LG1Yow+KTiR+EXdlLbUupDWggzSE7IG+X/33us0CdN+rGdHb3PdoLeQ0ZabAKKKg78LqRo9w2+mdDvUk= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: de1e1079-18aa-454f-69db-08d64815b1b8 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)(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)(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: /bENlyY1fKb4yxTWPSDjeeUK/BWdUPXMCbD8+gCkrJmROMXW4J4fSOCfd6/gBaS+qVpHNJE8fFrSA40xzrPQxQvQ/fP2HEYXM22WrnlF4g64cicnax05x0k7VniE5sFvrY10mp84KfVIvj0/q7GsfxaWgdxUc3EHZG/5XqOy0gCeLYqPJn0nMqJj4l88y5jB2VCSVx2H1K7lp4hVCnJtGJZc0V3dfHagsaL/EMIPyYPp/D3R7mRm+UH5PGOD/w4F9wYJGfhD36oOFnsXemzKCuFX/hjA5F0tY/CNnr2WWpl/E/6ZhTruPGTknCedNSWh7sovEck0BfCQu1bXGBstpaEk2oFExAs5cAhX4lCWTws= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <3A8054B98C39434383A01151706090DD@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: de1e1079-18aa-454f-69db-08d64815b1b8 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2018 20:38:53.0951 (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 RnJvbTogUGV0ZXIgWmlqbHN0cmENClNlbnQ6IE5vdmVtYmVyIDExLCAyMDE4IGF0IDI6NDM6Mjcg UE0gR01UDQo+IFRvOiBOYWRhdiBBbWl0IDxuYW1pdEB2bXdhcmUuY29tPg0KPiBDYzog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