[Bug 252109] With ASLR enabled ulimit -s is crashing

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 24 15:24:48 UTC 2020


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

            Bug ID: 252109
           Summary: With ASLR enabled ulimit -s is crashing
           Product: Base System
           Version: 12.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: daniel at zhelev.biz

Created attachment 220893
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=220893&action=edit
coredump from ulimit

Summary
When trying to set a stack size using ulimit -s while kern.elf*.aslr.enable=1
causes segmentation fault:

System:
OS: 12.2-RELEASE-p1 
ARCH: AMD64
Notes: Running on Proxmox VM


Steps to reproduce:
root at abyss:~ # sysctl kern.elf64.aslr.enable=1
kern.elf64.aslr.enable: 1 -> 1
root at abyss:~ # sysctl kern.elf64.aslr.enable=0
kern.elf64.aslr.enable: 1 -> 0
root at abyss:~ # ulimit -s 3000
root at abyss:~ # ulimit -s 3000
root at abyss:~ # ulimit -s 3000
root at abyss:~ # ulimit -s 3000
root at abyss:~ # ulimit -s 3000
root at abyss:~ # sysctl kern.elf64.aslr.enable=1
kern.elf64.aslr.enable: 0 -> 1
root at abyss:~ # ulimit -s 3000
Segmentation fault (core dumped)
root at abyss:~ #

Workaround:
Disable ASLR sysctl kern.elf64.aslr.enable=0

Attached coredump from ulimit.

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


More information about the freebsd-bugs mailing list