Re: RFC: enable PAX aslr/mprotected and MKPIE=yes for ppc
"Frank Wille" <[email protected]> Mon, 2 Jun 2025 11:49:50 +0200
| Newsgroups | gmane.os.netbsd.ports.powerpc |
|---|---|
| Message-ID | <[email protected]> |
On 2025-05-28, Martin Husemann <[email protected]> wrote: > enabled MKPIE=3Dyes. This causes the binaries to grow slightly. > [...] > I propose to: > > a) add aslr and mprotect options the macppc GENERIC (and maybe other > ppc kernels), see above for the exact config lines. > b) enable MKPIE=3Dyes by default for all ppc architectures Although the binary growth is not excessive, and there is no noticeable impact on performance, as far as understand, I would restrict it to PPC ports which have some more RAM (like macppc or ofppc). On older PPC systems, with limited memory (let's say 128 or 64MB), every byte counts to avoid swapping, and security aspects are usually no issue there. Some years ago I ported lots of NAS systems (Synology, QNAP, etc.) to NetBSD/sandpoint and I'm still using them to store my data. :) NetBSD 10.0 (DS209J) #1: Mon Apr 28 18:15:10 CEST 2025 =C2=A0 =C2=A0 =C2=A0 =C2=A0 frank@nerthus:/home/frank/netbsd/REL10.0/src/= objsand/sys/arch/sandpoint/compile/DS209J Model: synology DS209j total memory =3D 65536 KB avail memory =3D 58604 KB OpenPIC Version 1.2: Supports 1 CPUs and 26 interrupt sources. timecounter: Timecounters tick every 10.000 msec Kernelized RAIDframe activated mainbus0 (root) cpu0 at mainbus0: 8245 (Revision 0.4), ID 0 (primary) cpu0: HID0 0x90c000<DOZE,DPM,ICE,DCE>, powersave: 1 cpu0: 265.31 MHz [...] --=C2=A0 Frank Wille