Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 2004 15:04:59 +0200
From:      gerarra@tin.it
To:        freebsd-hackers@freebsd.org
Subject:   kernel buff overflow
Message-ID:  <4146316C0000AD08@ims3a.cp.tin.it>

next in thread | raw e-mail | index | archive | help
Maybe you would appreciate more something like that:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

> cat kern_syscalls.diff
--- kern_syscalls.c     Sat Sep 18 13:42:21 2004
+++ kern_syscalls2.c    Sun Sep 19 14:59:27 2004
@@ -58,6 +58,12 @@
 syscall_register(int *offset, struct sysent *new_sysent,
                 struct sysent *old_sysent)
 {
+
+#ifdef __i386__
+        if (new_sysent->sy_narg < 0 || new_sysent->sy_narg > i386_SYS_AR=
GS)
+                return E2BIG;
+#endif
+
        if (*offset =3D=3D NO_SYSCALL) {
                int i;




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4146316C0000AD08>