summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 17:18:03 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 17:18:03 +0000
commit8ab518aec99d8ca064d612d434f79335e6770a6a (patch)
tree63e35b0dd29cb10abec7827efda4cae59b2d93f2 /sys/i386/linux
parentc4895a81f627d901e46a53c3b67c6ad6d4d52e59 (diff)
downloadFreeBSD-src-8ab518aec99d8ca064d612d434f79335e6770a6a.zip
FreeBSD-src-8ab518aec99d8ca064d612d434f79335e6770a6a.tar.gz
MFC r283467:
Call nosys in case when the incorrect syscall number is specified. Its my fault, fixed by mjg@ at r289055.
Diffstat (limited to 'sys/i386/linux')
-rw-r--r--sys/i386/linux/linux_sysvec.c3
-rw-r--r--sys/i386/linux/syscalls.master2
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index f27fad8..5ee9243 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -890,7 +890,8 @@ linux_fetch_syscall_args(struct thread *td, struct syscall_args *sa)
sa->args[5] = frame->tf_ebp; /* Unconfirmed */
if (sa->code >= p->p_sysent->sv_size)
- sa->callp = &p->p_sysent->sv_table[0];
+ /* nosys */
+ sa->callp = &p->p_sysent->sv_table[LINUX_SYS_MAXSYSCALL];
else
sa->callp = &p->p_sysent->sv_table[sa->code];
sa->narg = sa->callp->sy_narg;
diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master
index 6a3b85b..72325f6 100644
--- a/sys/i386/linux/syscalls.master
+++ b/sys/i386/linux/syscalls.master
@@ -583,3 +583,5 @@
346 AUE_NULL STD { int linux_setns(void); }
347 AUE_NULL STD { int linux_process_vm_readv(void); }
348 AUE_NULL STD { int linux_process_vm_writev(void); }
+; please, keep this line at the end.
+349 AUE_NULL UNIMPL nosys
OpenPOWER on IntegriCloud