Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LibOS/tests] Fix openmp manifest to add shm tmpfs
Based on this suggestion by Dmitrii Kuvaiskii: > @fwoodruff This is a known issue in some versions of `libomp` (the > LLVM implementation of OpenMP), and I think also in `libiomp` (Intel > implementation of OpenMP). > > You can read about this bug here: > > * [llvm/llvm-project@dafebd5](llvm/llvm-project@dafebd5) > * [llvm/llvm-project@102d864](llvm/llvm-project@102d864) > > IIUC, it was completely fixed in LLVM OpenMP v18.1.0. I don't know > whether and how it was fixed in `libiomp`. > > I would dissuade you from trying @kailun-qin workaround of enabling > `untrusted_shm`. Instead, you can do this simple workaround: > > ``` > fs.mounts = [ > ..., > { type = "tmpfs", path = "/dev/shm" }, > ] > ``` > > This way you are guaranteed that whatever files the OpenMP library > creates in `/dev/shm/`, these files will **not** be visible on the > host. So security of your application remains intact. (#1780 (comment)) Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
- Loading branch information