summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2000-04-06Random cleanup.Artur Grabowski
2000-04-01fdup could fail when want for fdalloc > than the free fd in the block.Niels Provos
slightly different fix than in the bug report by Rob Pickering <rob@syntonet.co.uk>
2000-03-23Iiieeek! This kludge was almost funny.Artur Grabowski
Probably something from the stone age. Kill it.
2000-03-23Don't reinitialize the tsleep and ITIMER_REAL timers all the time.Artur Grabowski
The function and the argument never change.
2000-03-23No need for our own declaration of lbolt.Artur Grabowski
2000-03-23Use the new timeout facilities for ITIMER_REAL.Artur Grabowski
2000-03-23use the new timeout interface for tsleep.Artur Grabowski
2000-03-23convert to new timeouts.Artur Grabowski
2000-03-23Update a comment to reflect reality.Artur Grabowski
2000-03-23Provide methods to check if a timeout was initalized and if it is scheduled.Artur Grabowski
2000-03-23Use new timeouts for pfslowtimo and pffasttimo.Artur Grabowski
2000-03-23Preserve the FIFO order of issued timeouts.Artur Grabowski
2000-03-23Adapt roundrobin and schedcpu to the new timeout API.Artur Grabowski
2000-03-23New API for timeouts. Replaces the old timeout()/untimeout() API andArtur Grabowski
makes it the callers responsibility to allocate resources for the timeouts. This is a KISS implementation and does _not_ solve the problems of slow handling of a large number of pending timeouts (this will be solved in future work) (although hardclock is now guarateed to take constant time for handling of timeouts). Old timeout() and untimeout() are implemented as wrappers around the new API and kept for compatibility. They will be removed as soon as all subsystems are converted to use the new API.
2000-03-22some more machine_stack_grows_upMichael Shalayeff
2000-03-20bring proto into scopeTheo de Raadt
2000-03-17ratecheck - function to help implement rate-limited actions (from NetBSD)Jakob Schlyter
ok art@
2000-03-17Cryptographic services framework, and software "device driver". TheAngelos D. Keromytis
idea is to support various cryptographic hardware accelerators (which may be (detachable) cards, secondary/tertiary/etc processors, software crypto, etc). Supports session migration between crypto devices. What it doesn't (yet) support: - multiple instances of the same algorithm used in the same session - use of multiple crypto drivers in the same session - asymmetric crypto No support for a userland device yet. IPsec code path modified to allow for asynchronous cryptography (callbacks used in both input and output processing). Some unrelated code simplification done in the process (especially for AH). Development of this code kindly supported by Network Security Technologies (NSTI). The code was writen mostly in Greece, and is being committed from Montreal.
2000-03-16Bring in some new UVM code from NetBSD (not current).Artur Grabowski
- Introduce a new type of map that are interrupt safe and never allow faults in them. mb_map and kmem_map are made intrsafe. - Add "access protection" to uvm_vslock (to be passed down to uvm_fault and later to pmap_enter). - madvise(2) now works. - various cleanups.
2000-03-15prevent overflow in a diagnostic check; art@ okMichael Shalayeff
2000-03-13Get rid of leading NULs in /kern/msgbuf. If the msgbuf modified in betweenTodd C. Miller
reads at just the right time is is possible to get duplicate output but in practice this is extremely rare. Joint effort with Theo.
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