freebsd-skq/lib/libc/sys
dillon 7a2987cf94 Fix null-pointer dereference crash when the system is intentionally
run out of KVM through a mmap()/fork() bomb that allocates hundreds
    of thousands of vm_map_entry structures.

    Add panic to make null-pointer dereference crash a little more verbose.

    Add a new sysctl, vm.max_proc_mmap, which specifies the maximum number
    of mmap()'d spaces (discrete vm_map_entry's in the process).  The value
    defaults to around 9000 for a 128MB machine.  The test is scaled for the
    number of processes sharing a vmspace (aka linux threads).  Setting
    the value to 0 disables the feature.

PR: kern/16573
Approved by: jkh
2000-02-16 21:11:33 +00:00
..
__error.c
_exit.2
accept.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
access.2
acct.2
adjtime.2
aio_cancel.2
aio_error.2 Fixed missing `const' in synopsis. 1999-12-23 16:46:34 +00:00
aio_read.2
aio_return.2
aio_suspend.2
aio_write.2
bind.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
brk.2
chdir.2
chflags.2
chmod.2
chown.2
chroot.2
clock_gettime.2
close.2
connect.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
dup.2
execve.2
fcntl.2
fhopen.2 Fixed wrong #include in synopsis. 1999-12-23 16:48:57 +00:00
flock.2
fork.2
fsync.2
ftruncate.c
getdirentries.2
getdtablesize.2
getfh.2
getfsstat.2
getgid.2
getgroups.2
getitimer.2
getlogin.2 Document the getlogin_r function. 1999-11-28 22:41:50 +00:00
getpeername.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
getpgrp.2
getpid.2
getpriority.2
getrlimit.2 Add RLIMIT_SBSIZE here, too. 1999-12-03 23:25:14 +00:00
getrusage.2
getsid.2
getsockname.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
getsockopt.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
gettimeofday.2
getuid.2
intro.2
ioctl.2
issetugid.2
jail.2 Fix a typo which I cannot believe I missed after rereading this text 1999-12-21 11:55:44 +00:00
kill.2
kldfind.2
kldfirstmod.2
kldload.2
kldnext.2
kldstat.2
kldunload.2
ktrace.2
link.2
listen.2
lseek.2
lseek.c
madvise.2 Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC to 1999-12-12 03:19:33 +00:00
Makefile.inc Fixed missing backslash in previous commit. Adding setresuid.2 has taken 2000-01-18 05:38:05 +00:00
mincore.2
minherit.2
mkdir.2
mkfifo.2
mknod.2
mlock.2
mmap.2 Fix null-pointer dereference crash when the system is intentionally 2000-02-16 21:11:33 +00:00
mmap.c
mount.2
mprotect.2
msync.2 We _do_ support MS_ASYNC 2000-01-24 18:35:16 +00:00
munmap.2
nanosleep.2
nfssvc.2 Sync contents of struct nfsd_svrargs 2000-01-09 01:54:35 +00:00
open.2
pathconf.2
pipe.2
poll.2
pread.c
profil.2
ptrace.2 Document the support in the kernel for hardware debug registers on the 2000-02-12 18:33:54 +00:00
pwrite.c
quotactl.2
read.2
readlink.2
reboot.2
recv.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
rename.2
revoke.2
rfork.2
rmdir.2
rtprio.2
sched_get_priority_max.2
sched_setparam.2
sched_setscheduler.2
sched_yield.2
select.2 Clarify that we don't offer hard realtime. 2000-01-24 02:13:21 +00:00
semctl.2
semget.2
semop.2
send.2 General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
sendfile.2
setgroups.2
setpgid.2
setregid.2
setresuid.2 Add HISTORY. 2000-01-18 12:50:13 +00:00
setreuid.2
setsid.2
setuid.2
shmat.2
shmctl.2
shmget.2
shutdown.2
sigaction.2 Document SA_SIGINFO 1999-12-15 16:51:35 +00:00
sigaltstack.2
sigpending.2
sigprocmask.2
sigreturn.2
sigstack.2
sigsuspend.2
socket.2 Add reference to netgraph(4) in the 'see also' section. 1999-12-06 23:35:40 +00:00
socketpair.2
stat.2
statfs.2
swapon.2
symlink.2
sync.2
sysarch.2
syscall.2
truncate.2
truncate.c
umask.2
undelete.2
unlink.2
utimes.2
vfork.2
wait.2
write.2