Received: by 10.223.185.82 with SMTP id b18csp223103wrg; Thu, 8 Mar 2018 23:25:33 -0800 (PST) X-Google-Smtp-Source: AG47ELtGhnCCejqdKSTRkPP4QyTp8VxaIQiz1ZWHGAxru0FWLwNf/jyU8F2mNPX57qVxvWkiWr2q X-Received: by 10.101.93.135 with SMTP id f7mr22683347pgt.82.1520580333798; Thu, 08 Mar 2018 23:25:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520580333; cv=none; d=google.com; s=arc-20160816; b=BA7hkvCodLdmoIf8xa1fsqB9Wbf23NARCLjeTgSOwvs4wq7v8PXwk7Xr0YECDpkTko SrXBIgrWSQyami4J+2kYmZP/VrPhnA6UwU4E8DYe5b/7/gkCCtewVAwsuFt8GQZNKYOU O92QBzS8lyvSvFNEWvkNQmKSzsLWBFJDk+RBnHI2MEusLdUus/BPBraMeICxQ1A1fV4m ag4vT8yRMacxveqPvu1kqinmfqg4YNGi7QdZ2wN9e3ZK/0wEXEQojS4T1/9krfIUAaXb 2bjl87N1ebOGvBBmZAOQ5C6sn6nAWQXqSDyr0yqoxe7r9NjHcZGDEzSZRek4bHPug2Ks e3Ww== 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=mZ5qbuk0TkN0ISrfyXroAQWJO6jwv7ZP0x60TlvqRvA=; b=iZ+Jhr4b0l5pv7wwuTZ1fP4K9h2PpMlUxYQvhpdo7U6kvl6tsVC9SI5rZNliHF6elo GZ6o2zG8hM6fxwtTXSSQFySZOSoN4czOYc0cb3ivJy0BZmVQgeC2xLIUYxlEjf1XR2eU /GeoZoPbeZX67DjQUCn8O/qQM2q5S0fejsrnnMuw4VyHxwtmUE38pWPpMfI1ND4yIo35 0QKIrRS5N++AO5iUPcpY4FcegCWq1N1LQUNso5SZG+Jovy88SH6dP9titjBhkho9PKSW hxM/Ob+axOuDTdCG8YXYvZyEk9HxVQE/78bihUQe4I3ebv5k/6v3Z4muYGLX8wN2r4i4 o4dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=mlEFKnaf; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si415889pfl.205.2018.03.08.23.25.18; Thu, 08 Mar 2018 23:25:33 -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=@microsoft.com header.s=selector1 header.b=mlEFKnaf; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751271AbeCIHYX (ORCPT + 99 others); Fri, 9 Mar 2018 02:24:23 -0500 Received: from mail-pu1apc01on0093.outbound.protection.outlook.com ([104.47.126.93]:2512 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750913AbeCIHYU (ORCPT ); Fri, 9 Mar 2018 02:24:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mZ5qbuk0TkN0ISrfyXroAQWJO6jwv7ZP0x60TlvqRvA=; b=mlEFKnafxkUO+7rsAGp2nnUp9+lJ7X+BmJkd8LymoNORfue10nfUpP/XhXPJXzk2bwsxZ/LNhCMbC7g0rWH5JswFsUG9imIYCvfQXn53PwDSVW00HpwZiEw0SgM8YnHHUMa1O9WtSpIGuDorg/eP8bNxUk4PdL5FLcUQ4x9wPC4= Received: from HK2P15301MB0065.APCP153.PROD.OUTLOOK.COM (10.170.152.22) by HK2P15301MB0067.APCP153.PROD.OUTLOOK.COM (10.170.152.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.10; Fri, 9 Mar 2018 07:24:13 +0000 Received: from HK2P15301MB0065.APCP153.PROD.OUTLOOK.COM ([fe80::6451:5db0:68b6:b9b0]) by HK2P15301MB0065.APCP153.PROD.OUTLOOK.COM ([fe80::6451:5db0:68b6:b9b0%7]) with mapi id 15.20.0588.009; Fri, 9 Mar 2018 07:24:13 +0000 From: Tianyu Lan To: "rkrcmar@redhat.com" , Tianyu Lan CC: "pbonzini@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] KVM/X86: Check input sreg values before loading vcpu Thread-Topic: [PATCH] KVM/X86: Check input sreg values before loading vcpu Thread-Index: AQHTr5hN8NOqe9GuWkWmcSxT1Wc7aaPGkjEAgAD91QA= Date: Fri, 9 Mar 2018 07:24:13 +0000 Message-ID: <72e27449-c8fd-c3e3-75c1-07853c49d974@microsoft.com> References: <1519714664-2649-1-git-send-email-Tianyu.Lan@microsoft.com> <20180308161536.GH12290@flask> In-Reply-To: <20180308161536.GH12290@flask> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HK2P15301MB0067;7:JcPy7dC9fsBWQFxAr1eApytrLZBXm/77bB6QvAkkc+NjrDxDPNQ7REBf4QIx9ET1gW1joyOUwtEFfAIpMA0yu2RElg1K8g6aefbeiEEsfb5RPR1Xkg2325gdR1ZvYzl2YcEUGYh1eJjbPJ9E230Ds6vDR6bVZ0pgiKJUrdR2quyeOUm8J3NhydVagaFzdgOEVnWcw4AuTrYoKT1sE1Z9acjYz0eP7qr00iYeONjVgimneCdQGx1cU1jGfkfidkof;20:yQ9q8aaoLdh/2qH/FXh7CA+hqaCxK88IJP3msP2dmygbkFeKoJyOoruFSlmI7D2VFMVi0vwaWKjBJN8Uy7Z0ZYLaW9+IDlJXVDak1avV9+Lwe4Xlz9HG2TcHn43teCDv4wANMyxOEqZwcM3Rf+8cXSeL+8Yv1Zsmfs7SRjBqkYY= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e20f74b4-cb3d-48b8-75af-08d5858ec28d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:HK2P15301MB0067; x-ms-traffictypediagnostic: HK2P15301MB0067: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tianyu.Lan@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231220)(944501244)(52105095)(93006095)(93001095)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:HK2P15301MB0067;BCL:0;PCL:0;RULEID:;SRVR:HK2P15301MB0067; x-forefront-prvs: 0606BBEB39 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(39380400002)(396003)(366004)(39860400002)(346002)(51444003)(377424004)(189003)(199004)(10290500003)(10090500001)(4326008)(6246003)(72206003)(86362001)(25786009)(8676002)(53936002)(2900100001)(5250100002)(66066001)(1511001)(8936002)(81166006)(14454004)(6512007)(6436002)(106356001)(6486002)(2501003)(81156014)(305945005)(7736002)(5660300001)(99286004)(186003)(229853002)(36756003)(3660700001)(2906002)(86612001)(26005)(3280700002)(31696002)(6116002)(31686004)(102836004)(2950100002)(53546011)(6506007)(22452003)(478600001)(105586002)(59450400001)(54906003)(110136005)(3846002)(68736007)(76176011)(316002)(97736004)(22906009);DIR:OUT;SFP:1102;SCL:1;SRVR:HK2P15301MB0067;H:HK2P15301MB0065.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: rH6JweNQESsm3iRNBdXirV/eRlJ8z3I63TbsG+f/BCBMCEp573/9ixI8HDtxhm72xieBGKdD8c7CcyCnZi4nBA7TS7Y3pJtrfARvywQRvbZ7VyHIk8Qazgrp1OAQwumUKO3YJS9UeiEANwlqIUS3NJB30wKW1uJR+55YCVI6Bjq7dbHFxTWPFUlV9nBS5UZXAeWZxwXz3YshqE+zdPJzBoo2JAXDbL1f6wDCEy8VczwKAn+e9NWGoXxIaAO7gZmlP8zHAelOmdVdn6HLP4CRejkDdpDXcBf0XALhCkjilxd3zLinVXlp04Ipeohj+5NQEaqepWWk/HXnUN3s3nGyVA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <15C17D9F4D676149AD6C554F1486B608@APCP153.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: e20f74b4-cb3d-48b8-75af-08d5858ec28d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Mar 2018 07:24:13.4162 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2P15301MB0067 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUmFkaW06DQoJVGhhbmtzIGZvciB5b3VyIHJldmlldy4NCg0KT24gMy85LzIwMTggMTI6MTUg QU0sIHJrcmNtYXJAcmVkaGF0LmNvbSB3cm90ZToNCj4gMjAxOC0wMi0yNyAwNjo1NyswMDAwLCBU aWFueXUgTGFuOg0KPj4gRnJvbTogTGFuIFRpYW55dSA8VGlhbnl1LkxhbkBtaWNyb3NvZnQuY29t Pg0KPj4NCj4+IFRoaXMgcGF0Y2ggaXMgdG8gY2hlY2sgc3JlZyB2YWx1ZSBmaXJzdCBhbmQgdGhl biBsb2FkIHZjcHUgaW4gb3JkZXINCj4+IHRvIGF2b2lkIHJlZHVuZGFudCBsb2FkaW5nL3B1dHRp bmcgdmNwdS4NCj4+DQo+PiBTaWduZWQtb2ZmLWJ5OiBMYW4gVGlhbnl1IDxUaWFueXUuTGFuQG1p Y3Jvc29mdC5jb20+DQo+PiAtLS0NCj4gDQo+IFBhdGNoICJLVk06IHg4NjogS1ZNX0NBUF9TWU5D X1JFR1MiIG1hZGUgc2lnbmlmaWNhbnQgY2hhbmdlcyB0byB0aGUNCj4gc3JlZ3Mgc2V0dGVyLCBz byB0aGUgcGF0Y2ggY2Fubm90IGJlIGFwcGxpZWQgaW4gY3VycmVudCBmb3JtLg0KPiANCj4gSSB0 aGluayB0aGF0IG1vdmluZyB0aGUgWDg2X0NSNF9PU1hTQVZFIGNoZWNrIHRvIGd1ZXN0X2NwdWlk X2hhcyBzdGlsbA0KPiBtYWtlcyBzZW5zZSwgYnV0IGF2b2lkaW5nIHRoZSB2Y3B1X2xvYWQvcHV0 IHdvdWxkIHByb2R1Y2Ugd29yc2UgY29kZQ0KPiBlbHNld2hlcmUgYW5kIGF2b2lkaW5nIHRoZSBs b2FkL3B1dCBpcyBub3QgY3JpdGljYWwgYXMgYW55IGVycm9yIGlzDQo+IHByb2JhYmx5IGdvaW5n IHRvIGJlIHRoZSBlbmQgZm9yIHRoaXMgVk0uDQo+IA0KDQpPSy4gSSB3aWxsIHVwZGF0ZSBwYXRj aC4=