freebsd-nq/sys
Marcin Wojtas 3caad0b8f4 Prevent loading SGX with incorrect EPC data
It may happen on some machines, that even if SGX is disabled
in firmware, the driver would still attach despite EPC base and
size equal zero. Such behaviour causes a kernel panic when the
module is unloaded. Add a simple check to make sure we
only attach when these values are correctly set.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: br
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D19595
2019-03-19 02:33:58 +00:00
..
amd64 Prevent loading SGX with incorrect EPC data 2019-03-19 02:33:58 +00:00
arm amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
arm64 amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
bsm Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
cam Upgrade Chipfancier SLC quirk to all versions 2019-03-11 20:57:54 +00:00
cddl MFV r336930: 9284 arc_reclaim_thread has 2 jobs 2019-03-15 18:59:04 +00:00
compat amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
conf Revert r345274. It appears that not all 32-bit architectures have 2019-03-18 14:00:19 +00:00
contrib [ath_hal_ar9300] Add some comments around the AR9300 ANI code. 2019-03-19 00:07:12 +00:00
crypto Embedded chacha: Add 0-bit iv + 128-bit counter mode 2019-03-01 23:30:23 +00:00
ddb ddb: Print the thread's pcb in 'show thread' 2019-02-09 21:08:19 +00:00
dev netmap: add support for multiple host rings 2019-03-18 12:22:23 +00:00
dts Adapt FreeBSD specific DT stub for Jetson TK1 board to be consistent with 2019-02-06 06:03:44 +00:00
fs Remove unneeded mount point unlock function calls. 2019-03-15 11:49:46 +00:00
gdb
geom stack(9): Drop unused API mode and comment that referenced it 2019-03-15 22:39:55 +00:00
gnu Correct my previous correction to the license. It now matches the text 2019-03-07 22:34:45 +00:00
i386 i386: improve detection of the fast page fault assist. 2019-03-17 18:31:48 +00:00
isa
kern Fix a typo introduced in r344133 2019-03-18 12:41:42 +00:00
kgssapi * Handle SIGPIPE in gssd 2019-02-21 01:30:37 +00:00
libkern Add non-sleepable strdup variant strdup_flags 2019-02-20 20:48:10 +00:00
mips amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
modules Revert r345274. It appears that not all 32-bit architectures have 2019-03-18 14:00:19 +00:00
net netmap: add support for multiple host rings 2019-03-18 12:22:23 +00:00
net80211 net80211: correct check for SMPS node flags updates 2019-03-18 02:40:22 +00:00
netgraph Remove 'dir' argument in ng_ipfw_input, since ip_fw_args now has this info. 2019-03-14 22:30:05 +00:00
netinet Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
netinet6 Revert r345274. It appears that not all 32-bit architectures have 2019-03-18 14:00:19 +00:00
netipsec Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
netpfil Revert r345274. It appears that not all 32-bit architectures have 2019-03-18 14:00:19 +00:00
netsmb Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfs
nfsclient
nfsserver
nlm
ofed Mechanical cleanup of epoch(9) usage in network stack. 2019-01-09 01:11:19 +00:00
opencrypto Fix another bug introduced during the review process of r344140: 2019-02-25 19:14:16 +00:00
powerpc amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
riscv amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
rpc Bump the default kern.rpc.gss.client_max from 128 to 1024. 2019-02-19 11:07:02 +00:00
security Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
sparc64 amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
sys sys/stat.h: Improve timespec compatibility with other BSDs 2019-03-18 19:23:19 +00:00
teken Attempt to complete fixing programmable function keys for syscons. 2019-02-20 02:14:41 +00:00
tests Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
tools make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATH 2018-12-14 23:53:28 +00:00
ufs Revert r345244 for now. 2019-03-18 05:03:55 +00:00
vm Implement minidump support for RISC-V. 2019-03-06 00:01:06 +00:00
x86 amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
xdr
xen xen: introduce a new way to setup event channel upcall 2019-01-30 11:34:52 +00:00
Makefile