]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r352304, r352540
authorCy Schubert <cy@FreeBSD.org>
Sun, 29 Sep 2019 03:36:50 +0000 (03:36 +0000)
committerCy Schubert <cy@FreeBSD.org>
Sun, 29 Sep 2019 03:36:50 +0000 (03:36 +0000)
commitcbd79110fc756fae2b2172bcdb49a6a027dba309
tree79a499194d8da341dfa3a2d5299389b2a0cc83ba
parent30dc01a762e6f9868e3e69928d266e77e2cad5a4
MFC r352304, r352540

r352304:
No longer mlock() ntpd pages by default in memory thus allowing its
pages to page as necessary.

To restore historic BSD behaviour add the following to ntp.conf:
rlimit memlock 32

Discussed on: freebsd-current@ between Sept 6-9, 2019
Reported by: Users using ASLR with stack gap != 0
Reviewed by: ian, kib, rgrimes (all previous versions)
Differential Revision: https://reviews.freebsd.org/D21581

r352540:
Follow up on r352304 which disabled default mlockall() at startup.
Unfortunately though the original tarball supports this in ./configure
(for Linux), to fully support disabling of mlockall() by default requires
a little extra help otherwise the following is logged in syslog:

Cannot set RLIMIT_MEMLOCK: Operation not permitted
UPDATING
contrib/ntp/ntpd/ntpd.c
usr.sbin/ntp/config.h
usr.sbin/ntp/ntpd/ntp.conf