Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4587564imm; Fri, 18 May 2018 07:32:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoKUc7jpsBvOG5FVk4lgdY991AyWfU+gB727d7bvGloZ18E06m4UMw+8VcM3mDIvbjXdjXt X-Received: by 2002:a17:902:5382:: with SMTP id c2-v6mr9783551pli.335.1526653953448; Fri, 18 May 2018 07:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526653953; cv=none; d=google.com; s=arc-20160816; b=BLdBmTq2HGKyvOJVqNXfmQPor6uAqe0z0l3G1slDBf8IBElabivEpw6o36hhHcWg4s w2Vv/FaWiJyTCikxX0OeSctnDSNOQJQlGctNbZWKi42X8juCL8nBtIqu33oqJQOlQEgk outQh3DV/bkbL0DI4ggghx/i9TL1IjXZ5CswRFfqU2Du2bCZnb7X3J/VQP/pH7qeNf9u Hfl+c1Kp7p6V549MGiUl2ihSTJ7Pn9DDyQ00vfj8U8mUtTwaEyYaZrItJG7ONMnNvois jejch6bjDWZ7HU3XVyDPBK5hiUTPVaMPTMGohSEjirNjp20Ihhkef+Cld7I3QPgQYsj9 p47Q== 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 :arc-authentication-results; bh=nqCE0J5yLAq/L60c/gffVYZQQjVeRXT2cjhePMtgGpY=; b=aTtj8OJgm7vaYFu7A746Xov11h6x0qXLohONW1psZCMFVEOBYuQ5NcchGXb5G4j+Wu U+HdNhOyMUH9gHJi07eYHVxXSDcAsj9H9I+TGWF2+0qOBepgLT2/Px1uv24aoF6s17qv JkNx1NHst/4JijYieB35OzQUNufzycF17y1dUcF7dCPQEwAKHyzl0bP1xwoe2DF63Pvn Z6JOD17APSziVXry9szhPZAScqW+mr3U1jpf+CnSVMeX7kNqhRT80328+sJqfewxF56P aPwG9wn0PmLstA71oB1oQ+k99c/bbAuwXDapFM0ry6gdlKZj/AFZWwx+J+Yibeua5LCO R1wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@onevmw.onmicrosoft.com header.s=selector1-vmware-com header.b=JaVVdDil; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o76-v6si7624678pfj.118.2018.05.18.07.31.32; Fri, 18 May 2018 07:32:33 -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=@onevmw.onmicrosoft.com header.s=selector1-vmware-com header.b=JaVVdDil; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751583AbeEROae (ORCPT + 99 others); Fri, 18 May 2018 10:30:34 -0400 Received: from mail-cys01nam02on0058.outbound.protection.outlook.com ([104.47.37.58]:26719 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750882AbeEROab (ORCPT ); Fri, 18 May 2018 10:30:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nqCE0J5yLAq/L60c/gffVYZQQjVeRXT2cjhePMtgGpY=; b=JaVVdDil420RkYxXoCHn/T+sLYpoK3X5gALq0q7b/Q22EF9w4XOtUC6ocT9Xzl5TPshgWqG/widIRL4FBoOS6iMczU7zVyn3W6B01lq1uostFZcM3SVAi9Hj0tzpv6JKE5ZgavdrX5LMZCoufWnlqxpn79+Yg1Gn8d+LhFTaEwY= Received: from SN2PR05MB2654.namprd05.prod.outlook.com (10.166.212.137) by SN2PR05MB2526.namprd05.prod.outlook.com (10.166.213.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.797.5; Fri, 18 May 2018 14:30:28 +0000 Received: from SN2PR05MB2654.namprd05.prod.outlook.com ([fe80::dcb:7409:11fc:2327]) by SN2PR05MB2654.namprd05.prod.outlook.com ([fe80::dcb:7409:11fc:2327%3]) with mapi id 15.20.0797.007; Fri, 18 May 2018 14:30:28 +0000 From: Nadav Amit To: Ingo Molnar CC: Peter Zijlstra , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Andy Lutomirski , Borislav Petkov , Peter Zijlstra , Denys Vlasenko Subject: Re: [PATCH 2/6] x86: bug: prevent gcc distortions Thread-Topic: [PATCH 2/6] x86: bug: prevent gcc distortions Thread-Index: AQHT7jbL50o+w3m6PkeKHm2HX6GyP6Q1H7KAgAAEMwCAAGkzAA== Date: Fri, 18 May 2018 14:30:28 +0000 Message-ID: <5C4B73C8-7BFC-4473-9ABD-6E23DD79A09A@vmware.com> References: <20180517161402.78089-1-namit@vmware.com> <20180517161402.78089-3-namit@vmware.com> <20180518075853.GD12217@hirez.programming.kicks-ass.net> <20180518081354.GA11379@gmail.com> In-Reply-To: <20180518081354.GA11379@gmail.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.2] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN2PR05MB2526;7:ihLU4vygxYsydX642mV9Su2Qsbkf3atG4tDSlZWBPVpXt6xNS5u00h+5qyPDmT20Gb04gjxcDp3DqnnfPXZ/N6qvtkWnQRb9bH71LwUBG+CIMawMgOYbHkBZBevHB+K2qnAhDNnIqmP9MzR9pJQQThniLToN7QQdJntdSKYdz8NPmOPbZEXzTag7oeS9M7AO78eH+rkDIGpOk7YmyXnzkf6nHC1acEcm/FUtbLI1M1JcH3q/2N8zyb+1DG/kl2a9;20:Z/1HUtcggxX3Q84VuTyutOPlnP2BubPoUCuwMd3BfeHLWrmdbkGg8jPu9P2YS4wpAz33uO0sPcuux3MozklIyBEigcmWd5RtJz+rtQzs8cshhnH9Xz5YkduFk4O6zCnQku/QvmRBbOHWmyrm7pSx9ik0exJYNPqXfXkMbXfXI8k= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:SN2PR05MB2526; x-ms-traffictypediagnostic: SN2PR05MB2526: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(35073007944872); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:SN2PR05MB2526;BCL:0;PCL:0;RULEID:;SRVR:SN2PR05MB2526; x-forefront-prvs: 0676F530A9 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(396003)(39860400002)(39380400002)(376002)(189003)(199004)(97736004)(83716003)(14454004)(5250100002)(316002)(54906003)(82746002)(93886005)(6486002)(486006)(25786009)(6436002)(36756003)(2616005)(476003)(229853002)(86362001)(11346002)(446003)(26005)(186003)(478600001)(68736007)(106356001)(76176011)(6506007)(4326008)(5660300001)(7416002)(81156014)(8676002)(81166006)(102836004)(3846002)(6116002)(3660700001)(6916009)(105586002)(3280700002)(33656002)(99286004)(305945005)(66066001)(8936002)(2906002)(6246003)(7736002)(6512007)(2900100001)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR05MB2526;H:SN2PR05MB2654.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: JORIxAaDnekBC+wUO6ApaYmBtaG01/Y9LSuQwcQ/CyQdUptqfFQx1OuaOWerF44ey6XaucFZRr3QuAXyAK/97sRMHjtZvRBa9VuixiLCVGM/vgO5A5ZA47QpNhBGK9ESMe5K9hc1jn359ikPcmwRGUF/1kg1hLk6ay7NwTqqdGu3TOWunZCbzHN+bPVB+btj spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <8DD1DEC0553BF54ABC8CC19B7C2AFA9E@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a5cfca2f-b36b-4ad6-5bef-08d5bccbe71f X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5cfca2f-b36b-4ad6-5bef-08d5bccbe71f X-MS-Exchange-CrossTenant-originalarrivaltime: 18 May 2018 14:30:28.3205 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR05MB2526 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SW5nbyBNb2xuYXIgPG1pbmdvQGtlcm5lbC5vcmc+IHdyb3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