ソースを参照

[Pal/Linux-SGX] db_pipes.c: fix segfault due to redundant deletion of pipe

During Graphene initialization, a "server" pipe is created by the IPC thread.
Previously, upon app exit, Graphene's Linux-SGX PAL removed this named pipe.
However, this is not needed and led to occasional segfaults. (Note that Linux
PAL never had this code). This commit simply removes the offending code.
Dmitrii Kuvaiskii 6 年 前
コミット
2d937d394d
1 ファイル変更0 行追加7 行削除
  1. 0 7
      Pal/src/host/Linux-SGX/db_pipes.c

+ 0 - 7
Pal/src/host/Linux-SGX/db_pipes.c

@@ -284,13 +284,6 @@ static int pipe_delete(PAL_HANDLE handle, int access) {
         }
     }
 
-    if (IS_HANDLE_TYPE(handle, pipesrv)) {
-        char buffer[108];
-        pipe_path(handle->pipe.pipeid, buffer, 108);
-        ocall_delete(buffer);
-        return 0;
-    }
-
     if (handle->pipe.fd == PAL_IDX_POISON)
         return 0;