kernel buff overflow
gerarra at tin.it
gerarra at tin.it
Sun Sep 19 06:05:01 PDT 2004
Maybe you would appreciate more something like that:
===================================
> 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_ARGS)
+ return E2BIG;
+#endif
+
if (*offset == NO_SYSCALL) {
int i;
More information about the freebsd-hackers
mailing list