freebsd-dev/sys
Bryan Drewery 5608fd23c2 Revert r267233 for now. PIE support needs to be reworked.
1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other
   build-only utility libraries.
2. Another 40% is fixed by generating _pic.a variants of various libraries.
3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR)
   where it never would work anyhow, such as csu or loader. This suggests
   there may be better ways of adding support to the tree. Many of these
   cases can be fixed such that -fPIE will work but there is really no
   reason to have it in those cases.
4. Some of the uses are working around hacks done to some Makefiles that are
   really building libraries but have been using bsd.prog.mk because the code
   is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have
   been needed.

We likely do want to enable PIE by default (opt-out) for non-tree consumers
(such as ports). For in-tree though we probably want to only enable PIE
(opt-in) for common attack targets such as remote service daemons and setuid
utilities. This is also a great performance compromise since ASLR is expected
to reduce performance. As such it does not make sense to enable it in all
utilities such as ls(1) that have little benefit to having it enabled.

Reported by:	kib
2014-08-19 15:04:32 +00:00
..
amd64 There exists a possible sequence of page table page allocation failures 2014-08-18 20:28:08 +00:00
arm Make note about reset vs RTOE actions... 2014-08-18 21:04:35 +00:00
boot Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
bsm IFp4 @1192291: 2014-04-07 20:44:00 +00:00
cam Added 4K quirks for Corsair Force GT and Samsung 840 SSDs 2014-08-14 13:57:17 +00:00
cddl Factor out the common code for function boundary tracing instead of 2014-08-16 21:42:55 +00:00
compat All mbuf external free functions never fail, so let them be void. 2014-07-11 13:58:48 +00:00
conf Bring in the new automounter, similar to what's provided in most other 2014-08-17 09:44:42 +00:00
contrib Add some more OS_MARK() probes to the AR9300 HAL. 2014-08-11 00:03:50 +00:00
crypto Put the aesni_cipher_setup() and aesni_cipher_process() functions into 2014-06-24 06:55:49 +00:00
ddb ins is only set and unused, but only when we're not doing software 2014-08-14 16:01:51 +00:00
dev Sort ASUS section and add USB device ID of ASUS USB-AC51. 2014-08-19 09:02:58 +00:00
fs Bring in the new automounter, similar to what's provided in most other 2014-08-17 09:44:42 +00:00
gdb Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
geom Deal explicitly with possible failures of make_dev_alias_p() in GEOM. 2014-08-18 19:27:47 +00:00
gnu New DTS files to suppport the SAM9260EK eval board. Derived, in part, 2014-08-19 03:51:05 +00:00
i386 Complete r254667, do not destroy pmap lock if KVA allocation failed. 2014-08-16 08:31:25 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
kern For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
kgssapi
libkern Bring in the new automounter, similar to what's provided in most other 2014-08-17 09:44:42 +00:00
mips Change pmap_enter(9) interface to take flags parameter and superpage 2014-08-08 17:12:03 +00:00
modules Bring in the new automounter, similar to what's provided in most other 2014-08-17 09:44:42 +00:00
net * Use standard net/sff8472.h header for sff bits and offsets. 2014-08-16 21:53:44 +00:00
net80211 Undo r195846 for now - allow raw frame transmit in monitor mode. 2014-08-10 08:35:42 +00:00
netgraph Remove any stale mbuf tags from packets being injected into a netgraph 2014-07-01 07:54:12 +00:00
netinet Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload 2014-08-19 02:19:53 +00:00
netinet6 Change pr_output's prototype to avoid the need for explicit casts. 2014-08-15 02:43:02 +00:00
netipsec Change pr_output's prototype to avoid the need for explicit casts. 2014-08-15 02:43:02 +00:00
netnatm
netpfil Do not lookup source node twice when pf_map_addr() is used. 2014-08-15 14:16:08 +00:00
netsmb Remove redundant unlock. 2014-04-17 12:22:08 +00:00
nfs Fix/improve fhe_stats sysctl output. 2014-06-14 12:26:12 +00:00
nfsclient
nfsserver Change NFS readdir() to only ignore cookies preceding the given offset for 2014-07-01 20:00:35 +00:00
nlm Correct a typo in nlm_find_host_by_addr(): the intention of the 2014-03-11 00:25:55 +00:00
ofed - Fix radix tree memory leakage when unloading modules using radix 2014-08-12 11:45:57 +00:00
opencrypto allow the kern.cryptodevallowsoft sysctl to enable symetric/hashes too... 2014-03-11 01:45:46 +00:00
pc98 Compile fixes: 2014-06-28 17:36:18 +00:00
pci Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
powerpc Fix two files forgotten in r269783 (vt_generate_cons_palette) 2014-08-10 22:24:14 +00:00
rpc Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
security Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
sparc64 Complete r254667, do not destroy pmap lock if KVA allocation failed. 2014-08-16 08:31:25 +00:00
sys For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
teken Fix typo. 2014-02-06 13:28:06 +00:00
tools Call cpp with -P to avoid printing line markings. 2014-06-10 06:24:01 +00:00
ufs Revision r269457 removed the Giant around mount and unmount code, but 2014-08-12 09:33:00 +00:00
vm Implement 'fast path' for the vm page fault handler. Or, it could be 2014-08-15 07:30:14 +00:00
x86 atpic: make sure atpic_init is called after IO APIC initialization 2014-08-07 17:00:50 +00:00
xdr
xen xen: implement event channel PIRQ support 2014-08-04 08:42:29 +00:00
Makefile Remove ia64. 2014-07-07 00:27:09 +00:00