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
Unknown Object (File)
Mon, Apr 22, 3:01 AM
Unknown Object (File)
Sun, Apr 21, 10:53 PM
Unknown Object (File)
Sun, Apr 21, 12:43 PM
Unknown Object (File)
Feb 13 2024, 12:31 AM
Unknown Object (File)
Dec 31 2023, 7:43 AM
Unknown Object (File)
Dec 22 2023, 9:17 PM
Unknown Object (File)
Oct 7 2023, 7:54 PM
Unknown Object (File)
Aug 14 2023, 4:26 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.