[Bug libdw/28715] There seems to be an infinite loop in dwfl_segment_report_module

evvers at ya dot ru sourceware-bugzilla@sourceware.org
Mon Dec 20 15:39:44 GMT 2021


--- Comment #4 from Evgeny Vereshchagin <evvers at ya dot ru> ---
(In reply to Evgeny Vereshchagin from comment #3)
> (In reply to Mark Wielaard from comment #1)
> > I couldn't replicate the infinite loop, which I assume has been fixed by:
> > https://sourceware.org/pipermail/elfutils-devel/2021q4/004557.html
> I haven't backported that patch yet but as far as I can see the infinite
> loop can't be triggered with the following patches applied:
> ```
> afd19a71 libdwfl: Handle unaligned Phdr in dwfl_segment_report_module
> cf41ae95 libdwfl: Handle unaligned Ehdr in dwfl_segment_report_module
> 7f5e5da8 libdwfl: Make sure note data is properly aligned.
> ```

Looks like I was wrong. Packit along with run-fuzz-dwfl-core.sh actually caught
the infinite loop on 32 bit platforms:
./test-subr.sh: line 84: 20115 Killed                 
I just didn't wait for it to finish.

I'll try to apply
https://sourceware.org/pipermail/elfutils-devel/2021q4/004557.html shortly and
report back.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Elfutils-devel mailing list