Page MenuHomeFreeBSD

imgact_elf: compute auxv buffer size instead of using magic value
ClosedPublic

Authored by trasz on Jun 19 2021, 11:42 AM.
Tags
None
Referenced Files
F170939300: D30821.id91167.diff
Mon, Sep 7, 6:03 PM
F170937853: D30821.id91089.diff
Mon, Sep 7, 5:48 PM
F170936918: D30821.diff
Mon, Sep 7, 5:39 PM
Unknown Object (File)
Sun, Sep 6, 9:28 AM
Unknown Object (File)
Sun, Sep 6, 4:48 AM
Unknown Object (File)
Sat, Sep 5, 1:12 PM
Unknown Object (File)
Sat, Sep 5, 11:21 AM
Unknown Object (File)
Thu, Sep 3, 10:22 AM
Subscribers

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jun 19 2021, 1:49 PM

Note that in theory, application might replace its auxv vector with whatever values it wants. So proc_getauxv() does not limit the count to AT_COUNT, but defined somewhat arbitrary PROC_AUXV_MAX limit. You might move this define to some global place and use it instead of AT_COUNT, as a follow-up.

Anyway, this change is already an improvement, since it avoids truncating auxv for normal core dumps.