Received: by 10.213.65.68 with SMTP id h4csp2160938imn; Sun, 8 Apr 2018 21:18:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx4808SMCZfeSeTiRh4j7xuWboNF+eRisjGaqEv4RrMa1CvmpKkAgwSgC1TSDjtTAZNgUcyiY X-Received: by 10.101.97.208 with SMTP id j16mr24179007pgv.431.1523247481580; Sun, 08 Apr 2018 21:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523247481; cv=none; d=google.com; s=arc-20160816; b=MuAqi3BB3BYdbyy5MxBhKpikrMVhXR8zT1HD/4z9gevgCugwtbB3h0TOmbBgyyd4/s iVa1r+KMsHXzfzAf54DP543exprci3tSwL7CMybYRQF8C2UFWEByVy3sOCIyePWcq9q3 Ll1fj7ajXj2cHldI2Kkz6YaqXypq5mIjUlsrtn/3BAR6h1mJWLBlAhRXlzfpsVMOa0DX TdRDUP808TqOAEpGzaAqLbrbNdP6VWKh9tKLaVZKhYxrGQdX7jmb+JAPWCmqAyTqP6TP ocxKY5A970v1ObhB4ZA7+V8oLywEi/WkLZTImt1r8H6Gz/li+cjR2GtmRas7v257tZyC /hsA== 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=nmLZ6PICmnkQ7Ak96hMNM8tUc6ILXuATc3JDN89ycc0=; b=mzL+pUq/F0//EdB3S7esdTfzYNldvM9DOq5cmclTWSaKEnz0Nnu6CccUVk4PqDZeBw UJpeAsgFrK6XO5gJVzCGis7Tr8jyPLBtAszFUtSaaOYGTq3vk+HDtl12rVkw2m1OKdOf eQPHyzkhwEsNpSbiYp/5AJrgzqC+2T7M20q8vfGr5pHAR2bxCK/AmtXR/iddP3o2+jaG luC8cXzmOSihK3VFlMWSbeLQkgHS+x5nMoBZx2I4gYMJ0CHtOXuI9TAx+HIki0P4oUw+ 4PO4dHJxq0CSVa4aEm2oZdaKF45jwbqAvvLWKaFLMbYIdMVIn34wW3rl/0SYGjCsp7fE njMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=mG9l/XYh; 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 p1-v6si13349680plb.355.2018.04.08.21.17.24; Sun, 08 Apr 2018 21:18:01 -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=@microsoft.com header.s=selector1 header.b=mG9l/XYh; 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 S1754506AbeDIEMm (ORCPT + 99 others); Mon, 9 Apr 2018 00:12:42 -0400 Received: from mail-cys01nam02on0097.outbound.protection.outlook.com ([104.47.37.97]:28800 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752896AbeDIAQz (ORCPT ); Sun, 8 Apr 2018 20:16:55 -0400 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=nmLZ6PICmnkQ7Ak96hMNM8tUc6ILXuATc3JDN89ycc0=; b=mG9l/XYhWA+42T6Qk8semsvYL9WYtiQFxCKiTNV5khJVPu05kSZLdCg9u7IRbzH/OlJGQgik6yMtm7RFILxI7hSfgp+byySxLj4xYNldFMDd3Jl2LFOTwW4TT0btODNHdhQ5v79ecbJbkZCqNYZXlZoYnEsNCZXDMI1aIaXDIXI= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0968.namprd21.prod.outlook.com (52.132.133.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:16:51 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:16:51 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Paolo Bonzini , "kernel-hardening@lists.openwall.com" , Kees Cook , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 010/189] kvm: x86: fix KVM_XEN_HVM_CONFIG ioctl Thread-Topic: [PATCH AUTOSEL for 4.15 010/189] kvm: x86: fix KVM_XEN_HVM_CONFIG ioctl Thread-Index: AQHTz5gOnBzLsCCmoEC2C9zv4twziQ== Date: Mon, 9 Apr 2018 00:16:51 +0000 Message-ID: <20180409001637.162453-10-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> 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;DM5PR2101MB0968;7:faCsU/p/hQzS4ysCGnfy3bh8qDT4fh+FVRJ9fJnnKDNhvlO4NmhDxNnaffmthUAheziaoVLhiXE+/47ZBOCh9AshjsaVQzhD4hnQaYlKTvdqIrQrwsaHzbnME90kHBQHu6EHEaOZTMiqZl4992HXOv48CTjFtuYEWg1GQSyapxK+DxIY/cA3y4gXwvlNLEtge6T6UrJ2UQccrxOTZenymvJs41kHJ6uy69//vCz67zyTSRRxPPlrCmTtbeieChNh;20:YxsM4/EffLtiF76stdR7kzlhqBteUJrOczK7faaPKaDUdxY2/uSgojnRJkw2XN0XUrMGsipzZOA0UnMgF+w++n+ITKL1B5FCe3cbSARuEV2vGpxL2SZnqENibkp/rKj98FKehHqKx9pAm8w7NLdviss0Rlfn28WmZ9djuYgkBPk= x-ms-exchange-antispam-srfa-diagnostics: SOS; X-MS-Office365-Filtering-Correlation-Id: b6a33908-4ddd-40cf-8c30-08d59daf3190 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB0968; x-ms-traffictypediagnostic: DM5PR2101MB0968: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@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)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0968;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0968; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(376002)(366004)(346002)(39380400002)(396003)(189003)(199004)(6486002)(53936002)(107886003)(81156014)(36756003)(10290500003)(6436002)(81166006)(5660300001)(478600001)(8936002)(8676002)(6512007)(106356001)(105586002)(5250100002)(2900100001)(7736002)(305945005)(2501003)(10090500001)(66066001)(25786009)(476003)(3846002)(6116002)(186003)(2616005)(59450400001)(68736007)(6506007)(486006)(14454004)(86362001)(99286004)(26005)(102836004)(22452003)(76176011)(11346002)(2906002)(316002)(3660700001)(110136005)(97736004)(86612001)(3280700002)(1076002)(4326008)(446003)(54906003)(72206003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0968;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: LYVhuHQiBHUuUs8jZsNHT3+iCEqc/EmesPCH7uhXQNGEXZTtwco6Djbcw9VzZ17Xu2ZlVMAR6YeFCtoH+v3cWcOZl640Rui5Q5Ho+XPBMnt7H54kqugih6y0rU71/4rKs/24x0YWRBCP3rYfxZ+3bvUaKd8DFX1Q2VGKehyTkNp7nGBRG/+YzSJCmfIt8nUbpdqUvBfRpZNTdDZbK1Rh0V5P28PNuviMe+oAx5YWunGEb8Lz7LzzW2/24WtmiD1Iq8n7R62717qVvKVTwhytsKAOVtpX5p3klFDLi8xGC1EkFyakOByFqe1WiHK/5e9fzfnDmbVX+1emEmt4WKXmeMIYfAI52+AthCzH0wGE+fKgxP+jhhoqv1D0zfllMtAjCgboExItCngPO26H6FWwn+cR1FltxWTDADhn2d9WVok= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6a33908-4ddd-40cf-8c30-08d59daf3190 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:16:51.7937 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0968 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUGFvbG8gQm9uemluaSA8cGJvbnppbmlAcmVkaGF0LmNvbT4NCg0KWyBVcHN0cmVhbSBj b21taXQgNTE3NzYwNDNhZmE0MTU0MzVjN2U0NjM2MjA0ZmJlNGY3ZWRjNDUwMSBdDQoNClRoaXMg aW9jdGwgaXMgb2Jzb2xldGUgKGl0IHdhcyB1c2VkIGJ5IFhlbm5lciBhcyBmYXIgYXMgSSBrbm93 KSBidXQNCnN0aWxsIGxldCdzIG5vdCBicmVhayBpdCBncmF0dWl0b3VzbHkuLi4gIEl0cyBoYW5k bGVyIGlzIGNvcHlpbmcNCmRpcmVjdGx5IGludG8gc3RydWN0IGt2bS4gIEdvIHRocm91Z2ggYSBi b3VuY2UgYnVmZmVyIGluc3RlYWQsIHdpdGgNCnRoZSBhZGRlZCBiZW5lZml0IHRoYXQgd2UgY2Fu IGFjdHVhbGx5IGRvIHNvbWV0aGluZyB1c2VmdWwgd2l0aCB0aGUNCmZsYWdzIGFyZ3VtZW50LS0t dGhlIHByZXZpb3VzIGNvZGUgd2FzIGV4aXRpbmcgd2l0aCAtRUlOVkFMIGJ1dCBzdGlsbA0KZG9p bmcgdGhlIGNvcHkuDQoNClRoaXMgdGVjaG5pY2FsbHkgaXMgYSB1c2Vyc3BhY2UgQUJJIGJyZWFr YWdlLCBidXQgc2luY2Ugbm8gb25lIHNob3VsZCBiZQ0KdXNpbmcgdGhlIGlvY3RsLCBpdCdzIGEg Z29vZCBvY2Nhc2lvbiB0byBzZWUgaWYgc29tZW9uZSBhY3R1YWxseQ0KY29tcGxhaW5zLg0KDQpD Yzoga2VybmVsLWhhcmRlbmluZ0BsaXN0cy5vcGVud2FsbC5jb20NC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