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
F170571479: D30821.id.diff
Sat, Sep 5, 11:21 AM
Unknown Object (File)
Thu, Sep 3, 10:22 AM
Unknown Object (File)
Tue, Sep 1, 2:44 PM
Unknown Object (File)
Tue, Sep 1, 10:38 AM
Unknown Object (File)
Sun, Aug 30, 11:09 AM
Unknown Object (File)
Sun, Aug 30, 10:51 AM
Unknown Object (File)
Sun, Aug 30, 4:58 AM
Unknown Object (File)
Wed, Aug 19, 8:47 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.