HomeFreeBSD

Disable stack gap for ntpd during build.

Description

Disable stack gap for ntpd during build.

When starting, ntpd calls setrlimit(2) to limit maximum size of its
stack. The stack limit chosen by ntpd is 200K, so when stack gap
is enabled, the stack gap is larger than this limit, which results
in ntpd crashing.

Submitted by: Dawid Gorecki <dgr@semihalf.com>
Reviewed by: cy, imp
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D29553

Details

Provenance
mwAuthored on May 21 2021, 9:29 AM
Reviewer
cy
Differential Revision
D29553: Disable stack gap for ntpd during build.
Parents
R10:c6081dea597a: Add elfctl to toolchain.
Branches
Unknown
Tags
Unknown
Reverted By
R10:733a832fb515: ntp: Revert "Disable stack gap for ntpd during build."