Received: from eggs.gnu.org ([208.118.235.92]:51178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVAte-0002TV-6b for qemu-devel@nongnu.org; Thu, 17 May 2012 20:18:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVAtc-0006uB-1V for qemu-devel@nongnu.org; Thu, 17 May 2012 20:18:17 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35436 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVAtb-0006tx-RR for qemu-devel@nongnu.org; Thu, 17 May 2012 20:18:15 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <4FB3818F.1030603@de.ibm.com> Date: Fri, 18 May 2012 02:18:08 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <46D681A2-E856-4E7D-9DA7-DC64BA3CAED2@suse.de> References: <4EC02384-64EF-4514-975C-A3D229B3693E@suse.de> <1336055277-53204-1-git-send-email-borntraeger@de.ibm.com> <4FB3818F.1030603@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH] Fix size checking in load_image_targphys to accept max_size > INT_MAX List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: Peter Maydell , Anthony Liguori , QEMU Developers On 16.05.2012, at 12:29, Christian Borntraeger wrote: > On 03/05/12 16:33, Peter Maydell wrote: >> On 3 May 2012 15:27, Christian Borntraeger = wrote: >>> commit 17df768c1e4580f03301d18ea938d3557d441911 >>> load_image_targphys() should enforce the max size >>>=20 >>> caused some problems with external kernel and specific ram sizes on = s390: >>>=20 >>> We load the external kernel with >>>=20 >>> [...] >>> kernel_size =3D load_image_targphys(kernel_filename, 0, = ram_size); >>> [...] >>>=20 >>> Since load_image_targphys is declared as taking an int for max_sz, = this will >>> fail for ram sizes > INT_MAX. >>> Lets change the max_sz parameter to a uint64_t. >>>=20 >>> Signed-off-by: Christian Borntraeger >>=20 >> A patch equivalent to this has already been submitted: >> http://patchwork.ozlabs.org/patch/146165/ >> We should be applying that one, it has already been reviewed. >>=20 >> Anthony? >=20 > Anthony, >=20 > can you apply the patchwork patch for 1.1? Ping? Still missing in rc2. Alex