1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00
freebsd/sys/compat/freebsd32
Pawel Jakub Dawidek 3a996d6e91 Do not allocate memory based on not-checked argument from userland.
It can be used to panic the kernel by giving too big value.
Fix it by moving allocation and size verification into kern_getfsstat().
This even simplifies kern_getfsstat() consumers, but destroys symmetry -
memory is allocated inside kern_getfsstat(), but has to be freed by the
caller.

Found by:	FreeBSD Kernel Stress Test Suite: http://www.holm.cc/stress/
Reported by:	Peter Holm <peter@holm.cc>
2005-06-11 14:58:20 +00:00
..
freebsd32_misc.c Do not allocate memory based on not-checked argument from userland. 2005-06-11 14:58:20 +00:00
freebsd32_proto.h Rebuild generated system call definition files following the addition of 2005-05-30 15:20:21 +00:00
freebsd32_syscall.h Rebuild generated system call definition files following the addition of 2005-05-30 15:20:21 +00:00
freebsd32_syscalls.c Rebuild generated system call definition files following the addition of 2005-05-30 15:20:21 +00:00
freebsd32_sysent.c Rebuild generated system call definition files following the addition of 2005-05-30 15:20:21 +00:00
freebsd32_util.h Eliminate stackgap usage for the (woefully incomplete) path translations 2003-12-23 02:48:11 +00:00
freebsd32.h Catch up to the not-so-recent statfs(2) changes. 2004-04-14 23:17:37 +00:00
Makefile Begin attempting to consolidate the two different i386 emulations 2003-08-22 22:51:48 +00:00
syscalls.conf GC unused 'syshide' override to /dev/null. This was here to disable 2003-12-24 00:32:07 +00:00
syscalls.master Introduce a new field in the syscalls.master file format to hold the 2005-05-30 15:09:18 +00:00