Page MenuHomeFreeBSD

sgx: Don't attach if EPC data is corrupted.
ClosedPublic

Authored by mindal_semihalf.com on Mar 15 2019, 4:21 PM.

Details

Summary

On my machine even if sgx is disabled in firmware the driver still tries to attach with EPS base and size equal to zeroes.
Such behavior results in kernel panic when the module is unloaded.
This is probably caused by a crappy firmware.
Add a simple check to make sure that those values are not zeroes.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

br accepted this revision.Mar 15 2019, 4:33 PM
This revision is now accepted and ready to land.Mar 15 2019, 4:33 PM
This revision was automatically updated to reflect the committed changes.