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
sgx_support.S
sgx.c Prevent loading SGX with incorrect EPC data 2019-03-19 02:33:58 +00:00
sgxvar.h