1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/sys/alpha
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
..
alpha Introduce a procedure, pmap_page_init(), that initializes the 2005-06-10 03:33:36 +00:00
compile
conf Until someone who owns the various TGA-based cards has time to fix the 2005-06-06 10:53:10 +00:00
include MFP4: 2005-06-09 19:45:09 +00:00
isa Remove bus_{mem,p}io.h and related code for a micro-optimization on i386 2005-05-29 04:42:30 +00:00
linux Regen after addition of linux_getpriority wrapper. 2005-06-08 20:47:30 +00:00
mcbus Begin all license/copyright comments with /*- or #- 2005-01-05 20:05:52 +00:00
osf1 Do not allocate memory based on not-checked argument from userland. 2005-06-11 14:58:20 +00:00
pci add cpu_idle support for 21066A based lca systems 2005-01-31 23:07:42 +00:00
tlsb Begin all license/copyright comments with /*- or #- 2005-01-05 20:05:52 +00:00
Makefile