<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to unload isgx kernel module on Linux? in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-unload-isgx-kernel-module-on-Linux/m-p/1131668#M1935</link>
    <description>&lt;P&gt;After installing SGX SDK, PSW, and kernel driver on Ubuntu 16.04. kernel&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;4.13.0-38-generic. I have run &lt;A href="https://github.com/digawp/hello-enclave" target="_blank"&gt;hello_world&lt;/A&gt;&amp;nbsp;SGX application successfully. Now when I want to remove the module, even forcefully, it throws me error saying that the module is in use. How can I stop the module and remove from the kernel?&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;$ sudo modprobe -r -f isgx
modprobe: FATAL: Module isgx is in use.

$ sudo rmmod isgx
rmmod: ERROR: Module isgx is in use

$ sudo rmmod -f isgx
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'isgx': Resource temporarily unavailable
rmmod: ERROR: could not remove module isgx: Resource temporarily unavailable

$ lsmod | grep isgx
isgx                   49152  1&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 30 May 2018 03:00:18 GMT</pubDate>
    <dc:creator>sherlock</dc:creator>
    <dc:date>2018-05-30T03:00:18Z</dc:date>
    <item>
      <title>How to unload isgx kernel module on Linux?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-unload-isgx-kernel-module-on-Linux/m-p/1131668#M1935</link>
      <description>&lt;P&gt;After installing SGX SDK, PSW, and kernel driver on Ubuntu 16.04. kernel&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;4.13.0-38-generic. I have run &lt;A href="https://github.com/digawp/hello-enclave" target="_blank"&gt;hello_world&lt;/A&gt;&amp;nbsp;SGX application successfully. Now when I want to remove the module, even forcefully, it throws me error saying that the module is in use. How can I stop the module and remove from the kernel?&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;$ sudo modprobe -r -f isgx
modprobe: FATAL: Module isgx is in use.

$ sudo rmmod isgx
rmmod: ERROR: Module isgx is in use

$ sudo rmmod -f isgx
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'isgx': Resource temporarily unavailable
rmmod: ERROR: could not remove module isgx: Resource temporarily unavailable

$ lsmod | grep isgx
isgx                   49152  1&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 May 2018 03:00:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-unload-isgx-kernel-module-on-Linux/m-p/1131668#M1935</guid>
      <dc:creator>sherlock</dc:creator>
      <dc:date>2018-05-30T03:00:18Z</dc:date>
    </item>
    <item>
      <title>Hi: </title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-unload-isgx-kernel-module-on-Linux/m-p/1131669#M1936</link>
      <description>&lt;P&gt;Hi:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Why don't you use uninstall.sh to remove sgx driver, the script is in path "/opt/intel/sgxdriver". You need to stop aesmd service first.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;you&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 09:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-unload-isgx-kernel-module-on-Linux/m-p/1131669#M1936</guid>
      <dc:creator>you_w_</dc:creator>
      <dc:date>2018-05-31T09:38:00Z</dc:date>
    </item>
    <item>
      <title>Quote:you w. wrote:</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-unload-isgx-kernel-module-on-Linux/m-p/1131670#M1937</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;you w. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Why don't you use uninstall.sh to remove sgx driver, the script is in path "/opt/intel/sgxdriver". You need to stop aesmd service first.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I don't find it at the path specified. But stopping aesmd did the trick. Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 03:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-unload-isgx-kernel-module-on-Linux/m-p/1131670#M1937</guid>
      <dc:creator>sherlock</dc:creator>
      <dc:date>2018-06-01T03:20:00Z</dc:date>
    </item>
  </channel>
</rss>

