Page MenuHomeFreeBSD

Bug 218860 - libelf doesn't reload section headers after update with ELF_C_WRITE
ClosedPublic

Authored by eric_metricspace.net on Apr 24 2017, 11:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 11:17 AM
Unknown Object (File)
Thu, Mar 7, 11:45 PM
Unknown Object (File)
Jan 7 2024, 7:19 AM
Unknown Object (File)
Dec 26 2023, 9:09 AM
Unknown Object (File)
Dec 23 2023, 12:42 AM
Unknown Object (File)
Nov 25 2023, 8:43 AM
Unknown Object (File)
Oct 14 2023, 3:00 AM
Unknown Object (File)
Aug 10 2023, 3:35 PM

Details

Summary

The libelf library in base doesn't reload section headers after clearing them when performing an elf_update with ELF_C_WRITE. This is because it fails to clear a flag indicating that the section headers have been loaded.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Please upload a patch with context (-U99999) (or use arc).

This revision is now accepted and ready to land.Apr 24 2017, 11:27 PM

@emaste , @kaiw , any objection to committing this change?

In D10486#273287, @cem wrote:

@emaste , @kaiw , any objection to committing this change?

I have no objection, although I'd really like kaiw@ to comment

I pinged @kaiw by email requesting a look at this change.

Background on this (and the other related change): I ran into both issues implementing signelf. They caused anomalous bugs, and I tracked them down and fixed them. So they're definitely issues, and the fixes definitely work.

This revision was automatically updated to reflect the committed changes.