From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUbUJ-0000WO-OQ for qemu-devel@nongnu.org; Wed, 16 May 2012 06:29:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUbUD-0003rh-EH for qemu-devel@nongnu.org; Wed, 16 May 2012 06:29:47 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:58045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUbUD-0003rE-4Q for qemu-devel@nongnu.org; Wed, 16 May 2012 06:29:41 -0400 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 16 May 2012 11:29:38 +0100 Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q4GATZ2I2666614 for ; Wed, 16 May 2012 11:29:35 +0100 Received: from d06av09.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q4GATYGJ013916 for ; Wed, 16 May 2012 04:29:34 -0600 Message-ID: <4FB3818F.1030603@de.ibm.com> Date: Wed, 16 May 2012 12:29:35 +0200 From: Christian Borntraeger MIME-Version: 1.0 References: <4EC02384-64EF-4514-975C-A3D229B3693E@suse.de> <1336055277-53204-1-git-send-email-borntraeger@de.ibm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Anthony Liguori Cc: QEMU Developers , Peter Maydell , agraf@suse.de 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 >> >> caused some problems with external kernel and specific ram sizes on s390: >> >> We load the external kernel with >> >> [...] >> kernel_size = load_image_targphys(kernel_filename, 0, ram_size); >> [...] >> >> 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. >> >> Signed-off-by: Christian Borntraeger > > 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. > > Anthony? Anthony, can you apply the patchwork patch for 1.1? Christian