summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2009-06-05Clamp the ending bound to the size of the disk. This makes disklabel -ATheo de Raadt
still do the right thing if the MBR has a lie in it
2009-06-05Initial support for routing domains. This allows to bind interfaces toClaudio Jeker
alternate routing table and separate them from other interfaces in distinct routing tables. The same network can now be used in any doamin at the same time without causing conflicts. This diff is mostly mechanical and adds the necessary rdomain checks accross net and netinet. L2 and IPv4 are mostly covered still missing pf and IPv6. input and tested by jsg@, phessler@ and reyk@. "put it in" deraadt@
2009-06-04obvious shrinkage.Owain Ainsworth
ok krw@, miod@.
2009-06-04Recycle four ancient fields in the disklabel structure, replacing them withTheo de Raadt
bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
2009-06-04add $OpenBSD$ tagThordur I. Bjornsson
2009-06-04POOL_DEBUG and DIAGNOSTIC should be better friendsTheo de Raadt
2009-06-04the POOL_DEBUG checks needed to be more friendly with DIAGNOSTICTheo de Raadt
2009-06-04enable POOL_DEBUG again just for the hackathon.Owain Ainsworth
slackers now get more bugs to fix, yay! discussed with deraadt@.
2009-06-04unfuck msleep - fixed by art and ariane after much horror and teeth gnashingBob Beck
over why the processes were being woken up at splvm after the page daemon ran - and probably also had the page daemon running at splvm after the first pass through the loop. ok art@ weingart@ oga@ ariane@
2009-06-04don't use splvm ourselves, use pool_setipl on the pool we're allocatingOwain Ainsworth
from and it will do it for us. ok miod@
2009-06-04Put readv/writev changes back in, as they no longer hang ckuethe's ntpd.Bret Lambert
Special thanks to ckuethe's ntpd for noticing the problem. ok deraadt@
2009-06-03add a flexible buffer queue (bufq) api, based on the never usedThordur I. Bjornsson
one by tedu@. It doesn't do anything smart yet, it just uses plain old disksort. we also keep the old method of queueing bufs since some miods have crazy MD drivers that need some love. ok beck@, art@ tested by many on many archs.
2009-06-03add kern.bufcachepercent sysctl to allow adjusting the buffer cacheBob Beck
size on a running system. ok art@, oga@
2009-06-03xfs -> nnpfsThordur I. Bjornsson
2009-06-03syncJanne Johansson
2009-06-03remove bad #ifdef from syscall.masterJanne Johansson
2009-06-03Arla client rename from xfs to nnpfs for later upgrades. Tested on various ↵Janne Johansson
arches. ok todd@ beck@
2009-06-03Add a callback specifically for softraid. If you touch this kittens willMarco Peereboom
be murdered and theo will visit with a 2x4. ok deraadt
2009-06-03Change bufhash from the old grotty hash table to red-black trees hangingBob Beck
off the vnode. ok art@, oga@, miod@
2009-06-03Revert readv/writev changes, as they trigger an apparent file descriptorBret Lambert
deadlock for ckuethe@ "if you have to revert, you have to revert" deraadt@
2009-06-03remove the never used bufq_ code.Thordur I. Bjornsson
ok oga@ 'dance for me' blambert@
2009-06-02Change the wait-channel type to 'const volatile void *', eliminatingPhilip Guenthe
the need for casts when calling tsleep(), msleep(), and wakeup(). "I guess so" oga@ "it's masturbation" art@
2009-06-02Instead of the global hash table with the terrible hashfunction and aOwain Ainsworth
global lock, switch the uvm object pages to being kept in a per-object RB_TREE. Right now this is approximately the same speed, but cleaner. When biglock usage is reduced this will improve concurrency due to lock contention.. ok beck@ art@. Thanks to jasper for the speed testing.
2009-06-02Constipate the second argument to timeout_add_*(). Also, usePhilip Guenthe
nitems() in two places instead of coding the array size and fix a spot of whitespace. ok miod@ blambert@
2009-06-02Add some extra protection against non-monotonic timestamps. ok steveskChris Kuethe
2009-06-02ANSIfyPhilip Guenthe
noted by Jonathan ARMANI, ok blambert@
2009-06-02truncated format strings; found by Parfait and gccTheo de Raadt
ok maja oga guenther
2009-06-02msgctl(), shmctl(), semctl() all have operations that are supposedPhilip Guenthe
to return pids, not thread ids, so record the former when performing operations. ok blambert
2009-06-02A process should always be able to attach kevent filters to its ownPhilip Guenthe
threads, even when it has changed uid or gid in the past. As is, a P_SUGID process using rthreads leaks the stack on thread exit. requested and approved by tedu@ a while ago
2009-06-02set needfree to NULL in sys_writev() so stack garbageThordur I. Bjornsson
does not cause us to call free if we never malloced. crash found by & OK marco@
2009-06-02it is better when ramdisks compileTheo de Raadt
2009-06-02dofile{read,write} are essentially identical to their iovec equivalents,Bret Lambert
dofile{read,write}v, so remove the former and rework it so that everything uses the latter "nice" deraadt@ "reads ok" oga@ spastic 'OMG Ponies!!!!' weingart@
2009-06-02Move M_PREPEND macro code to be entirely into m_prepend the function;Bret Lambert
calling M_PREPEND is now #define'd to be calling m_prepend. Shaves an unknown but assumed-to-be-nontrivial amount from the kernel. ok claudio@ henning@(who may have had to okay this twice to get me to notice)
2009-05-31Move splassert checks from pool_do_get to pool_get(). Since the formerMiod Vallat
is invoked with the pool mutex held, the asserts are satisfied by design. ok tedu@
2009-05-160 -> PR_NOWAIT for clarity.Thordur I. Bjornsson
ok blambert@
2009-05-15Validate the main MBR minimally; if it does not have the AA55 thingy we mustTheo de Raadt
not read garbage values as partitions... which we then put into the spoofed label... and which would lead disklabel -A to make surprising decisions. earlier versions which did too much validation tested by many
2009-05-13initialize d_npartitions to MAXPARTITIONS always; ok krwTheo de Raadt
2009-05-06endrun(4) - EndRun Technologies native time-of-day message timedeltaKevin Steves
sensor. Based on msts(4). Tested with Praecis Ct (http://www.endruntechnologies.com/network-time-source.htm). help and feedback mbalmer 'no problem with this sensor going in' deraadt
2009-05-06remove erroneous fldcnt test. fldcnt can never be 13 here. this isKevin Steves
apparently a leftover from tty_nmea.c
2009-05-03Discovering an extended MBR partition and setting 'wander' to 1Kenneth R Westerback
should not stop the spoofing process. Setting 'wander' means when we are done with this MBR, read the next one. Problem noted and fix tested by Nick Guenther. ok weingart@ (I think), deraadt@
2009-04-26don't zero sensor .value and .flags immediately after the allocation w/ ↵Constantine A. Murenin
M_ZERO; ok deraadt
2009-04-24Change format strings to allow 64 bit addresses to display properly,Jonathan Gray
and add a missing argument to one of the printf calls. ok art@
2009-04-22Make the interactions in allocating buffers less confusing.Artur Grabowski
- getnewbuf dies. instead of having getnewbuf, buf_get, buf_stub and buf_init we now have buf_get that is smaller than some of those functions were before. - Instead of allocating anonymous buffers and then freeing them if we happened to lose the race to the hash, always allocate a buffer knowing which <vnode, block> it will belong to. - In cluster read, instead of allocating an anonymous buffer to cover the whole read and then stubs for every buffer under it, make the first buffer in the cluster cover the whole range and then shrink it in the callback. now, all buffers are always on the correct hash and we always know their identity. discussed with many, kettenis@ ok
2009-04-22When starting up idle, explicitly set p_cpu and the peg flag for theArtur Grabowski
idle proc. p_cpu might be necessary in the future and pegging is just to be extra safe (although we'll be horribly broken if the idle proc ever ends up where that flag is checked).
2009-04-22initialise the constructor and destructor function pointers to NULLDavid Gwynne
in pool_init so you the pool struct doesn't have to be zeroed before you init it.
2009-04-20Make pegging a proc work when there are idle cpus that are looking forArtur Grabowski
something to do. Walk the highest priority queue looking for a proc to steal and skip those that are pegged. We could consider walking the other queues in the future too, but this should do for now. kettenis@ guenther@ ok
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-19Add a new EX_FILLED flag to make extent_create() create an extent map thatMark Kettenis
has all space allocated such that we can make holes in it using extent_free(). ok miod@
2009-04-17Remove unused function proc_isunder()Bret Lambert
"go for it" tedu@
2009-04-15Misplaced comment.Artur Grabowski
From Kirill Timofeev