Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 2020 15:24:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252109] With ASLR enabled ulimit -s is crashing
Message-ID:  <bug-252109-227@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: daniel@zhelev.biz

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

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

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


Steps to reproduce:
root@abyss:~ # sysctl kern.elf64.aslr.enable=3D1
kern.elf64.aslr.enable: 1 -> 1
root@abyss:~ # sysctl kern.elf64.aslr.enable=3D0
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=3D1
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=3D0

Attached coredump from ulimit.

--=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-252109-227>