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)
Mar 2 2024, 3:47 AM
Unknown Object (File)
Dec 20 2023, 6:14 AM
Unknown Object (File)
Dec 4 2023, 3:50 AM
Unknown Object (File)
Sep 7 2023, 12:36 PM
Unknown Object (File)
Sep 7 2023, 12:32 PM
Unknown Object (File)
Sep 1 2023, 11:08 PM
Unknown Object (File)
Aug 24 2023, 3:25 AM
Unknown Object (File)
Aug 20 2023, 3:37 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.