Re: [PATCH 1/5] perf: Validate address insymbol__inc_addr_samples().

From: David Miller
Date: Tue Mar 27 2012 - 17:30:39 EST


From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxxxx>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/