Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2024 21:52:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 281433] Changing kern.elf64 sysctl's requires press-button reboot
Message-ID:  <bug-281433-227-IIUiWNYN5T@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-281433-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-281433-227@https.bugs.freebsd.org/bugzilla/>

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

--- 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 w=
ant
is
kern.elf64.allow_wx: 1 -> 0
kern.elf64.nxstack: 1 -> 1

For the interested:=20
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 :)

--=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-281433-227-IIUiWNYN5T>