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)
Tue, Apr 23, 2:46 PM
Unknown Object (File)
Sat, Apr 6, 4:49 PM
Unknown Object (File)
Fri, Apr 5, 8:04 AM
Unknown Object (File)
Feb 6 2024, 9:52 AM
Unknown Object (File)
Dec 23 2023, 9:31 AM
Unknown Object (File)
Dec 20 2023, 2:10 AM
Unknown Object (File)
Dec 12 2023, 8:39 AM
Unknown Object (File)
Oct 24 2023, 9:37 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