Page MenuHomeFreeBSD

imgact_elf: Disable the stack gap for now
ClosedPublic

Authored by markj on Dec 14 2021, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 3 2024, 8:45 AM
Unknown Object (File)
Dec 2 2024, 4:17 PM
Unknown Object (File)
Oct 22 2024, 9:02 AM
Unknown Object (File)
Oct 9 2024, 2:23 PM
Unknown Object (File)
Oct 9 2024, 1:35 AM
Unknown Object (File)
Sep 19 2024, 12:35 AM
Unknown Object (File)
Sep 18 2024, 2:36 PM
Unknown Object (File)
Sep 15 2024, 10:08 PM
Subscribers

Details

Summary

It does not interact properly with RLIMIT_STACK, and has a few other
problems as noted in PR 260303. Let's disable it for now until a better
solution is reached.

I suspect that we should stop copying psstrings into the stack, and
instead create a dedicated mapping for them. Then, map the full stack
at some bounded, randomized offset below this mapping, and let
RLIMIT_STACK apply to this mapping as usual, without any knowledge of
the stack gap.

Diff Detail

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