Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Unable to uninstall SGX Driver

Rama__Klei
Beginner
926 Views

Hi,

I am trying to uninstall sgx driver because I want to get the latest update but when I run uninstall script file located under opt/intel/sgxdriver it give me the following error: 

Uninstall failed because the kernel module is in use

I have also stopped aesmd service and I still got the above error.

I have uninstalled Intel SGX SDK and have disablet Intel SGX technology at my BIOS.

Am I missing something?

0 Kudos
2 Replies
JesusG_Intel
Moderator
926 Views

Hello Klei,

Blacklist intel_sgx, so it does not get loaded, then uninstall.

  1. edit /etc/modprobe.d/blacklist.conf
  2. add line: blacklist intel_sgx
  3. reboot
  4. Now intel_sgx will not be loaded. Test with lsmod | grep intel_sgx.
  5. sudo opt/intel/sgxdriver/uninstall.sh

Regards,

dating
Beginner
669 Views
 
sudo service aesmd stop
 
sudo /opt/intel/sgxdriver/uninstall.sh
Reply