[Bug 253208] ntpd: fails to start with ASLR

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 3 11:07:08 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253208

            Bug ID: 253208
           Summary: ntpd: fails to start with ASLR
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: 2khramtsov at gmail.com

If one builds FreeBSD with:
WITH_BIND_NOW=yes
WITH_PIE=yes

and sets sysctls:
kern.elf64.aslr.enable=1
kern.elf64.aslr.honor_sbrk=0
kern.elf64.aslr.pie_enable=1
kern.elf64.allow_wx=0
security.bsd.stack_guard_page=1

ntpd will not start:

pid 63899 (ntpd), jid 0, uid 123: exited on signal 11

A workaround is to disable ASLR stack gap:

elfctl -e +noaslrstkgap /usr/sbin/ntpd

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list