syscall: set -ENOSYS to syscall_return before calling ptrace_syscall_enter
refs #943
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user