ntpd doesn't like ASLR on stable/12 post-r350672

Trond Endrestøl trond.endrestol at ximalas.info
Sat Aug 24 22:19:56 UTC 2019


On Sat, 24 Aug 2019 23:41+0300, Konstantin Belousov wrote:

> On Sat, Aug 24, 2019 at 10:04:49PM +0200, Trond Endrestøl wrote:
> 
> > Disabling ASLR, kern.elf64.aslr.enable=0, before starting ntpd 
> > manually is a workaround, but this is not viable in the long run.
> 
> Why ?

I like to keep ALSR enabled in the hope that it actually achieves 
something. You are right, I can disable it completely.

> > I tried changing command="/usr/sbin/${name}" to 
> > command="/usr/bin/proccontrol -m aslr -s disable /usr/sbin/${name}" in 
> > /etc/rc.d/ntpd, but that didn't go well.
> 
> If you set kern.elf64.aslr.stack_gap to zero, does it help ?

That helped. Thank you again.

-- 
Trond.


More information about the freebsd-stable mailing list