Page MenuHomeFreeBSD

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

Authored by kd on Mar 15 2019, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 30, 11:34 PM
Unknown Object (File)
Wed, Oct 29, 1:29 AM
Unknown Object (File)
Tue, Oct 28, 12:51 PM
Unknown Object (File)
Sun, Oct 26, 9:39 PM
Unknown Object (File)
Sun, Oct 26, 5:29 AM
Unknown Object (File)
Mon, Oct 20, 12:38 PM
Unknown Object (File)
Sat, Oct 18, 7:14 AM
Unknown Object (File)
Sat, Oct 18, 7:14 AM
Subscribers

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 - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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.