summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2005-12-14timeout code is not so happy with the negative valuesTed Unangst
2005-12-14change wait message for thrsleep to "thrsleep"Ted Unangst
2005-12-13ansi/deregister. No binary change.Jonathan Gray
2005-12-13make exiting actually work when a thread receives a signal.Ted Unangst
previously, the child and parent would deadlock in the kernel and be unable to exit. help with diagnosis from art@.
2005-12-13stupid me got the cast backwardsTed Unangst
2005-12-13rebuildTed Unangst
2005-12-13thrsleep and thrwakeup, cast syscall arg from void * to long.Ted Unangst
2005-12-13change the first arg to thrsleep and thrwakeup to a void *.Ted Unangst
i had initially selected long since the kernel doesn't attempt to interpret this value in any way, but since it is always a pointer value in practice, this makes a little more sense. binary compat in any case. suggestion from deraadt@
2005-12-11Replace procfs_domem() with a similar interface, process_domem(), which livesMiod Vallat
out of procfs and gets a ptrace request PT_{READ,WRITE}_{I,D} as argument; also procfs_checkioperm() becomes process_checkioperm(). From art@ some time ago; ok kettenis@ pedro@
2005-12-09ansi and deregister. No binary change.Jonathan Gray
2005-12-08Don't panic for pathological i/o sizes unless minphys() really isKenneth R Westerback
broken. Eliminate an unneeded variable and potential conversion issues in SCIOCCOMMAND code before calling physio. Similar to what NetBSD does. Fixes cdda2wav vs "Billie Holiday - Songs for Distingue Lovers" problem noted by Alexandre Ratchov. Tested by Alexandre. ok marco@ pedro@ deraadt@ mickey@
2005-12-07do not allow setugid processes to use /dev/fd/#, unless they are aTheo de Raadt
setuid-script and are attempting to dup is the specific setuid-script fd via such a pathname; ok tedu pedro millert
2005-12-06Remove fdescfsPedro Martelletto
2005-12-04forgot to set P_THREAD for threaded processesTed Unangst
2005-12-04Add vn_access(), discussed with and okay uwe@Pedro Martelletto
2005-12-04older gcc (like real C) does not let you declare local variables afterTheo de Raadt
doing functional code; ie. LIST_INIT()
2005-12-03rebuildTed Unangst
2005-12-03kernel support for threaded processes (rthreads).Ted Unangst
uses rfork(RFTHREAD) to create threads, which are presently processes that are a little more tightly bound together. several new syscalls added to facilitate a userland thread library. all conditional on RTHREADS, currently disabled. ok deraadt
2005-11-30No need for vfs_busy() and vfs_unbusy() to take a process pointerPedro Martelletto
anymore. Testing by jolan@, thanks.
2005-11-28ansi/deregister.Jonathan Gray
'go for it' deraadt@
2005-11-27Don't set MNT_UPDATE and MNT_RELOAD before acquiring the mount pointPedro Martelletto
lock. Fixes a race as seen on PR kern/4915. Okay miod@ and joris@, tested by krw@ and hshoexer@, thanks.
2005-11-25built files should be checked in after the source fileTed Unangst
2005-11-24Remove kernfs, okay deraadt@.Pedro Martelletto
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-11-21rename the sensor globals to names that are not obvious to avoidDavid Gwynne
collisions with local variable names someone might make. this has bitten me twice now and caused me to lose about 4 hours scratching my head when nsensors just magically corrupts and gets bigger. at least my ram isnt screwed. ok marco@
2005-11-21Fix a crash in ptmioctl() in the error path when the master hasTodd C. Miller
been opened but the slave cannot be. We can't do the FILE_SET_MATURE until we are past all possible error paths since it calls FRELE(), resulting in a reference count of 0, which closef() panics on #ifdef DIAGNOSTIC. OK deraadt@
2005-11-20Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-11-18Work around yet another race on non-locking file systems: when callingPedro Martelletto
VOP_INACTIVE() in vrele() and vput(), we may sleep. Since there's no locking of any kind, someone can vget() the vnode and vrele() it while we sleep, beating us in getting the vnode on the free list.
2005-11-17style; no binary change.Federico G. Schwindt
2005-11-15Save process context in ktrwrite(), as it may be needed for lockingPedro Martelletto
purposes by the file system specific write routine. Fixes PR 4612. Okay deraadt@.
2005-11-15Match comments with realityPedro Martelletto
2005-11-13shorten this a bit through better use of TAILQ macros.David Gwynne
mostly ok otto@ (ive since fixed the chunk he was worried about)
2005-11-13move kgdb_connect and kgdb_panic into MI. looked by miod@ and kettenis@Federico G. Schwindt
2005-11-12ansi. No binary change.Jonathan Gray
2005-11-11Allow binaries to run if all sections are marked writableDale Rahn
(some unusual linux binaries), ok deraadt.
2005-11-10the tasklist can be modified while the kthread is sleeping, so refetchDavid Gwynne
the first element before iterating through the rest of them. stylistic guidance from angela pascoe. mark all tasks using the same argument as not running anymore, rather than just the first one we bump into.
2005-11-10first go at a generic kthread for sensors to be run out of. its a bitDavid Gwynne
hairy at the moment, but its going into the tree so it can be worked on and used.
2005-11-10split the sensors stuff out into a source file of its own.David Gwynne
tested on GENERIC and RAMDISK_CD to see if the small_kernel stuff stays happy
2005-11-08Missed one use of 'register'Pedro Martelletto
2005-11-08Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-11-07Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-11-07nitPedro Martelletto
2005-11-06Make comments match reality, space the code a bit while at itPedro Martelletto
2005-11-06Use ANSI-style function declarations, no binary change, okay jsg@Pedro Martelletto
2005-11-04Add an extra flags argument to uvm_io(), to specify whether we want to fixMiod Vallat
the protection of the memory mapping we're doing I/O on, or if we want to leave them as they are. This should only be necessary for breakpoint insertion in code, so we'll only use it for ptrace requests. Initially from art@ after discussion with kettenis@ millert@ and I, tested by many.
2005-11-02Avoid a theoretical race condition.Aaron Campbell
In fork1(), setup the p_{prof,virt}_to timeouts _before_ putting the process on the runqueue. Since SCHED_UNLOCK() can cause pre-emption, it is possible (with the old code) for the newly created process to run and become curproc before the timeouts were set. If itimers are set early, and you're unlucky, hardclock() might fire at this time and attempt timeout_add() on the unset timeouts, leading to "panic: timeout_add: not initialized". deraadt@, miod@ ok
2005-10-27make sure ppsratecheck() returns 0 if maxpps is 0;Markus Friedl
from alexander bluhm; ok deraadt
2005-10-25dont' -> don't in comments;Jason McIntyre
from ray lai;
2005-10-19Remove v_vnlock from struct vnode, okay krw@ tedu@Pedro Martelletto