Received: by 10.213.65.68 with SMTP id h4csp2117363imn; Sun, 8 Apr 2018 20:08:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/SRh/vyqGpyWm0IZbRM7+OqjgN9kO0sJviKffIIuA/oBmKmnwk7R3tsmG/UFrBi63vIZhB X-Received: by 2002:a17:902:9349:: with SMTP id g9-v6mr36339156plp.243.1523243303241; Sun, 08 Apr 2018 20:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243303; cv=none; d=google.com; s=arc-20160816; b=vyYDBLvs7SC8aINIfcExKxFW1gSN9oXHlkrSL56tqmbDxgjK8ttEoMyQWz5dyZJmrl SvWHCYcfpiW+v61i63hFO8D422thv+NVZDZ1X0NOu6FAtIHNUySvOru3CD3ywdCSXAEN M8bHGxuYMqczjmnmtlynvcAU1ovwHHYI3bv9s3LZmLZM7Skl0FRTWcaZ4MrOEx7mHI9c 8vERS2xJ3Pm/T9IPAd6J0uXp/oCijldcvB3yVCIlomgkrp1YApf5rYycWFHGPHazdxd0 OH4GdlGnGqergC6QTkoh3knQn1r750I8Qrh+YVo25OndS7AT22VaajgUCj2ib7zAgRtJ ti0Q== 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=m19RtP4K9mzNhiGu7fmdBRGsAMIhCTbOl6/n+rhR3aM=; b=dEkHGYTlQMpFk5ORK1Jkk62XFU+tp5E+wGsvaBI6FE3lp868q/+enIsO0C+zILKeUS 4vetPNlWwTAE+B+FynlUViM0thl0sW2fotzAc2zN/q6FpPAjMWfAquhFt1WBXB2StT4M 5I97t8vPimbxkjxLLpHok0gzNqienI9K747uP/NB0KYq53gw0TpdCjsPmmWln3o5PSS4 KdYLOMTiAIfFD4kBn7O6darSTy2TSOhR4o9TJ83JE3NFqOawVNNI9B7JbkZwS2w9Lluy dYbolu1GjFuidoOvf+a+nIUZht6iICqLP6Z0NbFChWyhkJRNkVbP6hTjH9qTC6D8eoQm UErA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=WeBHn7gS; 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 j91-v6si15654132pld.14.2018.04.08.20.07.46; Sun, 08 Apr 2018 20:08:23 -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=WeBHn7gS; 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 S1757318AbeDIB6B (ORCPT + 99 others); Sun, 8 Apr 2018 21:58:01 -0400 Received: from mail-by2nam01on0124.outbound.protection.outlook.com ([104.47.34.124]:8059 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755618AbeDIAcu (ORCPT ); Sun, 8 Apr 2018 20:32:50 -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=m19RtP4K9mzNhiGu7fmdBRGsAMIhCTbOl6/n+rhR3aM=; b=WeBHn7gSnDOdiBn/5BQ+Mjgby2rwRe9hhVnerQFAT5G/o5p0Hk60TOU0PgCk9hKofCND9hwGeGomkI7Tuk7yRQh03+xIZHkaDm8NvBIEaeaFr0nFAWfbISqH3gF3/jmLbAu+G0IfjrTZl3UOujMabFhYfDpnaj+Qp9aiJiJhhLM= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0998.namprd21.prod.outlook.com (52.132.133.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.0; Mon, 9 Apr 2018 00:32:48 +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:32:48 +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.9 215/293] kvm: x86: fix KVM_XEN_HVM_CONFIG ioctl Thread-Topic: [PATCH AUTOSEL for 4.9 215/293] kvm: x86: fix KVM_XEN_HVM_CONFIG ioctl Thread-Index: AQHTz5lL7lbkSmQk5062M9BXOwIO/w== Date: Mon, 9 Apr 2018 00:25:42 +0000 Message-ID: <20180409002239.163177-215-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0998;7:2dWjdTArCSHDdyY4zVQ0v4WEI1dlZ3TNqPyMRSSCY1dw/Ta0hB710soNLG6ZS7QlQk6x9vdcMaFlNYK2eVDSjlaViOmF+a8Gk1j+eYVw2fdzdrioiIcC1ESJwVLpZc2LQQGneLmFz2DOnl5WfpT1vAJtECQlfTKch7avE6XChjun48X+md+eeLjlj/kTZnbSbGqWPrt9zrEe44xzqRu3DN7EyEyGzS1iXDVw7e+HcPpy7BXRVhHX5m7mhP7fzOMP;20:UR8uIZ1qjg24mNnqcMyEe7w5VuS+pqUOmo2L4yF9SyDJBYpqSgV7mi81x5t2NxWWWyhuZKiXUA/xFX/lsyoRd5kZkW/wXC6pq4cH/oXXzjZeB4VhV+A7CM8j4Z7LRV0LikU2IikBfom8aGeZ5rFIHwTmM5I7Y1gFJslHZxZGqr8= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: e97b7518-358b-4c92-e299-08d59db16bb2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0998; x-ms-traffictypediagnostic: DM5PR2101MB0998: 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)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB0998;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0998; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39380400002)(376002)(396003)(366004)(39860400002)(189003)(199004)(25786009)(59450400001)(105586002)(14454004)(76176011)(68736007)(2906002)(316002)(97736004)(8676002)(86612001)(3660700001)(3280700002)(102836004)(6116002)(4326008)(8936002)(36756003)(22452003)(81166006)(81156014)(54906003)(6506007)(10090500001)(2501003)(6512007)(186003)(6666003)(3846002)(486006)(5660300001)(26005)(7736002)(5250100002)(305945005)(99286004)(2900100001)(110136005)(1076002)(6436002)(53936002)(106356001)(107886003)(72206003)(86362001)(476003)(446003)(66066001)(11346002)(478600001)(10290500003)(2616005)(6486002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0998;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: B/x9Va+goUNIjvAiL8gmgtfywVx1HkDcqzuWK30aPtt3Jp7WC7SvSqq/TR7oSxV2cKzwbt2tCFLaGVMS6iXEdlNF85Wc5ev7ILWYDVlJePX5xCVIecVPG6yW3LFzGOTG93kD/W7+5Al9cHNx4qK60pKbwS60kLvwTxK+M5r6F0Nm4fpzcH6a+HcmexpcZfaBHPAb1prBr74KmOh+Z+m40W/iOnqQ5trlGA8zGphxliBVJ+z33nk4SHsV3KgOZzlR4vVb1UgOSVlB1l77f2ckDFO+Z1AthotgM+BQYc72jHPkVq/3MiU9yIzW2Zk48QkP4YpyxkCga6ifJYytX3jTmjajU/yK96pgk/OkAdlDls6QW0s4xMzFXEf6hPQcpEkHdR8X10lYc5+pK29LRyWaxA0xFKJT9N6i3BVNKgJCcZI= 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: e97b7518-358b-4c92-e299-08d59db16bb2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:25:42.2066 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0998 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 Yzoga2VybmVsLWhhcmRlbmluZ0BsaXN0cy5vcGVud2FsbC5jb20NCk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