summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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
2005-05-24better handling of disappearing devices, in spec_close(), don't try toPedro Martelletto
double-lock the vnode if we're coming from vclean()
2005-05-22put VLOCKSWORK stuff under a single option, VFSDEBUGPedro Martelletto
2005-05-22regenPedro Martelletto
2005-05-22change VOP_CLOSE to take a locked vnodePedro Martelletto
2005-05-22output code for incoming VFSDEBUG optionPedro Martelletto
2005-05-17under some circunstances, unp_scan() can call unp_mark() with a null pointer,Federico G. Schwindt
so check fp before dereferencing it; fixes a crash found by hshoexer@ with input from art@, art@ millert@ deraadt@ ok.
2005-05-03clean up some small fallout from initial freebsd import.Hans-Joerg Hoexer
ok grange@
2005-05-01check for VBIOONFREELIST and VBIOONSYNCLIST in vprint(), okay marius@Pedro Martelletto
2005-04-21Correctly handle allocations of size 1 at an extent boundary; from NetBSD.Miod Vallat
2005-04-21Make the non-_KERNEL compilation usable again, in order to add a regress test.Miod Vallat
2005-04-21unused variable n; ok cloderTheo de Raadt
2005-04-20knfTheo de Raadt
2005-04-16Remove regs and fpregs pseudo-files from procfs.Mark Kettenis
ok deraadt@, miod@
2005-04-14Try to start log message buffer on a new line. Helps install scripts avoidKenneth R Westerback
detecting phantom devices when scanning dmesg output. Suggested by miod@, ok deraadt@.
2005-04-11pull in new MD STACKGAP_RANDOMTheo de Raadt
2005-04-03Implemente PT_[GS]ETXMMREGS ptrace(2) requests on i386.Mark Kettenis
ok deraadt@
2005-03-29Bring in UDF support from FreeBSD, disabled for now.Pedro Martelletto
2005-03-24always good to check for invalid values. ok marius pedroTed Unangst
2005-03-15revise lockf limit policy. after exceeding "soft limit", start enforcingTed Unangst
a hard limit of 2x. add a comment to this effect. reviewed by miod
2005-03-10split out uidinfo from kern_proc.c private, use it to store lock count,Ted Unangst
restrict lock count per uid to a global limit, add sysctl to adjust limit. this prevents a user from creating too many locks. problem noticed by devon o'dell. ok deraadt miod pedro
2005-03-09Fail exec for disabled compat with EPERM rather than ENOEXEC.Miod Vallat
ok deraadt@ mickey@ millert@
2005-03-04Fix handling of names bigger than NCHNAMLEN in cache_enter(), okay tedu@Pedro Martelletto
2005-02-24fix pr4036, don't set p2->p_cpu to nullTed Unangst
ok deraadt miod markus