From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757496AbbI1NXx (ORCPT ); Mon, 28 Sep 2015 09:23:53 -0400 Received: from smtp.citrix.com ([66.165.176.89]:28726 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757382AbbI1NXw (ORCPT ); Mon, 28 Sep 2015 09:23:52 -0400 X-IronPort-AV: E=Sophos;i="5.17,602,1437436800"; d="scan'208";a="302820457" Message-ID: <56093F65.4050206@citrix.com> Date: Mon, 28 Sep 2015 14:23:49 +0100 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Juergen Gross , , , , , Subject: Re: [Xen-devel] [PATCH] xen: use correct type for HYPERVISOR_memory_op() References: <1441371033-22717-1-git-send-email-jgross@suse.com> In-Reply-To: <1441371033-22717-1-git-send-email-jgross@suse.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/15 13:50, Juergen Gross wrote: > HYPERVISOR_memory_op() is defined to return an "int" value. This is > wrong, as the Xen hypervisor will return "long". > > The sub-function XENMEM_maximum_reservation returns the maximum > number of pages for the current domain. An int will overflow for a > domain configured with 8TB of memory or more. > > Correct this by using the correct type. Applied to for-linus-4.3, thanks. David From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [Xen-devel] [PATCH] xen: use correct type for HYPERVISOR_memory_op() Date: Mon, 28 Sep 2015 14:23:49 +0100 Message-ID: <56093F65.4050206@citrix.com> References: <1441371033-22717-1-git-send-email-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1441371033-22717-1-git-send-email-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org To: Juergen Gross , linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, david.vrabel@citrix.com, boris.ostrovsky@oracle.com List-Id: xen-devel@lists.xenproject.org On 04/09/15 13:50, Juergen Gross wrote: > HYPERVISOR_memory_op() is defined to return an "int" value. This is > wrong, as the Xen hypervisor will return "long". > > The sub-function XENMEM_maximum_reservation returns the maximum > number of pages for the current domain. An int will overflow for a > domain configured with 8TB of memory or more. > > Correct this by using the correct type. Applied to for-linus-4.3, thanks. David