Page MenuHomeFreeBSD

imgact_elf: Ensure that the return value in parse_notes is initialized
ClosedPublic

Authored by markj on Apr 25 2021, 11:50 PM.
Tags
None
Referenced Files
F158060121: D29986.id.diff
Thu, May 28, 2:11 AM
Unknown Object (File)
Tue, May 26, 6:17 PM
Unknown Object (File)
Mon, May 25, 7:41 PM
Unknown Object (File)
Mon, May 11, 10:37 PM
Unknown Object (File)
Fri, May 1, 9:13 PM
Unknown Object (File)
Apr 13 2026, 5:46 PM
Unknown Object (File)
Apr 13 2026, 12:17 PM
Unknown Object (File)
Apr 9 2026, 6:28 PM
Subscribers

Details

Summary

parse_notes relies on the caller-supplied callback to initialize "res".
Two callbacks are used in practice, brandnote_cb and note_fctl_cb, and
the latter fails to initialize res. Try to fix it.

Reported by: KMSAN

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38857
Build 35746: arc lint + arc unit

Event Timeline

I.e. the only effect of this was that the inner loop from check_note potentially did not stopped after fctl note was handled, but continued till the end of the phdrs.

This revision is now accepted and ready to land.Apr 26 2021, 12:03 AM
In D29986#672701, @kib wrote:

I.e. the only effect of this was that the inner loop from check_note potentially did not stopped after fctl note was handled, but continued till the end of the phdrs.

I think so, yes. I will note this in the commit message.