lkml.org 
[lkml]   [2012]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [BUG]memblock: fix overflow of array index
From
From: "H. Peter Anvin" <hpa@linux.intel.com>
Date: Wed, 25 Apr 2012 15:29:31 -0700

> On 04/25/2012 03:28 PM, Tejun Heo wrote:
>>
>> All indexes in memblock are integers. Changing that particular one to
>> unsigned int doesn't fix anything. I think it just makes things more
>> confusing. If there ever are cases w/ more then 2G memblocks, we're
>> going for 64bit not unsigned.
>>
>
> I would expect there to be plenty of memblocks larger than 2G?

Yes, but not the array indexes into those memblock entries, which is
what this patch is about.


\
 
 \ /
  Last update: 2012-04-26 00:33    [W:0.092 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site