[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120327.173026.1921458003009946618.davem@davemloft.net>
Date: Tue, 27 Mar 2012 17:30:26 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: acme@...stprotocols.net
Cc: mingo@...nel.org, eranian@...gle.com, dumitru.sorin87@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/5] perf: Validate address in
symbol__inc_addr_samples().
From: Arnaldo Carvalho de Melo <acme@...stprotocols.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists