Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Feb 2021 11:07:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253208] ntpd: fails to start with ASLR
Message-ID:  <bug-253208-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253208

            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@FreeBSD.org
          Reporter: 2khramtsov@gmail.com

If one builds FreeBSD with:
WITH_BIND_NOW=3Dyes
WITH_PIE=3Dyes

and sets sysctls:
kern.elf64.aslr.enable=3D1
kern.elf64.aslr.honor_sbrk=3D0
kern.elf64.aslr.pie_enable=3D1
kern.elf64.allow_wx=3D0
security.bsd.stack_guard_page=3D1

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253208-227>