linuxolator: fix nosys() to not send SIGSYS

(cherry picked from commit 7acc4240ce00af540093b47ad00be0508310b515)
This commit is contained in:
Konstantin Belousov 2023-09-25 19:39:48 +03:00
parent 3911b00c0a
commit 9a077205ca
2 changed files with 2 additions and 2 deletions

View file

@ -159,7 +159,7 @@ linux_fetch_syscall_args(struct thread *td)
if (sa->code >= p->p_sysent->sv_size)
/* nosys */
sa->callp = &p->p_sysent->sv_table[p->p_sysent->sv_size - 1];
sa->callp = &nosys_sysent;
else
sa->callp = &p->p_sysent->sv_table[sa->code];

View file

@ -531,7 +531,7 @@ linux32_fetch_syscall_args(struct thread *td)
if (sa->code >= p->p_sysent->sv_size)
/* nosys */
sa->callp = &p->p_sysent->sv_table[p->p_sysent->sv_size - 1];
sa->callp = &nosys_sysent;
else
sa->callp = &p->p_sysent->sv_table[sa->code];