freebsd-ports/net/ntp
Cy Schubert c2a26c7a01 net/ntp: Restore previous behaviour
Restore ntp to prior to the ASLR mitigations applied.

When ASLR and subsequently PIE were committed to the FreeBSD kernel, ntpd
would segfault due to insufficient stack. This was because stack gap was
not taken into account by applications requesting stack and/or memory
limits. (BTW, this problem also affected firefox and thunderbird.)

This subsequently caused disabling of rlimit memlock, which could not be
avoided under the previous implementation of ASLR:

	Cannot set RLIMIT_MEMLOCK: Operation not permitted

Since then a number of improvments to ASLR stack gap implementation have
rendered the mitigations unnecessary. The mitigations initially developed
here at FreeBSD were subsequently upstreamed (noticed by the folks at
nwtime.org and automatically upstreamed). The mitigations have been
reversed in the base system. This patch reverses the ASLR mitigations in
the port as well.

PR:		262031
Reported by:	p5B2E9A8F@t-online.de
2022-02-18 13:01:48 -08:00
..
files net/ntp: Restore previous behaviour 2022-02-18 13:01:48 -08:00
distinfo
Makefile net/ntp: Restore previous behaviour 2022-02-18 13:01:48 -08:00
Makefile.inc
pkg-descr
pkg-plist