You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
statvfs01 has 3 sub-test, out of which 2 are passed, and 1 failed i.e. 2nd sub-test
The test tries to create a file with Max length of filename (255), and it fails with EACCESS error
We also tried to create the file with different filename length, By specifying the filename length as 251, gramine is able to create the file and it does not throw the error, but if you try to create with filename length from 252 till 255 then gramine is failing with EACCESS error
Scenario 1:
valid_len is 251
TPASS: creat(valid_fname, 0444) returned fd 4
Scenario 2:
valid_len is 252
TFAIL: creat(valid_fname, 0444) failed: EACCES (13)
Scenario 3:
valid_len is 255
TFAIL: creat(valid_fname, 0444) failed: EACCES (13)
Steps to reproduce
Compile the attached test file and run with gramine-direct/gramine-sgx statvfs01.zip
Expected results
with valid_len as 255 the test should pass
TPASS: creat(valid_fname, 0444) returned fd 4
I confirm that this is a real bug. We didn't investigate yet why Gramine fails with EACCES on files with name length of 252 (I guess it has to do with file: prefix for the PAL layer).
Technically Gramine has support for ENAMETOOLONG, but it looks like these corner cases are never triggered, because Gramine code fails somewhere before those checks.
Description of the problem
statvfs01 has 3 sub-test, out of which 2 are passed, and 1 failed i.e. 2nd sub-test
The test tries to create a file with Max length of filename (255), and it fails with EACCESS error
We also tried to create the file with different filename length, By specifying the filename length as 251, gramine is able to create the file and it does not throw the error, but if you try to create with filename length from 252 till 255 then gramine is failing with EACCESS error
Scenario 1:
Scenario 2:
Scenario 3:
Steps to reproduce
Compile the attached test file and run with gramine-direct/gramine-sgx
statvfs01.zip
Expected results
with valid_len as 255 the test should pass
TPASS: creat(valid_fname, 0444) returned fd 4
Actual results
TFAIL: creat(valid_fname, 0444) failed: EACCES (13)
Gramine commit hash
1cf1f46
The text was updated successfully, but these errors were encountered: