<?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 Re:Multiple file i/o inside enclave in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1263180#M4362</link>
    <description>&lt;P&gt;&lt;B&gt;This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Mar 2021 20:46:09 GMT</pubDate>
    <dc:creator>JesusG_Intel</dc:creator>
    <dc:date>2021-03-10T20:46:09Z</dc:date>
    <item>
      <title>Multiple file i/o inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1258807#M4340</link>
      <description>&lt;P&gt;I have a code block similar to this running on SDK2.13&lt;/P&gt;
&lt;P&gt;main()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;while(1)&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;do_work_inside_sgx()&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;do_work_inside_sgx()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;SGX_FILE *fp1;&lt;/P&gt;
&lt;P&gt;open( fp1) &lt;BR /&gt;write_something(fp1)&lt;BR /&gt;close(fp1)&lt;/P&gt;
&lt;P&gt;open(fp1)&lt;BR /&gt;read_from(fp1);&lt;BR /&gt;use_the _date_read_from_fp1()&lt;BR /&gt;close(fp1)&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;The while loop in some arbitrary iteration sometimes says that "error opening file". Do you see anything wrong in the above code?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 11:44:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1258807#M4340</guid>
      <dc:creator>das__batsayan</dc:creator>
      <dc:date>2021-02-24T11:44:26Z</dc:date>
    </item>
    <item>
      <title>Re:Multiple file i/o inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1258883#M4341</link>
      <description>&lt;P&gt;Hello das_batsayan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Did you use the Intel Protected File System Library as described in the Intel SGX Developer Reference Guide for&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/download/sgx-sdk-developer-reference-windows.html" rel="noopener noreferrer" target="_blank"&gt;Windows&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&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"&gt;Linux&lt;/A&gt;?&lt;/LI&gt;&lt;LI&gt;Which OS are you on?&lt;/LI&gt;&lt;LI&gt;Did you capture any returned error codes?&lt;/LI&gt;&lt;LI&gt;Send more details on your code so we can more clearly see what it is doing.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Feb 2021 16:43:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1258883#M4341</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-02-24T16:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Multiple file i/o inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1260615#M4348</link>
      <description>&lt;P&gt;1. Yes&lt;BR /&gt;2. Ubuntu 18.04&lt;BR /&gt;3. Yes, error code is 0x3001. It is SGX_ERROR_MAC_MISMATCH, found this in sgx_error.h&lt;BR /&gt;4. The basic code tries to read from a file in a infinite loop. First few iterations of the loop is OK, but after some time ( say after 8000th iteration of the loop) got error code 0x3001&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 10:59:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1260615#M4348</guid>
      <dc:creator>das__batsayan</dc:creator>
      <dc:date>2021-03-02T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re:Multiple file i/o inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1260857#M4349</link>
      <description>&lt;P&gt;Hello das_batsayan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Your pseudocode shows that you try to open and close the file twice within the loop. Do you know which fopen is causing the error? Have you tried doing only a single open, read, close within the loop without the write?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To aid in your debugging, you can &lt;A href="https://github.com/intel/linux-sgx#build-the-intelr-sgx-sdk-and-intelr-sgx-sdk-installer" rel="noopener noreferrer" target="_blank"&gt;build the SGX SDK with debug symbols&lt;/A&gt; and you can step into the SDK code to see exactly where that error gets generated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It would help if you provided your actual code. If you do not want to provide the code via this public forum, let me know and I can send you a private email where you can send me your code and we can continue this troubleshooting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Mar 2021 01:51:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1260857#M4349</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-03-03T01:51:43Z</dc:date>
    </item>
    <item>
      <title>Re:Multiple file i/o inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1262479#M4358</link>
      <description>&lt;P&gt;Hello das_batsayan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you still need help with this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2021 21:59:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1262479#M4358</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-03-08T21:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Multiple file i/o inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1262609#M4360</link>
      <description>&lt;P&gt;We debugged the code as suggested by you and found one missing&amp;nbsp;OPENSSL_free() API call in the application code which causes the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue can be closed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Batsayan&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:20:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1262609#M4360</guid>
      <dc:creator>das__batsayan</dc:creator>
      <dc:date>2021-03-09T06:20:16Z</dc:date>
    </item>
    <item>
      <title>Re:Multiple file i/o inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1263180#M4362</link>
      <description>&lt;P&gt;&lt;B&gt;This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Mar 2021 20:46:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Multiple-file-i-o-inside-enclave/m-p/1263180#M4362</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-03-10T20:46:09Z</dc:date>
    </item>
  </channel>
</rss>

