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

chroot syscall fails with Internal Memory Fault #2548

Closed anjalirai-intel closed 3 years ago

anjalirai-intel commented 3 years ago

Description of the problem

chroot syscall fails with Internal Memory Fault

Steps to reproduce

Execute attached files chroot03_setup in linux environment and chroot03_run with graphene-direct $ ./chroot03_setup $ graphene-direct ./chroot03_run

Expected results

chroot03 1 TPASS : failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long chroot03 2 TPASS : failed as expected: TEST_ERRNO=ENOTDIR(20): Not a directory chroot03 3 TPASS : failed as expected: TEST_ERRNO=ENOENT(2): No such file or directory chroot03 4 TPASS : failed as expected: TEST_ERRNO=EFAULT(14): Bad address chroot03 5 TPASS : failed as expected: TEST_ERRNO=ELOOP(40): Too many levels of symbolic links

Actual results

chroot03 1 TPASS : failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long chroot03 2 TPASS : failed as expected: TEST_ERRNO=ENOTDIR(20): Not a directory chroot03 3 TPASS : failed as expected: TEST_ERRNO=ENOENT(2): No such file or directory [P10839:T1:chroot03_run] error: Internal memory fault at 0xffffffffffffffff (IP = +0x2b954, VMID = 10839, TID = 1)

Label

bug

chroot03.zip