<?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 SGX Enclave systemetically crashing after some PUT operations in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1549417#M6051</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I am using Intel SGX to build an in-memory confidential Key-Value Store with GET/PUT API.&lt;BR /&gt;I am using YCSB Benchmark to test its performance.&lt;BR /&gt;With Intensive GET operations, the application works just fine. But when I use PUT operations with secrets of 20 bytes for each, the enclave always crashes when I reach 7387 pushed secrets with the error "SGX_ERROR_ENCLAVE_CRASHED".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am working on an Azure VM with Ubuntu 20.0.4 (Linux kernel 5) and SGX SDK 2.19.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is my xml config file:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;EnclaveConfiguration&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;ProdID&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;ProdID&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&am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SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;TCSPolicy&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release --&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;DisableDebug&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;DisableDebug&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;MiscSelect&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;MiscSelect&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;MiscMask&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0xFFFFFFFF&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;MiscMask&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;EnclaveConfiguration&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I tried to increase my&amp;nbsp;HeapMaxSize, it worked for some time until pushing arround 14000 secrets, then it crashed. In next executions, it can store less secrets (5000 or less), that is quiet an inconsitent behavior.&lt;BR /&gt;&lt;BR /&gt;The main issue I am facing is that EPC pages' swapping seems disabled since I should be able to push far way more secrets. It would slow down performance but would not make the enclave crash.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The other issue I am facing is that EDMM seems disabled. It would allow me to dynamically allocate EPC pages without having to set a number for HeapMaxSize, right ?&amp;nbsp;&lt;BR /&gt;I have found that EDMM is only enabled for Linux kernel 6 or more, is it right ?&lt;BR /&gt;&lt;BR /&gt;I hope you could point me to some solution for my problem.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 23:43:54 GMT</pubDate>
    <dc:creator>aghia</dc:creator>
    <dc:date>2023-11-30T23:43:54Z</dc:date>
    <item>
      <title>SGX Enclave systemetically crashing after some PUT operations</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1549417#M6051</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am using Intel SGX to build an in-memory confidential Key-Value Store with GET/PUT API.&lt;BR /&gt;I am using YCSB Benchmark to test its performance.&lt;BR /&gt;With Intensive GET operations, the application works just fine. But when I use PUT operations with secrets of 20 bytes for each, the enclave always crashes when I reach 7387 pushed secrets with the error "SGX_ERROR_ENCLAVE_CRASHED".&lt;BR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&lt;/SPAN&gt;&lt;SPAN&gt;HeapMaxSize&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0x100000&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;HeapMaxSize&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;TCSNum&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;TCSNum&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;TCSPolicy&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;TCSPolicy&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release --&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;DisableDebug&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;DisableDebug&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;MiscSelect&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;MiscSelect&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;MiscMask&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0xFFFFFFFF&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;MiscMask&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;EnclaveConfiguration&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I tried to increase my&amp;nbsp;HeapMaxSize, it worked for some time until pushing arround 14000 secrets, then it crashed. In next executions, it can store less secrets (5000 or less), that is quiet an inconsitent behavior.&lt;BR /&gt;&lt;BR /&gt;The main issue I am facing is that EPC pages' swapping seems disabled since I should be able to push far way more secrets. It would slow down performance but would not make the enclave crash.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The other issue I am facing is that EDMM seems disabled. It would allow me to dynamically allocate EPC pages without having to set a number for HeapMaxSize, right ?&amp;nbsp;&lt;BR /&gt;I have found that EDMM is only enabled for Linux kernel 6 or more, is it right ?&lt;BR /&gt;&lt;BR /&gt;I hope you could point me to some solution for my problem.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 23:43:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1549417#M6051</guid>
      <dc:creator>aghia</dc:creator>
      <dc:date>2023-11-30T23:43:54Z</dc:date>
    </item>
    <item>
      <title>Re:SGX Enclave systemetically crashing after some PUT operations</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1549765#M6053</link>
      <description>&lt;P&gt;Hi aghia, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for reaching out to us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are checking this out and will update you as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Zulkifli &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Dec 2023 21:22:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1549765#M6053</guid>
      <dc:creator>Zulkifli_Intel</dc:creator>
      <dc:date>2023-12-01T21:22:53Z</dc:date>
    </item>
    <item>
      <title>Re:SGX Enclave systemetically crashing after some PUT operations</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550503#M6055</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hi Aghia,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;That’s correct that SGX EDMM support was not added to the Linux Kernel until v6.0. You should upgrade to the v6.0 kernel or later. Here is the reference for EDMM, "SGX EDMM support (v6.0 or later)" at&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/intel/sgx-emm" rel="noopener noreferrer" target="_blank" style="font-size: 14px;"&gt;https://github.com/intel/sgx-emm&lt;/A&gt;&lt;SPAN style="font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;For EDMM support, you need to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/intel/sgx-emm/tree/main#build-and-install-kernel-with-edmm-support" rel="noopener noreferrer" target="_blank" style="font-size: 14px;"&gt;Build and install the kernel with EDMM support&lt;/A&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;by following the instructions in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://wiki.ubuntu.com/KernelTeam/GitKernelBuild" rel="noopener noreferrer" target="_blank" style="font-size: 14px;"&gt;GitKernelBuild&lt;/A&gt;&lt;SPAN style="font-size: 14px;"&gt;. You can use cpuid | grep SGX2 command to confirm whether your platform supports EDMM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;On another note, the SGX_ERROR_ENCLAVE_CRASHED error may indicate the SGX enclaves run under heavy memory pressure. In Linux, there is sgx_emmt provided by sgx-gdb. You may search for the chapter "Enclave Memory Measurement Tool" in the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://download.01.org/intel-sgx/sgx-linux/2.13/docs/Intel_SGX_Developer_Reference_Linux_2.13_Open_Source.pdf" rel="noopener noreferrer" target="_blank" style="font-size: 14px;"&gt;Developer Reference&lt;/A&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;for more details. The tool helps to measure the usage of protected memory by enclave at runtime.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;You may also refer to this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.intel.com/content/dam/develop/external/us/en/documents/enclave-measurement-tool-intel-sgx-737361.pdf" rel="noopener noreferrer" target="_blank" style="font-size: 14px;"&gt;Enclave Memory Measurement Tool for Intel® Software Guard Extensions (Intel® SGX) Enclaves&lt;/A&gt;&lt;SPAN style="font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Aznie&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Dec 2023 02:07:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550503#M6055</guid>
      <dc:creator>Aznie_Intel</dc:creator>
      <dc:date>2023-12-05T02:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re:SGX Enclave systemetically crashing after some PUT operations</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550595#M6057</link>
      <description>Thank you for your answer.&lt;BR /&gt;&lt;BR /&gt;I indeed used sgx_emmt in sgx-gdb and this is the result I got, just after the enclave crashing when setting &amp;lt;HeapMaxSize&amp;gt;0x100000&amp;lt;/HeapMaxSize&amp;gt;(1MB):&lt;BR /&gt;&lt;BR /&gt;[Peak stack used]: 13 KB&lt;BR /&gt;[Peak heap used]: 972 KB&lt;BR /&gt;[Peak reserved memory used]: 0 KB&lt;BR /&gt;&lt;BR /&gt;And this is the result I got when setting &amp;lt;HeapMaxSize&amp;gt;0x1000000&amp;lt;/HeapMaxSize&amp;gt; (16MB) just before crashing:&lt;BR /&gt;[Peak stack used]: 13 KB&lt;BR /&gt;[Peak heap used]: 1160 KB&lt;BR /&gt;[Peak reserved memory used]: 0 KB&lt;BR /&gt;&lt;BR /&gt;I almost store the same amount secrets for both settings before enclave crashing while HeapMaxSize is way higher in the second case. It seems ineffective to increase HeapMaxSize in my case to improve enclave storage.&lt;BR /&gt;Why such a behaviour ?&lt;BR /&gt;&lt;BR /&gt;Also, why do you mean by memory pressure ? Is it lot of writes in short period of time ? If so, would it mean that increasing HeapMaxSize wouldn't help to tackle this issue ?&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Dec 2023 08:10:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1550595#M6057</guid>
      <dc:creator>aghia</dc:creator>
      <dc:date>2023-12-05T08:10:40Z</dc:date>
    </item>
    <item>
      <title>Re:SGX Enclave systemetically crashing after some PUT operations</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1558041#M6079</link>
      <description>&lt;P&gt;Hi Aghia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there is a memory leak in your code. You can try to check the general memory usage of your application until it crashes to find the leak. It could also be that the memory limit of what the VM provides is reached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On another note, there are Azure VMs with Ubuntu 22.04&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aznie&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Dec 2023 03:17:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-Enclave-systemetically-crashing-after-some-PUT-operations/m-p/1558041#M6079</guid>
      <dc:creator>Aznie_Intel</dc:creator>
      <dc:date>2023-12-28T03:17:18Z</dc:date>
    </item>
  </channel>
</rss>

