summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2000-03-03If we attempted reschedule two times without suceeding, uiomove will yield,Artur Grabowski
giving other processes a chance to run. A process feeding a huge buffer to {read,write}{,v} on a file that doesn't need to wait for I/O, could have hogged a lot of cpu in the kernel, blocking all userland activity. Based on a similiar fix in FreeBSD.
2000-03-03Keep track of the number of times we trigger a reschedule before theArtur Grabowski
context switch actually happens.
2000-03-03Use the LIST_FIRST macro to get the head of zombproc list.Artur Grabowski
2000-03-03Use LIST_ macros instead of internal field names to walk the allproc list.Artur Grabowski
2000-03-03Style.Angelos D. Keromytis
2000-03-03Remove extraneous newline.Angelos D. Keromytis
2000-03-02New function: m_getptr(), takes as argument an mbuf chain and anAngelos D. Keromytis
offset, returns a pointer to them specific mbuf and the offset inside it that corresponds to the offset argument (so one can find where the n'th byte is in an mbuf).
2000-03-02Add an option DDB_SAFE_CONSOLE that defaults db_console to 1.Artur Grabowski
In many cases, setting db_console in /etc/rc is too late.
2000-02-29more fix to ancillary data alignment. we need padding afterJun-ichiro itojun Hagino
last cmsg_data item (see the figure on RFC2292 page 18).
2000-02-28Optimized fdalloc as in Banga and Mogul paper:Niels Provos
http://www.usenix.org/publications/library/proceedings/usenix98/banga.html
2000-02-22enlarge msgbuf, somewhat line netbsd didTheo de Raadt
2000-02-21dead code and symbol pollution.Artur Grabowski
2000-02-18fix alignment problem in ancillary data (alpha).Jun-ichiro itojun Hagino
only ipv6 tools (which touches ancillary data) are affected. From: =?iso-8859-1?Q?G=F6ran_Bengtson?= <goeran@cdg.chalmers.se>
2000-02-15Add another argument to extent_alloc_subregion to allow specifing an offsetArtur Grabowski
to the alignment. rename the function to extent_alloc_subregion1 and add compatibility macros. From NetBSD.
2000-02-07regen (with correct reference from syscalls.master)assar
2000-02-07(sys_getfh): moved here from nfs_syscalls.cassar
(sys_fhopen, sys_fhstat, sys_fhstatfs): new system calls that use file handles instead of file names. largely based on NetBSD
2000-02-07at least make it compile with LFS definedassar
2000-02-07regeneratedassar
2000-02-07always include sys_getfh. add fhopen, fhstat, and fhstatfsassar
2000-02-04Fix misleading comment.Angelos D. Keromytis
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