summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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
2005-10-13In realitexpire(), do not re-add the itimer timeout if the process is inAaron Campbell
the midst of exiting. This solves a race condition that causes freed memory to be left referenced in the master kernel timeout worklist, leading to a uvm_fault. The same race condition was already fixed earlier in r1.53 of kern_clock.c for the process virtual and profile timeout structs. deraadt@ ok, testing by krw@
2005-10-10Avoid arithmetic overflows in computation of adjtime(). Fixes adjusting in theOtto Moerbeek
wrong direction for large offsets as nick@ saw. With tom@ and toby@; ok tdeval@ krw@
2005-10-08Revert revision 1.39. Under heavy load, it could cause severe corruptionPedro Martelletto
in the buffer lists by removing a buffer from the hash twice. Problem identified in discussion with Alexander Bluhm <Alexander_Bluhm@genua.de>.
2005-10-04Make the syncer grab a reference for the vnode to avoid it from beingPedro Martelletto
reclaimed while in this sensitive time frame. That is needed when we don't have locks. Should fix the 'sched_sync: fsync failed' panic some people were seeing. Testing mostly by sturm@ and krw@, okay tedu@ and deraadt@.
2005-10-03In hardclock(), do not setup process virtual and profile timers if the processAaron Campbell
is in the midst of exiting. This solves a race condition that causes freed memory to be left referenced in the master kernel timeout worklist, leading to a uvm_fault (observed on an i386 MP system). tedu@, deraadt@, miod@ ok
2005-09-27typo in comment: sprintf -> snprintf, ok markus@Alexander von Gernler
2005-09-25Turn CPU_INFO_FOREACH into a real construct, like all queue(3) iterators,Miod Vallat
instead of the contents of a for() loop. No functional change. From the m88k SMP tree; ok art@ deraadt@ [complete diff this time]
2005-09-20unbreak tree, how did you do that miodTheo de Raadt
2005-09-20Turn CPU_INFO_FOREACH into a real construct, like all queue(3) iterators,Miod Vallat
instead of the contents of a for() loop. No functional change. From the m88k SMP tree; ok art@ deraadt@
2005-09-16backout until we find a socket state for initTheo de Raadt
2005-09-14ptrace(2) following fork(2)Mark Kettenis
ok miod@
2005-09-12Change the NKMEMPAGES range to 4-64MB for 32bit arches, and 8-128MB for 64bitMiod Vallat
arches; except on sparc where the range is 4-8 for !sun4m and 4-64 for sun4m, selected at runtime.
2005-09-10do not trust user input for sysctl. constrain arguments passed to ktraceTheo de Raadt
to CTL_MAXNAME; ok espie uwe
2005-09-10upon shutdown(), if socket is unconnected return ENOTCONN; ok millertTheo de Raadt
2005-08-14catched->caughtMiod Vallat
2005-08-11Use SHUT_* values directly in soshutdown() instead of convertingTodd C. Miller
to FREAD/FWRITE. OK deraadt@
2005-08-02Reduce stack usage.Mark Kettenis
2005-08-01 - We shouldn't allocate MAXPATHLEN from the stack.Artur Grabowski
- Don't copy the pathbuf into kernel space unless we're systracing. deraadt@ ok
2005-08-01sys_select() used to use 6 local fd_set's in case the width was <= theTheo de Raadt
size of an fd_set (ie. 256 bits), to avoid the malloc. that is a lot of local storage. change the cross-over point to 32-bits, which is more fair. if you select with large widths, you pay the price. tested by dlg, read by millert and pascoe, run on all machines
2005-07-31do not allocate huge kinfo_proc2 and eproc structures on the stack.Theo de Raadt
allocate them on startup if needed, and free them when done. discussion with pascoe, tested by dlg
2005-07-18Typo in comment, from Giorgos Keramidas, keramida (at) ceid (dot)Tom Cosgrove
upatras (dot) gr. Thanks.
2005-07-18remove trailing newline in panic(9); ok millert@ and deraadt@Federico G. Schwindt
2005-07-14Fix comments concerning VOP_LINK().Pedro Martelletto
2005-07-14More netccitt and netns removals; OK henning, brad, mickeyUwe Stuehler
2005-07-08Remove unused extent_insert_and_optimize() parameter 'flags'. SpottedKenneth R Westerback
by lint. ok art@ miod@
2005-07-07clear vm_dused at exec time, since we are potentially re-using the vmspace;Theo de Raadt
fixes resource accounting in a mmap malloc world ok "too busy but looks right" tedu, tdeval
2005-07-06Eliminate a couple of 'msg.msg_iovlen < 0' tests. msg_iovlen isKenneth R Westerback
unsigned. ok millert@ deraadt@
2005-07-04oops, kernel free needs two args. thanks pedroTed Unangst
2005-07-03malloc(M_WAITOK) implies sleeping, so we have to double check thatTed Unangst
somebody else didn't beat us in uid_find().
2005-07-03syncDale Rahn
2005-07-03Extended Attributes was a piece to get to ACLs, however ACLs have notDale Rahn
been worked on, so EA is pointless. Also the code is not enabled in GENERIC so it is not being tested or maintained.
2005-07-03regenJared Yanovich
2005-07-03change VOP_PATHCONF to take a locked vnode, as itsJared Yanovich
comment entry describes. requires that sys_fpathconf() lock its vnode. lots of testing by jolan and myself, ok pedro
2005-06-27When releasing a buffer and disassociating it from its vnode, there'sPedro Martelletto
no point in placing the buffer in the vnode's clean list just to remove it afterwards. Talked over with art@, various testing for a while.
2005-06-18Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@Todd C. Miller
2005-06-17A second approach at fixing the telnet localhost & problemNiklas Hallqvist
(but I tend to call it ssh localhost & now when telnetd is history). This is more localized patch, but leaves us with a recursive lock for protecting scheduling and signal state. Better care is taken to actually be symmetric over mi_switch. Also, the dolock cruft in psignal can go with this solution. Better test runs by more people for longer time has been carried out compared to the c2k5 patch. Long term the current mess with interruptible sleep, the default action on stop signals and wakeup interactions need to be revisited. ok deraadt@, art@
2005-06-17Missed in previous regen commitTodd C. Miller
2005-06-17regenTodd C. Miller
2005-06-17remove undelete syscallTodd C. Miller
2005-06-17Protect buf_countdeps() call in buf_daemon() with splbio(), okay art@Pedro Martelletto
2005-06-08Add KERN_CPTIME2 on systems where __HAVE_CPUINFO is defined, exposesTodd C. Miller
spc_cp_time member of struct schedstate_percpu (per-cpu stats). From art@ during the hackathon.
2005-06-08bye bye netnsHenning Brauer
2005-06-07remove CCITT handlingHenning Brauer
2005-06-04let the arc4random sysctl write out up to 256 bytes at once.Ted Unangst
ok + input deraadt miod
2005-06-02for sysctl syscall pass the mib[] back to kdump to parse;Michael Shalayeff
always print () on syscalls w/ void args even (deraadt version)
2005-05-31Protect the run queues with SCHED_LOCK, not just spl (ot nothing at all inArtur Grabowski
one case fixed here). miod@ "appears to be harmless" markus@ ok
2005-05-31Protect p_timer with splclock. It can be fiddled with in hardclock (butArtur Grabowski
only for curproc, that's why no SCHED_LOCK or similar is necessary). miod@ "appears to be harmless" markus@ ok
2005-05-29sched work by niklas and art backed out; causes panicsTheo de Raadt