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
F154963375: D33438.diff
Thu, Apr 30, 8:38 AM
Unknown Object (File)
Thu, Apr 23, 4:18 AM
Unknown Object (File)
Tue, Apr 21, 1:59 PM
Unknown Object (File)
Thu, Apr 9, 4:02 PM
Unknown Object (File)
Mar 21 2026, 1:03 PM
Unknown Object (File)
Mar 16 2026, 2:02 AM
Unknown Object (File)
Mar 15 2026, 11:30 AM
Unknown Object (File)
Mar 14 2026, 10:08 AM
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