3 ms·
Probably the same (or worse) as Linux. IIRC FreeBSD still had executable stacks by default until at least 2016? Edit: I give FreeBSD too much credit. The kern
by notaplumber 7y ago
Probably the same (or worse) as Linux. IIRC FreeBSD still had executable stacks by default until at least 2016?
Edit: I give FreeBSD too much credit.
The kern.elf64.nxstack / kern.elf32.nxstack sysctls were introduced in FreeBSD 9.0, which is 0 by default. 1 enables PT_GNU_STACK behaviour. Apparently not implemented for all platforms. So you get to choose from executable stacks by default and the same nasty behaviour Linux has.