[Bug 281433] Changing kern.elf64 sysctl's requires press-button reboot
Date: Thu, 12 Sep 2024 21:52:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281433 --- Comment #5 from dewayne@heuristicsystems.com.au --- (In reply to dewayne from comment #4) A self inflicted issue from the outset. Of course the combination that I want is kern.elf64.allow_wx: 1 -> 0 kern.elf64.nxstack: 1 -> 1 For the interested: readelf -W -l `which whoami` GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0 Create a trivial C program, compile with -Wl,-z,execstack, result (RWE) GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RWE 0 compile with -Wl,-z,noexecstack, results in (RW) GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0 Very much appreciate the "pointer" to PT_GNU_STACK, I learnt something I should've known. And yes, the result is expected :) -- You are receiving this mail because: You are the assignee for the bug.