On 3/18/21 10:40 AM, Borislav Petkov wrote:
> So both patches look ok to me but the sgx test case fails on -rc3 with and
> without those patches on my box:
> 
> ./test_sgx 
> 0x0000000000000000 0x0000000000002000 0x03
> 0x0000000000002000 0x0000000000001000 0x05
> 0x0000000000003000 0x0000000000003000 0x03
> mmap() failed, errno=1.

I usually get that after I reboot.  I have to do this:

        chmod 755 /dev/sgx_enclave
        mount -o remount,exec /dev

BTW, that *IS* going to get tripped over all the time.  The selftest
needs a better error message.  I'll send a patch.

Reply via email to