set_robust_list: Add error check

set_robust_list is not supported by McKernel.

Change-Id: I1f679e2e4df24139cceb1f2294bc072cb7956002
Refs: 1399
This commit is contained in:
Ken Sato
2020-07-02 08:58:29 +09:00
committed by Masamichi Takagi
parent ebc91cea0e
commit b44b11ace7
7 changed files with 155 additions and 1 deletions

View File

@ -3531,9 +3531,15 @@ SYSCALL_DECLARE(setpgid)
/* Ignore the registration by start_thread() (in pthread_create.c)
because McKernel doesn't unlock mutex-es held by the thread which has been killed. */
#define ROBUST_LIST_HEAD_SIZE 24
SYSCALL_DECLARE(set_robust_list)
{
// Palliative fix. wait for impl.
size_t len = (size_t)ihk_mc_syscall_arg1(ctx);
if (len != ROBUST_LIST_HEAD_SIZE) {
return -EINVAL;
}
return 0;
}