summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2004-05-14use pool for namei pathbuf. testing ok millert@ tdeval@Ted Unangst
2004-05-10when doing user mounts, inherit the MNT_NOEXEC flag from the coveredPedro Martelletto
vnode's mount point. this makes it impossible for a user to bypass the noexec protection of a mount point by null-mounting it on top of itself. ok tedu@ millert@
2004-05-05Regen, spotted by form@pdp-11.org.ru.Alexander Yurchenko
ok miod@
2004-05-04Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.Alexander Yurchenko
This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
2004-05-03regenTodd C. Miller
2004-05-03POSIX says the length parameter for semop(2) and shmget(2) should be size_t.Todd C. Miller
Create new syscalls with the correct parameters and add compat versions for the old ones under COMPAT_35.
2004-04-25change sb_mbmax to: (sb_max/MCLBYTES) * (MSIZE+MCLBYTES); ok deraadtMarkus Friedl
CV ----------------------------------------------------------------------
2004-04-25fix typos/spelling in comments, from pedro martellettoJolan Luff
2004-04-25radix tree with multipath support. from kame. deraadt okJun-ichiro itojun Hagino
user visible changes: - you can add multiple routes with same key (route add A B then route add A C) - you have to specify gateway address if there are multiple entries on the table (route delete A B, instead of route delete A) kernel change: - radix_node_head has an extra entry - rnh_deladdr takes extra argument TODO: - actually take advantage of multipath (rtalloc -> rtalloc_mpath)
2004-04-19introduce a new km_page allocator that gets pages from kernel_map usingTed Unangst
an interrupt safe thread. use this as the new backend for mbpool and mclpool, eliminating the mb_map. introduce a sysctl kern.maxclusters which controls the limit of clusters allocated. testing by many people, works everywhere but m68k. ok deraadt@ this essentially deprecates the NMBCLUSTERS option, don't use it. this should reduce pressure on the kmem_map and the uvm reserve of static map entries.
2004-04-19also use sbcheckreserve() for setsockopt of SO_SNDBUF and SO_RCVBUFTheo de Raadt
2004-04-19this is only a work in progress, we can perfect afterwards, but it is timeTheo de Raadt
to get some experience with these ideas. add sbcheckreserve() api; called by accepting sockets. if over 95% of mbuf clusters are busy, consider this a resource starvation just like the other reasons for accept failing. also, if over 50% of mbuf clusters are busy, shrink recv & send sockbuf reserves to "the minimum".
2004-04-17Don't forget to apply the M_CLUSTER flag when copying flags in m_pullup2().Ryan Thomas McBride
Fixes pr3740. Confirmed with pb@, ok markus@.
2004-04-16not a pasto. ok millert@Ted Unangst
2004-04-15rework access to emulations slightly in an effort to both merge andTed Unangst
separate exec format from emulation. consistent naming of freebsd emuls. not much in the way of functional changes yet. testing and ok deraadt@ and others along the way.
2004-04-13useless caddr_t cast removal. same md5s.Ted Unangst
2004-04-12make sockargs take void *, combine a len check.Ted Unangst
from pedro martelletto, ok markus@
2004-04-11Crank max ptys to 992. We now have 62 pty/tty pairs for each letterTodd C. Miller
instead of 16. E.g. it is now /dev/{p,t}typ[0-9a-zA-z] instead of just /dev/{p,t}typ[0-9a-f]. This requires that you update MAKEDEV and run: # cd /dev && ./MAKEDEV pty0 && rm -f [pt]ty[rq]*
2004-04-11Fix calculation of the index into TTY_LETTERS. This only workedTodd C. Miller
because sizeof(TTY_LETTERS) == sizeof(TTY_SUFFIX).
2004-04-06fix siginfo generation for posted signals and avoid double ktrpsig() call ↵Michael Shalayeff
for the same signal; deraadt@ ok
2004-04-02rfork(RFMEM) shares complete vmspace. much more useful, and in line withTed Unangst
other projects' implementations.
2004-04-01use NULL for ptrs. parts from Joris VinkTed Unangst
2004-04-01init kqueues normally, from pedro martellettoTed Unangst
2004-03-20one proc.h is sufficientTed Unangst
2004-03-19check for CLOCAL flag in right variable; from sq@oganer.netTheo de Raadt
2004-03-17Add missing open paren in comment noticed by jmc@Todd C. Miller
2004-03-17Adjust the number of processes waiting on a semaphore properly if we'reTodd C. Miller
woken up in the middle of sleeping; cperciva@freebsd.org. OK deraadt@
2004-03-14nicer printf for copyright. from Pedro MartellettoTed Unangst
2004-03-13sync comments with reality, semconfig is long gone.Ted Unangst
2004-03-12don't leak memory on error, from Patrick LatifiTed Unangst
ok deraadt@ millert@
2004-03-03better way of finding and identifying lkms.Ted Unangst
adapted from pr2910 by peter werner, minus lkmfree removals since i couldn't tell what issue they were fixing.
2004-02-29Check for negative numbers.Tobias Weingartner
ok grange@
2004-02-28RegenMiod Vallat
2004-02-28Rather than adding amd64 to the 64-bit platform which do not require theMiod Vallat
old COMPAT_10 SysV syscalls, check for __LP64__ instead. ok deraadt@
2004-02-27Move setperf_prio to the machdep code, requested by deraadt@Alexander Yurchenko
ok deraadt@
2004-02-27Introduce simple priorities mechanism so that concurrentAlexander Yurchenko
hw.setperf handlers don't override each other. Problem reported and tested by danh@. ok tedu@ deraadt@
2004-02-24sysctl knob for bpf tunables. some tips from canacar@Ted Unangst
ok canacar@ deraadt@ mcbride@
2004-02-23Make sure we allow for the time when check_pty has not yet been calledBob Beck
before we get invoked, by making sure getfree thinks an unused and unallocated pt_softc entry is actually free rather than following NULL. ok cedric@
2004-02-15add sysctl_int_arr() API similar to BSD/OS; ok itojun, deraadt, miod, henningMarkus Friedl
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-02-15pretty code that's easier to read, same effect.Ted Unangst
from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-02-14Simplify hw.{cpuspeed,setperf} api moving all the sysctl stuffAlexander Yurchenko
from the underlying callbacks. Testing hppa mickey@, ppc drahn@ Ok markus@ tedu@
2004-02-10Fix off-by-one wrt TTY_LETTERS and minor being out of bounds. MissedTodd C. Miller
when I fixed the other TTY_LETTERS/TTY_SUFFIX off-by-ones.
2004-02-10Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGETTodd C. Miller
ioctl(2), an unprivileged process may allocate a pty and have its owner and mode set appropriately. This means that programs such as xterm and screen no longer need to be setuid. Programs using the openpty() function require zero changes and will "just work". Designed by beck@ and deraadt@; changes by beck@ with cleanup (and a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me. Tested by many.
2004-02-10Dynamically allocate space for ptys; adapted from NetBSD by beck@Todd C. Miller
2004-02-08restored & repaired wcookie support; kettenis@chello.nlTheo de Raadt
2004-02-05Decrement reference count in error case if uvm_map(9) fails and weTodd C. Miller
had previously increased the reference count. Should not happen, but... From dhartmei@; ok deraadt@
2004-02-05Correct a reference counting bug in shmat(2); adapted from FreeBSD.Todd C. Miller
OK deraadt@ tedu@ dhartmei@
2004-02-01Grok union like struct in genassym.cf. Will be needed shortly.Miod Vallat
2004-01-29The Sxxx proc state defines start at 1, not 0. Also make the constTodd C. Miller
usage more correct and fix a signed/unsigned format mismatch. Based on a patch from Patrick Latifi. OK deraadt@