freebsd-dev/sys/arm
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
..
allwinner Allwinner a83t: add ccung bits 2017-11-23 05:54:04 +00:00
altera/socfpga Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
amlogic/aml8726 Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
annapurna/alpine Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +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
at91 Defer attaching and probing iicbus and its children until interrupts are 2017-09-13 16:54:27 +00:00
broadcom/bcm2835 arm: rpi2: Fix cpufreq(4) 2017-11-13 18:53:41 +00:00
cavium/cns11xx Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
cloudabi32 Move struct syscall_args syscall arguments parameters container into 2017-06-12 21:03:23 +00:00
conf Update several more URLs 2017-10-29 08:17:03 +00:00
freescale sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
include sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
lpc Add and use a MMC_DECLARE_BRIDGE macro for declaring mmc(4) bridges 2017-03-07 22:42:44 +00:00
mv sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
nvidia tegra: Do not define early printf function 2017-10-19 20:52:17 +00:00
qemu Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
ralink [arm] [rt1310] add initial RT1310 SoC code. 2017-05-06 06:14:46 +00:00
rockchip Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
samsung/exynos Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
ti sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
versatile sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
xilinx Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
xscale Indent protection and some other oops from the prvious commits. 2017-11-20 19:56:11 +00:00