freebsd-dev/sys/amd64/sgx
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
..
sgx_linux.c Fix refcount leaks in the SGX Linux compat ioctl handler. 2019-02-17 16:43:44 +00:00
sgx_support.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
sgx.c Prevent loading SGX with incorrect EPC data 2019-03-19 02:33:58 +00:00
sgxvar.h