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: [email protected]
          Reporter: [email protected]

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@abyss:~ # sysctl kern.elf64.aslr.enable=1
kern.elf64.aslr.enable: 1 -> 1
root@abyss:~ # sysctl kern.elf64.aslr.enable=0
kern.elf64.aslr.enable: 1 -> 0
root@abyss:~ # ulimit -s 3000
root@abyss:~ # ulimit -s 3000
root@abyss:~ # ulimit -s 3000
root@abyss:~ # ulimit -s 3000
root@abyss:~ # ulimit -s 3000
root@abyss:~ # sysctl kern.elf64.aslr.enable=1
kern.elf64.aslr.enable: 0 -> 1
root@abyss:~ # ulimit -s 3000
Segmentation fault (core dumped)
root@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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to