lkml.org 
[lkml]   [2012]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/5] perf: Validate address in symbol__inc_addr_samples().
From
From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Date: Tue, 27 Mar 2012 11:15:24 -0300

> Em Sun, Mar 25, 2012 at 04:28:08PM -0400, David Miller escreveu:
>> If addr < sym->start then we are going to access past the end of the
>> h->addr[] array, since the offset calculated will be huge.
>>
>> Trigger an assertion instead of randomly scribbling memory when this
>> situation occurs.
>
> I'm applying this one instead, please check if you have any concerns
> with this approach:

No objections.


\
 
 \ /
  Last update: 2012-03-27 23:33    [W:0.039 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site