gramineproject / graphene

Graphene / Graphene-SGX - a library OS for Linux multi-process applications, with Intel SGX support
https://grapheneproject.io
GNU Lesser General Public License v3.0
771 stars 261 forks source link

[LTP] Some tests don't report any results at all under Graphene #2549

Open anjalirai-intel opened 3 years ago

anjalirai-intel commented 3 years ago

Description of the problem

In this test multiple files and directories are created with different users and permissions and there are total of 199 testcases that verify the accessibility of the files and directories. Currently only those testcases which check for for both (nobody and root) user are getting passed. The testcases which are of nobody user throws exception: TBROK: Test haven't reported results! There are testcases which are of root user gets failed.

If the test is run with all 199 testcases, it fails with "TBROK: Test 12 haven't reported results!"

Steps to reproduce

Execute attached files access01_setup in linux environment and access01_run with graphene-direct $ ./access01_setup $ graphene-direct ./access01_run

Label

bug

access01.zip

Updated access01_run.c has been attached

access01_run.zip

mkow commented 3 years ago

File permissions are not supported in Graphene.

dimakuv commented 3 years ago

The real issue here is that these LTP tests do not report any results (no TFAIL, no errors) and this leads to LTP outputting a general TBROK message. Need to investigate why this happens on LTP (does Graphene "hide" any error messages?).

mkow commented 3 years ago

I'd assume it's just a bug in LTP, but we can investigate it if you want.

jkr0103 commented 3 years ago

Please assign to me.

jkr0103 commented 3 years ago

Tests with message "TBROK: Test haven't reported results!" are executing in a forked process. Results of the tests are written by forked process on a shared memory for parent process to read but same is not being reflected in parent process. This happens because graphene (graphene-direct and graphene-sgx) doesn't support shared memory.