x86 relr memory leaks
Nick Alcock
nick.alcock@oracle.com
Tue Feb 25 21:49:51 GMT 2025
On 11 Feb 2025, Alan Modra verbalised:
> On Mon, Feb 10, 2025 at 03:30:34PM +0000, Nick Alcock wrote:
>> (It turns out I am already testing with the sanitizer flags in question.
>> Not sure why the leaks didn't show up...)
>
> ASAN_OPTIONS with detect_leaks=0 in environment?
Yep. I see only one leak, with no useful stacktrace, and it's not any of
the ones you're seeing.
... oh dammit, no, I'm using detect_leaks=0 only. That would explain
that! Fixed.
>> binutils/
>> * objdump.c (dump_ctf): Close dict.
>> * readelf.c (dump_section_as_ctf): Likewise.
>
> With this applied I'm still seeing leaks. eg.
Rrg I don't see that one either! But I can still fix it :) will submit a
new series for leak fixes etc.
(This is actually not a leak, it's *incorrect output* because we're
generating a string for dumping and then never appending it to the dump
buffer. Whoops!)
Thanks for all this!
More information about the Binutils
mailing list