summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2000-02-01remove superflous declaration of vnops, it's now in <sys/file.h>assar
2000-01-31re-add fixed vfork code from artTheo de Raadt
2000-01-31undo vfork changes, since non-UVM was not consideredTheo de Raadt
2000-01-28Change fork1() from taking forktype and rforkflags, into a single flagsArtur Grabowski
argument. Let sys_rfork build the arguments to fork1() and do the sanity checks itself.
2000-01-27No need to include sys/vmmeter.hArtur Grabowski
2000-01-24fix setregs call for bawkward stacks; does not affect straight caseMichael Shalayeff
2000-01-22Don't allow the time to be set forward so far it will wrap and become negative,Todd C. Miller
thus allowing an attacker to bypass the next check below. The cutoff is 1 year before rollover occurs, so even if the attacker uses adjtime(2) to move the time past the cutoff, it will take a very long time to get to the wrap point. The actual check is tv_sec > INT_MAX - 365*24*60*60 because on 64 bit platforms tv_sec is 64 bits but time_t is 32 bits. This will need to be changed some time in the future when the size of time_t changes. Add a printf when a user tries to turn the clock backwards and securelevel > 1
2000-01-20set[ug]id, not just setuidTheo de Raadt
2000-01-20when procfs is compiled in, if a setuid process has any of descriptors 0-2Theo de Raadt
open for write on procfs, close it (and, thus, open a /dev/null instead); problem reported by nergal@idea.avet.com.pl, fix by me, thanks for help from millert
2000-01-19do not NULL dereference if fd_nfiles < 3Theo de Raadt
2000-01-17oops, another syscall pipe() botch; karls@inet.noTheo de Raadt
2000-01-14Drop SYNCER_MAXDELAY to 32. The delay is never bigger than 30 anyway.Artur Grabowski
2000-01-08Allow UKC to change tz with 'timezone' command.David Leonard
2000-01-04Remove unused file. If we end up using m_pulldown() in the future, itAngelos D. Keromytis
should be added to uipc_mbuf.c
2000-01-02(lkmalloc): initialize `sym_id'assar
(lkmunreserve): check that the DDB symbols were actually loaded before unloading them PR 1031
2000-01-01grammar in commentMichael Shalayeff
2000-01-012000Theo de Raadt
1999-12-31copy pkthdr correctly in m_split, okay angelos@Niels Provos
1999-12-08bring in KAME IPv6 code, dated 19991208.Jun-ichiro itojun Hagino
replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
1999-12-06Implement compatibility for Linux stime() syscall.Aaron Campbell
1999-12-06Yet another solution to the mfs unmount/kill race (not ugly this time).Artur Grabowski
Require that the mount point is vfs_busy on entry to dounmount.
1999-12-05Collect statistics on sync and async writes.Artur Grabowski
From NetBSD.
1999-12-05With soft updates, some buffers will be remarked as dirty after being written.Artur Grabowski
Handle this when syncing filesystems when unmounting. From NetBSD.
1999-12-05Use VONSYNCLIST to see if we should remove a vnode from the sync list insteadArtur Grabowski
of looking at v_dirtyblkhd.
1999-12-05Add an m_inject()Angelos D. Keromytis
1999-12-05Add a new vnode flag "VONSYNCLIST" that indicates if the vnode is on theArtur Grabowski
syncers work list. From NetBSD.
1999-12-05Add a new function "speedup_syncer()" that pushes the syncer to work harder.Artur Grabowski
Used by the new soft updates code.
1999-12-05Unlock the vnode in inactive even when v_usecount == 0.Artur Grabowski
1999-12-05Release mountlist_slock if vfs_busy fails.Artur Grabowski
1999-12-05Indentation fixes.Artur Grabowski
1999-12-02Indentation to make the code more readable.Artur Grabowski
1999-12-02Init the buffer dependency list.Artur Grabowski
1999-12-02snprintf in kernel; assar@stacken.kth.seTheo de Raadt
1999-11-29revents already cleared; dTheo de Raadt
1999-11-29handle invalid file descriptors in poll more carefully; dTheo de Raadt
1999-11-25Use PAGE_SIZE instead of NBPG.Artur Grabowski
1999-11-25Annoying unnecessary space.Artur Grabowski
1999-11-21if select returns writable on a pipe, the write should not returnTheo de Raadt
EWOULDBLOCK. turns out the two checking conditions were not the same, and a certain use of rsync uncovered the bug by chewing all available cpu time; fix from art
1999-11-17allow to compile without -DFFS. okay deraadt@David Leonard
1999-11-13FIBMAP ioctl from Linux, only usable on ISO 9660 FS. Note that the lbaAngelos D. Keromytis
returned is in 512-byte sectors, so if you're going to use it for things like DVD, you need to divide the result by 4 (for 2048-byte sectors). OK deraadt@
1999-11-11Pool will not work with old vm and is only used by uvm. Remove non-uvm code.Artur Grabowski
1999-11-07add APM powerhooks.Niels Provos
from NetBSD, Sat Jun 26 08:25:25 1999 UTC by augustss: Add powerhooks, i.e., the ability to register a function that will be called when the machine does a suspend or resume. XXX Will go away when Jason's kevents come to life.
1999-11-05s/memset/bzero/; art@ okMichael Shalayeff
1999-11-05more stack direction fixes; art@ okMichael Shalayeff
1999-10-29Use M_PIPE instead of M_TEMP.Artur Grabowski
1999-10-29Remove the "Direct write" code.Artur Grabowski
We never used it and some parts of it slowed the code down. Generally clean up the pipe code.
1999-10-27Actually make ASYNC pipes generate SIGIO.Niklas Hallqvist
1999-10-18force FDSCRIPTS after include files are pulled inTheo de Raadt
1999-10-14Fix for PR 871.cmetz
This fix is taken from BSD/OS (the file in question being BSD licensed). It continues to remove a datagram from a socket receive buffer even if there is an error on the copy-out, so as to leave the buffer in a reasonable state. Before, the kernel would stop in mid-receive if the copy-out failed, and the buffer's structural requirements would be violated (since the start of a datagram must be an address iff ). Note that if the user provides any invalid addresses as arguments to a recvmsg(), the datagram at the front of the buffer will be discarded. The more correct behavior would be not to remove this datagram if the arguments are invalid. Implementing this behavior requires a lot of significant changes, and socket receives are a critical path. Also included are two simple and fairly obvious fixes from the same source. If non-blocking I/O is set, it makes sure the receieve is non-blocking. It also fixes a slightly over-aggressive optimization.
1999-10-11for AF_UNIX, do not follow symlinks when creating sockets, terminateTheo de Raadt
names more carefully; art