Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp54270imm; Wed, 29 Aug 2018 13:46:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZNsXYudTnTtbhQSs5xyn7IrQdSjT4sWmUWgZBkTqSQ4hNr+UtGCh5iV40jmKzfsqYtYezJ X-Received: by 2002:a62:c90a:: with SMTP id k10-v6mr7385494pfg.180.1535575592820; Wed, 29 Aug 2018 13:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535575592; cv=none; d=google.com; s=arc-20160816; b=yPM+s0hxjl1TzBdQUavunEwB3f07zz6UWkBK5zXcsBS5zn3A/104Edhe3m2mnurdn3 vyFTLoD5hn89usvliXAHn0h6ccSWxt9fL6fpBFQszv6kl282jbgolOPaSO8FxeU99l1+ 8uA+LU9ucl0KTfT9WMDnIUHbvgG1PmnUd5Uz1d5EQ0/ogqJEH+BVo0tNC/EacbmYgrea FPStyWKFLUTDgPMdo2tJKgRCk6mN8IRBv208B/MFHnlcCPcTb1+gkVMBblv4fD7xWAJd rr0U+3UqAFMhZeVDNNtYYpNcxEoXWNxvTf32yNsxraXUxkLlf8J9SA4W4trjFge9xeXp +qmw== 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=kbj89//1pSDHDFDmXq2ZjgggZvA3aPCY3Pp00IrT7S4=; b=RqH8+SncIKThKO9nZcT5nQdGA2XSfJyGZxMA3xdOu/GX04Bfbw8OFA8AEE9c53VyMF GLf9nqmgB0OopseCGdKizgNvaVl8hlFJu+3XQtodg9e/U/Mu95Olkkc6QYtXirc9ffeR 6AFANyiVGFIze9pZCIou68I7DD2yoqe0hyFHIzN4ZGPf9t921aOpDy79Y2sZWDoIPu2A DJPxTdRUNEFjxH4N0Va2rrWZiBas+NdU+X97ELEkHYsDT2u0Dx0HYkz7bzhcEWyP5SDL Yx5SoPeNlmfKB/hZocnzgNvHC+6TtLU2FqvEb8V2eX+NzFRCGQC/RIqZ4WU+KORUp3NE QPTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=PntclEX7; 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 o126-v6si4649144pfb.20.2018.08.29.13.46.15; Wed, 29 Aug 2018 13:46:32 -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=PntclEX7; 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 S1728592AbeH3Ank (ORCPT + 99 others); Wed, 29 Aug 2018 20:43:40 -0400 Received: from mail-eopbgr730070.outbound.protection.outlook.com ([40.107.73.70]:29472 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727743AbeH3Anj (ORCPT ); Wed, 29 Aug 2018 20:43:39 -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=kbj89//1pSDHDFDmXq2ZjgggZvA3aPCY3Pp00IrT7S4=; b=PntclEX7f2qYSNGx87/5zbP51IMbpWen9VqRJkU/Idl/QjhlKQvFCzm0yHrS6OK1lluU+HsLOOy0m0lmM3B+1uPunoY2rSTJ+fSzhrC5c2yTcfHwylRnGjuhgbjXu16A96HDkkZCQpjPfIIetO/PDrHoQ8GizZKe5Zl905cQCZI= Received: from BYAPR05MB4776.namprd05.prod.outlook.com (52.135.233.146) by BYAPR05MB4520.namprd05.prod.outlook.com (52.135.203.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.12; Wed, 29 Aug 2018 20:44:48 +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 20:44:48 +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: AQHUP3AveUOJQxVhiEqJKH9IYmSgsaTWblgAgACJiICAAChdgIAACkwAgAAI04A= Date: Wed, 29 Aug 2018 20:44:47 +0000 Message-ID: <58345C1F-8FF3-4F49-AF2F-B4789DF50CC7@vmware.com> 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> In-Reply-To: <20180829201309.GA7142@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;BYAPR05MB4520;20:X0P4eyzwFxxlETPxzDzVwILm4fzliE9aWwnpinulAuB/6+gXUMqni5bZZCahLsvN0juQDnhD7Fc9AgSfQ0OMZGaB53EBI8kxXdQagVZ3YCdGNX8Jsfa7EaHd2iU99bOewHsxgbWjQLK916InWeQafHFH7Rwfp/nrrPBkP1gOBtw= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 0bb45ee9-31ad-42fe-cdcb-08d60df04297 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BYAPR05MB4520; x-ms-traffictypediagnostic: BYAPR05MB4520: 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)(5005006)(8121501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699016);SRVR:BYAPR05MB4520;BCL:0;PCL:0;RULEID:;SRVR:BYAPR05MB4520; x-forefront-prvs: 077929D941 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(136003)(396003)(39860400002)(346002)(376002)(199004)(189003)(99286004)(11346002)(446003)(54906003)(81166006)(81156014)(66066001)(68736007)(3846002)(6116002)(36756003)(6916009)(476003)(486006)(6512007)(86362001)(93886005)(316002)(25786009)(6506007)(2616005)(76176011)(4326008)(102836004)(6246003)(26005)(53936002)(186003)(5660300001)(14444005)(305945005)(7416002)(33656002)(7736002)(217873002)(8676002)(229853002)(97736004)(6436002)(256004)(5250100002)(6486002)(2900100001)(106356001)(105586002)(478600001)(8936002)(2906002)(82746002)(14454004)(83716003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR05MB4520;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: 8GEn7msVLanU7f2k7+75tN7WBV80NhuF6ArpVAs6Tb2TCLqJ+pbnFmb8zZZLf7r580Cuf9WQJcxKWe6vCjMuP5Nu8zUCdRblAc60X5ATyr4LHejrR7rvqsWYfoNezAAgbhHt/tJ5e3kpobv5p8nxQpnW5d3nprv7zvPElt2BC1iiSu0QGkqbuPZUTHBws4RNNk0EY+LoMUgJJho4Afc4zWHS2SlS99Qeqh3KRWQ30c7eX3qR2dmLSkwqj/hkjoSPlmdaC3Ycz+3v83KvwpKhvblNplbc2jts9Y6bbGqPWEdsrtP7esRcTTnla6E/aFAB7NoxGcIYaNH86vIiMPrjSW495Ic9iE33y21KZF3tA04= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <85D59516B8C2B74CB6642023BF9AFF72@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bb45ee9-31ad-42fe-cdcb-08d60df04297 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2018 20:44:47.7716 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4520 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org YXQgMToxMyBQTSwg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