lsds / sgx-lkl

SGX-LKL Library OS for running Linux applications inside of Intel SGX enclaves

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File systems unmounted using MNT_DETACH may become inconsistent

prp opened this issue · comments

We currently unmount the root file system using the MNT_DETACH option, otherwise we sometimes observe hanging behaviour (despite the timeout):

res = lkl_umount_timeout("/", MNT_DETACH, UMOUNT_DISK_TIMEOUT);

We should check that this always cleanly unmounts the file systems and does not lead to data loss. It also not clear that the code correctly unmounts the entire file system hierarchy.

do we know if any tests hit this issue?
Does it need to be fixed by September? I am assuming not.

Didn't @jxyang report that he wrote to a file in the root file system, and this wasn't persisted across SGX-LKL restarts? We should add a CI test that checks that we are persisting root file system changes correctly.

@prp I believe you mean: #713

anyone think this is not p2?