syscall: set -ENOSYS to syscall_return before calling ptrace_syscall_enter

refs #943
This commit is contained in:
Tomoki Shirasawa
2017-09-26 14:25:49 +09:00
parent a2fbe99b60
commit df3f388e09
3 changed files with 27 additions and 3 deletions

View File

@@ -9928,7 +9928,9 @@ long syscall(int num, ihk_mc_user_context_t *ctx)
cpu_enable_interrupt();
if (cpu_local_var(current)->proc->ptrace) {
ihk_mc_syscall_ret(ctx) = -ENOSYS;
ptrace_syscall_enter(cpu_local_var(current));
num = ihk_mc_syscall_number(ctx);
}
#if 0