Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp125643imm; Wed, 29 Aug 2018 15:58:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYGSAj5KZ7yRSEjxau+BWQkzBoHN1iRIylFESitzoIwqAJZjrLuW2ljzrgmdu4lbPGUOX+8 X-Received: by 2002:a63:4306:: with SMTP id q6-v6mr5894861pga.181.1535583527973; Wed, 29 Aug 2018 15:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535583527; cv=none; d=google.com; s=arc-20160816; b=mCZnldooeqTOmvShoeSt0n+SPBQcIpP3WXl4499muRgBvV0Z8MAY4+DIVesvRIUsfe ax5BzmkVzpOF4/iX4eGWuruWA8dmH/lg+YgSqfAlNPgLY8zcxMb8r4zaYvumK8P9/wA3 EICRunruSn9pLSMY9PATjrxtUPa6Vb91GeiBUNM2Itb4PO10FHUpEQ+qx8Ut6snnE8sL YPg5Pf4qNa85ILZG6kxUSrYgYvAJqc6rgJVGFlQpNnL0IXqDS0CMg+QfjEpSOoUtvj+u o3OUl63ArV+luw1jD79wJMQYNnOPBVT3YU+4dI9HAy7+g546M9OiRQ/V9EoKietPz/zv zREg== 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:bcl :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=bafxYz3rxJ+PE4CWLbp5Wv+RInhw4TRiHSqsoXi4Q4A=; b=mYaGK3BQiu1DGZoJfuZ/8zgOOxk4YoXMi/5fugjkvaXkGny8XSHXpn/WoE/tmcrU14 Sg5oGCq5+er6tmC9MplgpTMaabVB3MMY+umdfGeX+RVGE6/mMpe7tGVbGW/SO5tg0Hza Rx27e+G0E5zI0tvDsLns5uaGygzBeAOU8wLuph1WDVu8JpULwwuxqT96Bnf5h5tXey0v boiIMjOu7jt52En1o/4BLNrdP5hcRZbNUUmCORvRr3u9JWEZuhdy2T+ajKCw+1iGNvKe ZUHvweFIH96Pvg9aZShlGfF6yDyzZx3IMWe1IVDl9Qs0Tp6OfJ1gB/T2wP0H/yjjSssK kfuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=p7vt0kXT; 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 b11-v6si4781923pgt.44.2018.08.29.15.58.33; Wed, 29 Aug 2018 15:58:47 -0700 (PDT) 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=p7vt0kXT; 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 S1727871AbeH3Czi (ORCPT + 99 others); Wed, 29 Aug 2018 22:55:38 -0400 Received: from mail-eopbgr730073.outbound.protection.outlook.com ([40.107.73.73]:24359 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727432AbeH3Czi (ORCPT ); Wed, 29 Aug 2018 22:55:38 -0400 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=bafxYz3rxJ+PE4CWLbp5Wv+RInhw4TRiHSqsoXi4Q4A=; b=p7vt0kXTtHXEKP/ObiNaM2O8t9agRysjXhx6ejXdoiGHtcsi8XnRJNqilZ6izF/ZhK572w3NxvQz7HqInz5hkV0NqmpHJcFyuxlddw65kvsgOjL+vEx8wwj4ZC/HmYlaZLX6b7/AWUdmhwRwHcNQl7LBjwqpo5IuMkSYvYPEoVE= Received: from BYAPR05MB4776.namprd05.prod.outlook.com (52.135.233.146) by BYAPR05MB4808.namprd05.prod.outlook.com (52.135.235.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.11; Wed, 29 Aug 2018 22:56:24 +0000 Received: from BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::911b:395c:ce8a:38c3]) by BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::911b:395c:ce8a:38c3%3]) with mapi id 15.20.1101.007; Wed, 29 Aug 2018 22:56:24 +0000 From: Nadav Amit To: Sean Christopherson CC: Masami Hiramatsu , Thomas Gleixner , LKML , Ingo Molnar , X86 ML , Arnd Bergmann , linux-arch , Andy Lutomirski , Kees Cook Subject: Re: [RFC PATCH 1/6] x86/alternative: assert text_mutex is taken Thread-Topic: [RFC PATCH 1/6] x86/alternative: assert text_mutex is taken Thread-Index: AQHUP3AveUOJQxVhiEqJKH9IYmSgsaTWblgAgACJiICAAChdgIAACkwAgAAI04CAAARKAIAAIHwA Date: Wed, 29 Aug 2018 22:56:23 +0000 Message-ID: References: <20180829081147.184610-1-namit@vmware.com> <20180829081147.184610-2-namit@vmware.com> <20180829175936.fb27b3bf13da819a9a971f07@kernel.org> <1F547CEE-B5D9-42A0-8093-2C5555BACE26@vmware.com> <2694AE6F-2212-46C6-A570-6BAF265364FB@vmware.com> <20180829201309.GA7142@linux.intel.com> <58345C1F-8FF3-4F49-AF2F-B4789DF50CC7@vmware.com> <20180829210006.GA7166@linux.intel.com> In-Reply-To: <20180829210006.GA7166@linux.intel.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: [66.170.99.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BYAPR05MB4808;20:gK6g0XfzzR0DYe5Y39TKYUNEU8/DA/XcKEnoGWQfIqq5SNAAEIeWprP3RRnhWjSIDR2qnOxhPhO2Lxwhq4pM323c5qeNds1Q/9X3wx58o77QbVud8EHMvfPV4UiFKa6n8Ns6buAvglsqN3Sj2T4oZ4Va9CUcD0kePcIsnAWRhlY= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: ee04bc11-d9f9-4b72-e869-08d60e02a50f x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BYAPR05MB4808; x-ms-traffictypediagnostic: BYAPR05MB4808: bcl: 0 x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(61668805478150)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699016);SRVR:BYAPR05MB4808;BCL:0;PCL:0;RULEID:;SRVR:BYAPR05MB4808; x-forefront-prvs: 077929D941 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(396003)(346002)(366004)(39860400002)(189003)(199004)(2900100001)(11346002)(446003)(105586002)(6116002)(486006)(476003)(68736007)(2616005)(3846002)(93886005)(6436002)(76176011)(8676002)(14444005)(36756003)(256004)(6486002)(102836004)(26005)(25786009)(82746002)(106356001)(6506007)(6512007)(186003)(4326008)(33656002)(81156014)(81166006)(86362001)(99286004)(14454004)(83716003)(217873002)(53936002)(97736004)(6246003)(7416002)(8936002)(66066001)(316002)(5250100002)(54906003)(2906002)(7736002)(229853002)(478600001)(305945005)(5660300001)(6916009);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR05MB4808;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: 1I20qYzRyRTUxTPGAjONqiHW+s7FK4gG2LBrcZTe94emzKylRGJ8G2ri8bJ/iPGhbvjLsiUnoE6DnO9iBpm3xd4RkWbcpkCzuHqua9X/SYKIRgIUqwxQ7NSManbWJ0R+Uu2YNG//PHuo63VTHv6ehaQq0rpV3dAYWj8ljyUUGWNk5aZaM1r3a0uPj0J53vb5FojGEEs4ETETc9fzilf23clsy9Ah++gCaRCGUFFzpYnEPBMEJlDDJNqNlCZnhiYMINI7RIyfx/wxHossZYbRqAO/DSgsBHPnEwsIPxhaPe1m7EM/vLTA0H8b4AMcW/VIn0flX8UOg4wAL+bP1Dh/QMcPtkca4mMezD0KMVIxyyI= 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: ee04bc11-d9f9-4b72-e869-08d60e02a50f X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2018 22:56:24.0729 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4808 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org YX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