freebsd-nq/sys
Andrew Turner 521018d379 Ensure we check the program state set in the trap frame on arm and arm64.
This value may be set by userspace so we need to check it before using it.
If this is not done correctly on exception return the kernel may continue
in kernel mode with all registers set to a userspace controlled value. Fix
this by moving the check into set_mcontext, and also add the missing
sanitisation from the arm64 set_regs.

Discussed with:	security-officer@
MFC after:	3 days
Sponsored by:	DARPA, AFRL
2017-11-23 17:40:40 +00:00
..
amd64 Remove lint support from system headers and MD x86 headers. 2017-11-23 11:40:16 +00:00
arm Ensure we check the program state set in the trap frame on arm and arm64. 2017-11-23 17:40:40 +00:00
arm64 Ensure we check the program state set in the trap frame on arm and arm64. 2017-11-23 17:40:40 +00:00
bsm sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
cam Always null-terminate CAM periph_name and dev_name 2017-11-22 19:57:34 +00:00
cddl Duplicate helpers after disabling inherited tracepoints during a fork. 2017-11-23 14:29:07 +00:00
compat sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
conf bhnd(4): Add a basic ChipCommon GPIO driver sufficient to support bwn(4) 2017-11-22 23:10:20 +00:00
contrib Import the latest CloudABI definitions, v0.18. 2017-11-21 20:46:21 +00:00
crypto sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ddb sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
dev Make sure the iSCSI I/O limits are set properly so that the ISCSIDSEND IOCTL 2017-11-23 13:57:44 +00:00
dts dts: arm64: allwinner: Remove unused dts for pine64 2017-11-18 21:39:54 +00:00
fs msdosfs(5): Reflect READONLY attribute in file mode 2017-11-20 21:38:24 +00:00
gdb gdb kernel server: fixup Search:memory style 2017-10-17 01:12:17 +00:00
geom Allow kern.geom.mirror.debug to be negative. 2017-11-23 14:07:52 +00:00
gnu Update our copy of DTS from the ones from Linux 4.14 2017-11-18 15:46:48 +00:00
i386 Remove lint support from system headers and MD x86 headers. 2017-11-23 11:40:16 +00:00
isa sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
kern Kill all descendants of the reaper, even if they are descendants of a 2017-11-23 11:25:11 +00:00
kgssapi
libkern sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
mips bhnd(4): Add a basic ChipCommon GPIO driver sufficient to support bwn(4) 2017-11-22 23:10:20 +00:00
modules bhnd(4): Add a basic ChipCommon GPIO driver sufficient to support bwn(4) 2017-11-22 23:10:20 +00:00
net Fix off-by-one error in bit_nclear() usage 2017-11-20 21:57:04 +00:00
net80211 [net80211] don't try to follow a NULL rxs pointer down the sink. 2017-10-13 06:49:07 +00:00
netgraph Correction after r323873: #include <sys/lock.h> in addition to <sys/rmlock.h> 2017-09-28 11:26:37 +00:00
netinet Use the right variable for the IP header parameter to tcp:::send. 2017-11-22 14:13:40 +00:00
netinet6 sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
netipsec sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
netpfil Modify ipfw's dynamic states KPI. 2017-11-23 08:02:02 +00:00
netsmb spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
nfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
nfsclient sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
nfsserver sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
nlm
ofed sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
opencrypto crypto(9) is called from ipsec in CRYPTO_F_CBIFSYNC mode. This is working 2017-11-03 10:27:22 +00:00
powerpc Check the page table before TLB1 in pmap_kextract() 2017-11-21 03:12:16 +00:00
riscv o Invalidate the correct page in pmap_protect(). 2017-11-22 14:10:58 +00:00
rpc sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
security sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
sparc64 sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
sys Remove lint support from system headers and MD x86 headers. 2017-11-23 11:40:16 +00:00
teken Fix syscons escape sequence for setting the local cursor type. This sequence 2017-08-18 15:40:40 +00:00
tests
tools sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ufs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
vm Return different error code for the guard page layout violation. 2017-11-22 16:45:27 +00:00
x86 Remove lint support from system headers and MD x86 headers. 2017-11-23 11:40:16 +00:00
xdr
xen
Makefile Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00