summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2001-01-16Add a check for MNT_NOEXEC that was in exec_elf.c but not here.Artur Grabowski
I am not sure if it is necessary, but it will not hurt either.
2001-01-15update from netbsd:Jason Wright
several fixes with regards to boundary cases and other fixes
2001-01-04Return a kmembuckets structure, rather than individual items, since they may beAngelos D. Keromytis
out of sync between consecutive calls of sysctl(3).
2001-01-04sysctl_quad/sysctl_rdquad, and "malloc" node in kern sysctlAngelos D. Keromytis
2001-01-04sysctl_malloc()Angelos D. Keromytis
2001-01-012001Aaron Campbell
2000-12-14NATIVE_ELF -> NATIVE_EXEC_ELF (this is what userland uses andArtur Grabowski
what is defined in machine/exec.h
2000-12-05Bring in fresh pool from NetBSD. Some improvements and fixes.Artur Grabowski
2000-11-21support for kernel events on vnodes, from jlemon@freebsd.org, okay art@Niels Provos
2000-11-18better permission check; okay art@, millert@Niels Provos
2000-11-17calculate timeouts correctly, simpler.Niels Provos
2000-11-17correct timersubNiels Provos
2000-11-16rcsid; fix comment; lots of bad tabs and spacesMichael Shalayeff
2000-11-16syncNiels Provos
2000-11-16support kernel event queues, from FreeBSD by Jonathan Lemon,Niels Provos
okay art@, millert@
2000-11-10Change the ktrace interface functions from taking the trace vnode to taking theArtur Grabowski
traced proc. The vnode is in the proc and all functions need the proc.
2000-11-10seperate -> separate, okay aaron@Niels Provos
2000-11-09PHOLD/PRELE instead manual fiddling with p_holdcntArtur Grabowski
2000-11-09Use PHOLD/PRELE instead of manually fiddling with p_holdcnt.Artur Grabowski
2000-11-08Cleanup.Artur Grabowski
Zap COMPAT_09. Don't duplicate creds unless necessary.
2000-11-08If MD code has defined curproc, don't do it here.Artur Grabowski
This is not a perfect solution.
2000-11-07No need for extern struct proc *curproc.Artur Grabowski
2000-11-06Don't bomb when the length of pagedvn vm_cmd is not page aligned.Artur Grabowski
Other commands were checked and look safe.
2000-10-12allow buflen > MLEN for !SO_NAME case (like ancillary data, necessary forJun-ichiro itojun Hagino
IPv6 advanced API). sync with netbsd.
2000-10-10implement ppsratecheck(9). from netbsd.Jun-ichiro itojun Hagino
refer mono_time only once in ratecheck(9).
2000-09-28When allocating the unallocated file descriptors 0, 1 and 2 for suid execs,Artur Grabowski
don't do it by doing namei on /dev/null. The vnode for the executed file is locked and we had a race where other processes could lock the parent directories up to the root. When the executing process did the lookup on /dev/null it could deadlock on the root vnode while still holding the lock on the executed vnode. Also, it's really bad idea to depend on certain filesystem layout inside the kernel. Now we get the null device vnode by cdevvp(getnulldev(), ... Thanks to Matrin Portmann <map@infinitum.ch> for providing the (large) ktrace that allowed me to track this down. Fixes 1369.
2000-09-27replace MALLOC/FREE w/ malloc/free for non-constant-sized memory ↵Michael Shalayeff
allocations; art@ ok
2000-09-27Minimal optimization.Artur Grabowski
2000-09-26Don't use MALLOC/FREE on variable sized allocations.Artur Grabowski
2000-09-24prevent memory leak in fdalloc; fix by greg@nest.cxNiels Provos
2000-09-20Off by one in a validity checkNiklas Hallqvist
2000-09-12o add missing getsid() prototypeTodd C. Miller
o fix typo in getsid() that broke getsid(pid) where pid != 0 o cause getsid() and getpgid() to return EPERM if requesting the id of a session/process group not in the current session o check for NULL session in getsid() for exiting processes
2000-09-12regenTodd C. Miller
2000-09-12sys_getsid() and sys_getpgid() return pid_t, not int (though pid_t *is*Todd C. Miller
an int so this didn't break anything).
2000-09-12NATM domain; stoklund@taxidriver.dkTheo de Raadt
2000-09-07On resume run the powerhook in installation order.Artur Grabowski
(the powerhooks were always run in reverse order).
2000-09-07Put powerhooks on a CIRCLEQ instead of LIST.Artur Grabowski
Use FOREACH macros instead of walking the list manually.
2000-09-07Run powerhooks at splhigh.Artur Grabowski
2000-09-05Wrap power hooks in splimp(), fixes WaveLAN suspend problem; thanks art@Aaron Campbell
2000-08-31re-org ecoff headers. move some declarations from exec_ecoff.c to exec_ecoff.hEric Jackson
so they can be used for osf1 emul.
2000-08-23Move the updating of timeout queues to after ticks is incremented.Artur Grabowski
The older code actually ensured that no timeout would be too early, but it violated the principle of least surprise by making it seem (when you looked at the time variable) that every timeout was one tick late. Also periodic timeouts (that readd themselves in the timeout function), will now happen with the frequency you expect.
2000-08-08permit changing flagsTheo de Raadt
2000-08-04clear rings before freeing themTheo de Raadt
2000-08-04KNFTheo de Raadt
2000-08-03s/principal/priciple/; from netbsdMichael Shalayeff
2000-07-19Many drivers use a timeout on ttrstrt, make this a generic interface.Artur Grabowski
2000-07-17art, at least commit something which compiles!Theo de Raadt
2000-07-17Don't wait for B_READ buffers on shutdown.Artur Grabowski
From NetBSD.
2000-07-17FORK_SHAREVM only works on non-UVM kernels.Artur Grabowski
Pointed out by miod@
2000-07-12remove m_pulldown statistics, which is highly experimentalJun-ichiro itojun Hagino