Linux18.04 becomes SGX invalid after `apt upgrade`

Linux18.04 becomes SGX invalid after `apt upgrade`


Hello,

My Linux device worked fine with SGX before I run `apt upgrade`, but after that, my system becomes SGX invalid while running SampleEnclave application(No other SGX application could run as well). Tried to uninstall SGX driver and reinstall it mant times, nothing changed. Anybody could help me? Even if some suggestions to cleanly remove everything related to SGX from my system would help. Struggled for many days, please help me out of this.

5 posts / 0 new

Best Reply

I have met this problem, my case was caused by the kernel version's update, isgx.ko is installed in old kernel folders and when u run `apt upgrade` system will use new kernel when it reboot.

Use `modinfo isgx` to find where the driver file is and select this kernel version at boot time.


Hi Jinghui:

You are facing this problem because your driver version is unmatched with your new kernel version.

Use "modinfo isgx", the kernel version your driver supported is shown in the "vermagic" field. 

Please uninstall the driver, then clone a new repo and make, install again. If you use make clean on old repo, the driver version won't change.

 

 


Quote:

guan, jixing wrote:

I have met this problem, my case was caused by the kernel version's update, isgx.ko is installed in old kernel folders and when u run `apt upgrade` system will use new kernel when it reboot.

Use `modinfo isgx` to find where the driver file is and select this kernel version at boot time.

 

Thank you for your answer, I finally solved this issue by deleting intel_sgx.ko that I am not quite sure what it is. 


Intel_sgx.ko is the sgx drive that supports Flex launch control feature.

Leave a Comment

Please sign in to add a comment. Not a member? Join today