Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp510654ybb; Thu, 28 Mar 2019 06:59:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhfxLFImq02FKFTdFtPEYxjU/JTdQN/7awjaRDxtC5Wo3rgygPozGoRTKvOFvcRI8BvFM7 X-Received: by 2002:aa7:82cb:: with SMTP id f11mr34769470pfn.0.1553781541365; Thu, 28 Mar 2019 06:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553781541; cv=none; d=google.com; s=arc-20160816; b=c/v0wsN9EeXYFo1zsgMa6U3HiQ4x7RWIOKEz2MOWA9X9cThN+8IIUbB9uNOWq9Sv11 uOhO8MOVsa36oGMWf4cTHsNfkKREb+WwAG9YFh9Q2DS8NU2AjkVY/HRkys8lQlwvG7Gm 7J2SdZN7TU/YPS8L4aNS6FLSUbYUXdyN3tERF2nTl5ByPfvL+hVShQgVvWR8gvg2zQLW W63dch261S3y6//SkSJmDHBtNiv5YJ8Tr3Nv06TlvjDRNaFwAyr+E+Bz2LNDsBU+BH+4 LIYeCslT+ZJZsDsNqO20XW2lvLVhreKxWFCkGVjDz5wquVU9M7ijJYQ0hiLZ1kmRpsb9 VVFQ== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=FFhSSeqZDDzd7cxQ6jH2+sA+9HID3wTq6rw1pcJFOqk=; b=B49EIxlmBe7ZO9NfmUaWfF8ZuXnKPT1UqBNSB4XQaBibKyiARWK63V39TKpWzmg5vh OcJabZZ29qXKI1eP7GSOq+7NJ2PYMuiFnZCiOSxi5ffSChT8lkBvPxC30YAo2Kgvikky c4hpY+o0CzCd82G9PadiFuPWjytRLTcpBXVVsyQe0PoxV8sEWh7m72vVwmY6KZojWBZF O6QGp/oeoyK0BBG2gX2faLDka0iHUyctN1pqUTRZfhDM+JPxU8PJpS0TJHLzXSFvP0Da vnSrYYp0B+ujo99fiZqBluKHi7MszQjNqPa1XiBvKvYDQEF8oN/FKXTBSdBmZEYvNmL9 e9Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=xywa0rTb; 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 g186si20690321pgc.586.2019.03.28.06.58.44; Thu, 28 Mar 2019 06:59: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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=xywa0rTb; 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 S1726224AbfC1N6J (ORCPT + 99 others); Thu, 28 Mar 2019 09:58:09 -0400 Received: from mail-eopbgr710056.outbound.protection.outlook.com ([40.107.71.56]:41440 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725948AbfC1N6J (ORCPT ); Thu, 28 Mar 2019 09:58:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FFhSSeqZDDzd7cxQ6jH2+sA+9HID3wTq6rw1pcJFOqk=; b=xywa0rTb2WKvp/o9a3KHvq0POAX6DBI6fDfZO2ulynv6Gl4cxi/ZYXP9M71IKF6HnVxviqApogrpnqTUBc1fHz8Ixdpe5RJyf/7vnNC2R36WKSB6EyNKNPqQZtboPOmyZEYAEm/CQdwPl16Ey9D8zivPLLqH1XVAToiuYglhCc8= Received: from DM6PR12MB2682.namprd12.prod.outlook.com (20.176.116.31) by DM6PR12MB3226.namprd12.prod.outlook.com (20.179.105.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Thu, 28 Mar 2019 13:58:06 +0000 Received: from DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::4dd7:e79:1607:b755]) by DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::4dd7:e79:1607:b755%5]) with mapi id 15.20.1730.019; Thu, 28 Mar 2019 13:58:06 +0000 From: "Singh, Brijesh" To: David Rientjes , Joerg Roedel , Paolo Bonzini , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= CC: "Singh, Brijesh" , Borislav Petkov , "x86@kernel.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [patch] KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow Thread-Topic: [patch] KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow Thread-Index: AQHU4zs2G/SIKrvFgkGxQAzIKjw/j6YhFg+A Date: Thu, 28 Mar 2019 13:58:05 +0000 Message-ID: <0ba6d873-6567-f20a-c5c1-59fc2c97968e@amd.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0401CA0044.namprd04.prod.outlook.com (2603:10b6:803:2a::30) To DM6PR12MB2682.namprd12.prod.outlook.com (2603:10b6:5:4a::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a6d2f87b-636c-4a07-7fdf-08d6b38566ab x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DM6PR12MB3226; x-ms-traffictypediagnostic: DM6PR12MB3226: x-microsoft-antispam-prvs: x-forefront-prvs: 0990C54589 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(136003)(346002)(376002)(396003)(39860400002)(199004)(189003)(6246003)(386003)(53546011)(6506007)(6436002)(76176011)(52116002)(7736002)(102836004)(8936002)(305945005)(25786009)(6486002)(8676002)(81166006)(6512007)(3846002)(2906002)(53936002)(68736007)(81156014)(6116002)(105586002)(99286004)(229853002)(4326008)(5660300002)(31686004)(256004)(446003)(106356001)(36756003)(4744005)(11346002)(476003)(2616005)(86362001)(486006)(97736004)(26005)(54906003)(31696002)(110136005)(186003)(478600001)(71190400001)(14454004)(71200400001)(66066001)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3226;H:DM6PR12MB2682.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9rOUH4IeInk/EpYTh0h//zkFK7478RWR1GXsHrWz32gbXcRgN9p4LPeJwQO6sgnG2FHHZ2AwH7Uy5G/ruRE8027C02pAidUWmtcFWFRpagPDlQ2V2wrkmaS44LyO0u3Ug+eRkIqbZA5DoZXOZxyH2bFLwl2VqZzjBVadUn1715LQPFafCi/8lmZbaI87I29IDtSZ7bbc7vcGQ8fgmx/fmg5lL24mn4O1VlWwvvRQkTLrGUp5LWmY1kzVE7TR65S1YO7Y90hodPxcXa/N0kMHkMfEzvL+e9xbH+WiSG3QwdMvLl1GQm7s76Q1MulcFmfkgqqdgH34IRSU0rMGRPJ9TnGBa+H2R/pXtOUqiKEfHF/bPc02veiyR/QCgBFl4nBM9el8XKATcvD7/EacVzFKyPxUIY/EPCz8dVZ24juHJNk= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6d2f87b-636c-4a07-7fdf-08d6b38566ab X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2019 13:58:05.8925 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3226 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDMvMjUvMTkgMTo0NyBQTSwgRGF2aWQgUmllbnRqZXMgd3JvdGU6DQo+IFRoaXMgZW5z dXJlcyB0aGF0IHRoZSBhZGRyZXNzIGFuZCBsZW5ndGggcHJvdmlkZWQgdG8gREJHX0RFQ1JZUFQg YW5kDQo+IERCR19FTkNSWVBUIGRvIG5vdCBjYXVzZSBhbiBvdmVyZmxvdy4NCj4gDQo+IEF0IHRo ZSBzYW1lIHRpbWUsIHBhc3MgdGhlIGFjdHVhbCBudW1iZXIgb2YgcGFnZXMgcGlubmVkIGluIG1l bW9yeSB0bw0KPiBzZXZfdW5waW5fbWVtb3J5KCkgYXMgYSBjbGVhbnVwLg0KPiANCj4gUmVwb3J0 ZWQtYnk6IENmaXIgQ29oZW4gPGNmaXJAZ29vZ2xlLmNvbT4NCj4gU2lnbmVkLW9mZi1ieTogRGF2 aWQgUmllbnRqZXMgPHJpZW50amVzQGdvb2dsZS5jb20+DQo+IC0tLQ0KPiAgIGFyY2gveDg2L2t2 bS9zdm0uYyB8IDEyICsrKysrKysrKy0tLQ0KPiAgIDEgZmlsZSBjaGFuZ2VkLCA5IGluc2VydGlv bnMoKyksIDMgZGVsZXRpb25zKC0pDQo+IA0KDQoNClJldmlld2VkLWJ5OiBCcmlqZXNoIFNpbmdo IDxicmlqZXNoLnNpbmdoQGFtZC5jb20+DQoNCnRoYW5rcw0K