summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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
2005-05-28have vn_close() lock the vnode before calling VOP_CLOSE().marius eriksen
fix the acct_*() code so that we always have a proc to lock on. ok pedro@
2005-05-28fix one missed case for removing reverse name cache entries.marius eriksen
ok pedro@
2005-05-28regenPedro Martelletto
2005-05-28bye bye VOP_WHITEOUTPedro Martelletto
2005-05-27remove some dead code.marius eriksen
ok pedro@
2005-05-27remove references of VOP_WHITEOUT from the kernel, okay millert@Pedro Martelletto
2005-05-27prepare the removal of sys_undelete(), make it a stub, okay millert@Pedro Martelletto
2005-05-27add a field to struct socket that stores the pid of the process thatDaniel Hartmeier
created the socket, and populate it. ok bob@, henning@
2005-05-27Experimental support for opportunitic use of jumbograms where only some hostsRyan Thomas McBride
on the local network support them. This adds a new socket option, SO_JUMBO, and a new route flag, RTF_JUMBO. If _both_ the socket option is set and the route for the host has RTF_JUMBO set, ip_output will fragment the packet to the largest possible size for the link, ignoring the card's MTU. The semantics of this feature will be evolving rapidly; talk to us if you intend to use it. ok deraadt@ marius@
2005-05-27still union/umap/null leftoversPedro Martelletto
2005-05-26styling nits, ok marius@Pedro Martelletto
2005-05-26add a reverse name mapping into the namecache. (vnode->name)marius eriksen
this will help speedup getcwd (coming soon). ok pedro@
2005-05-26remove union et al traces; pedro@ ok.Federico G. Schwindt
2005-05-26remove traces from union et al; pedro@ ok.Federico G. Schwindt
2005-05-26Fix yield() to change p_stat from SONPROC to SRUN.Artur Grabowski
yield() is not used anywhere yet, that's why we didn't notice this. Noticed by tedu@ who just started using it.
2005-05-26RIP stackable filesystems, ok marius@ tedu@, discussed with deraadt@Pedro Martelletto
2005-05-25This patch is mortly art's work and was done *a year* ago. Art wants to thankNiklas Hallqvist
everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry. Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax. This diff also changes splsched to be correct for all our architectures.
2005-05-24add a new field to vm_space and use it to track the number of anonTed Unangst
pages a process uses. this is now the userland "data size" value. ok art deraadt tdeval. thanks testers.
2005-05-24when a device vnode associated with a mount point disappears, mark thePedro Martelletto
filesystem as doomed and unmount it