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, Feb 13, 8:16 AM
Unknown Object (File)
Wed, Feb 12, 6:21 AM
Unknown Object (File)
Wed, Feb 5, 7:14 PM
Unknown Object (File)
Sun, Feb 2, 5:31 PM
Unknown Object (File)
Sat, Feb 1, 1:15 PM
Unknown Object (File)
Jan 16 2025, 5:39 PM
Unknown Object (File)
Jan 11 2025, 2:50 PM
Unknown Object (File)
Jan 10 2025, 10:01 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 Not Applicable
Unit
Tests Not Applicable

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.