summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2008-06-12Remove silly panic when disestablish cookie doesnt existMarco Peereboom
ok art
2008-06-12Bring biomem diff back into the tree after the nfs_bio.c fix went in.Theo de Raadt
ok thib beck art
2008-06-12Reorder foreign binaries probe list, so that more permissive ones are at theMiod Vallat
end. Makes static linux binaries run again.
2008-06-11Don't use the reference count to create the sensor name; we can end upMarc Balmer
with sensors with the same name. The sensor name is now ever increasing unless the reference count drops to zero, in which case the naming restarts at zero as well.
2008-06-11back out biomem diff since it is not right yet. Doing very largeTheo de Raadt
file copies to nfsv2 causes the system to eventually peg the console. On the console ^T indicates that the load is increasing rapidly, ddb indicates many calls to getbuf, there is some very slow nfs traffic making none (or extremely slow) progress. Eventually some machines seize up entirely.
2008-06-11store a pointer to the stack side state key in the mbuf packetHenning Brauer
header inbound. on the outbound side, we take that and look for the key that is the exact opposite, and store that mapping in the state key. on subsequent packets we don't have to do the lookup on outbound any more. almost unable to get real benchmarks going here, we know for sure this gives a more than 5% increase in forwarding performance. many thanks to ckuethe for stress- and performance-testing. ok ryan theo
2008-06-11add $OpenBSD$ tag.Thordur I. Bjornsson
I hate it, art@
2008-06-10Fix buffer cache pending read statistics by ensuring we can identifyBob Beck
biowait() reads that do *not* come from the buffer cache - we use the B_RAW flag to identify these at art's suggestion - since it makes sense and the flag was not being used. this just flags all these buffers with B_RAW - biodone already ignores returned buffers marked B_RAW. ok art@
2008-06-10posix compliant permission checks for sending signals. Based on diffsHans-Joerg Hoexer
provided by christian ehrhardt (Christian_Ehrhardt@genua.de) and micky, thanks! ok deraadt millert
2008-06-10Buffer cache revampBob Beck
1) remove multiple size queues, introduced as a stopgap. 2) decouple pages containing data from their mappings 3) only keep buffers mapped when they actually have to be mapped (right now, this is when buffers are B_BUSY) 4) New functions to make a buffer busy, and release the busy flag (buf_acquire and buf_release) 5) Move high/low water marks and statistics counters into a structure 6) Add a sysctl to retrieve buffer cache statistics Tested in several variants and beat upon by bob and art for a year. run accidentally on henning's nfs server for a few months... ok deraadt@, krw@, art@ - who promises to be around to deal with any fallout
2008-06-09Update access(2) to have modern semantics with respect to X_OK andTodd C. Miller
the superuser. access(2) will now only indicate success for X_OK on non-directories if there is at least one execute bit set on the file. OK deraadt@ thib@ otto@
2008-06-09rename arc4random_bytes => arc4random_buf to match libc's nicer name;Damien Miller
ok deraadt@
2008-06-08use sched_is_idle() and nuke the sched_chooseproc prototype since weThordur I. Bjornsson
already have on in sched.h
2008-06-07Remove the OLF os bitmask field from the compat probe functions array;Miod Vallat
ok deraadt@
2008-06-04olf support starts to die (easy stuff first); ok miodTheo de Raadt
2008-05-23update sem_otime on semop(); reported by mkbucc AT gmail.comDamien Miller
ok deraadt@ millert@
2008-05-23tputchar() can put characters on the tty output queue if clocal is set,Theo de Raadt
fixing (status) ^T support on some ttys without carrier ok pyr
2008-05-23Deal with the situation when TCP nfs mounts timeout and processesThordur I. Bjornsson
get hung in nfs_reconnect() because they do not have the proper privilages to bind to a socket, by adding a struct proc * argument to sobind() (and the *_usrreq() routines, and finally in{6}_pcbbind) and do the sobind() with proc0 in nfs_connect. OK markus@, blambert@. "go ahead" deraadt@. Fixes an issue reported by bernd@ (Tested by bernd@). Fixes PR5135 too.
2008-05-23Make rd act more like a 'normal' disk device, allowing the elimination ofKenneth R Westerback
'fakerootdev' hackery. This allows us to bring back miod@'s r1.70 subr_disk.c change to avoid the GENERIC dance when rootdev has been initialized. This in turn re-enables raidframe root devices. Add a nice panic if rootdev can't be initialized, displaying the name of the device that didn't work rather than just blowing up by de-referencing NULL. ok deraadt@
2008-05-22use PR_ZERO instead of calling bzero directlyThordur I. Bjornsson
after pool_get(); ok beck@
2008-05-22Use LIST_FOREACH() instead of handrolling.Thordur I. Bjornsson
From: Pierre Riteau pierre.riteau_att_gmail.com OK miod@
2008-05-22kill 2 bogus ARGUSED and use the LIST_FOREACH() macroThordur I. Bjornsson
instead of handrolling... ok miod@
2008-05-16merge vfs_opv_init into vfs_op_init and remove the former,Thordur I. Bjornsson
as they where called consecutively in vfs_init.
2008-05-16remove some old debug cruft, make some comments nicerThordur I. Bjornsson
and shuffle declerations around. OK blambert@
2008-05-16unsigned -> u_int and warnmess -> warnmsgThordur I. Bjornsson
for pool_sethardlimit. prodded by and ok tedu@
2008-05-11set p_flag to 0 sooner, so we don't overwrite the thread flag. and correctlyTed Unangst
free things when exiting a threaded proc. from philip guenther
2008-05-11share signal handlers for rthreads. from philip guentherTed Unangst
2008-05-09Add SO_BINDANY socket option from BSD/OS.Markus Friedl
The option allows a socket to be bound to addresses which are not local to the machine. In order to receive packets for these addresses SO_BINDANY needs to be combined with matching outgoing pf(4) divert rules, see pf.conf(5). ok beck@
2008-05-08retire vn_default_error() and replace all instancesThordur I. Bjornsson
with eopnotsupp() instead; ok blambert@
2008-05-07remove the vfc_mountroot member from vfsconf andThordur I. Bjornsson
do appropriate cleanup; OK deraadt@
2008-05-07check TIOCSIG for 0 and do not send that to psignal() and pgsignal()Theo de Raadt
ok fgsch
2008-05-07Implement routing priorities. Every route inserted has a priority assignedClaudio Jeker
and the one route with the lowest number wins. This will be used by the routing daemons to resolve the synchronisations issue in case of conflicts. The nasty bits of this are in the multipath code. If no priority is specified the kernel will choose an appropriate priority. Looked at by a few people at n2k8 code is much older
2008-05-06Add a PR_ZERO flag for pools, to compliment the M_ZEROThordur I. Bjornsson
malloc flag, does the same thing. use it in a few places. OK tedu@, "then go ahead. and don't forget the manpage (-:" miod@
2008-05-06retire vfs_mountroot();Thordur I. Bjornsson
setroot() is now (and has been) responsible for setting the mountroot function pointer "to the right thing", or failing todo that, to ffs_mountroot; based on a discussion/diff from deraadt@. OK deraadt@
2008-05-06Report the clock status in a signal sensor, like all other timedeltas.Marc Balmer
2008-05-06Rather than clearing particularly dangerous flags when found, justKenneth R Westerback
zero all flags when we pool_put mbufs. ok claudio@ henning@
2008-05-05Make nmea(4) behave like the other timedelta sensors and provide aMarc Balmer
signal sensor that reflects the status of the receiver. tested by and ok ckuethe
2008-05-03Introduce vop_generic_bmap(); use it where applicable.Thordur I. Bjornsson
one thing of note, fifofs changes in that its bmap now sets the runp too 0, but that was an oversight in the old code. ok art@
2008-05-02Pass FORK_SHAREFILES flag in kthread_create; avoids allocating aBret Lambert
filedesc struct and associated fdcopy operation on kernel thread creation. Instead, kernel threads share and bump reference count on proc0's filedesc. ok thib@, "definitely makes sense" art@
2008-05-02Make the SO_TIMESTAMP sockopt work. When set, this allows the user toChris Kuethe
get a timestamp of when the datagram was accepted (by udp(4), for example) rather than having to take a timestamp with gettimeofday(2) when recv(2) returns - possibly several hundreds of microseconds later. May be of use to those interested in precision network timing schemes or QoS for media applications. Tested on alpha, amd64, i386 and sparc64. manpage suggestions from jmc, ok deraadt
2008-04-23Import MPLS (Multi Protocol Label Switching)Esben Norby
MPLS support partly based on the (abandoned?) AYAME project. Basic LSR (Label Switch Router) functionality is present, but not fully functional yet. It is currently possible to insert entries in the LIB (Label Information Base) with route(8), but setting the operation type is not supported yet. Imported to allow more people to work on this in the coming weeks. ok claudio@ laurent@ dlg@
2008-04-15describe why fd passing is now so fucked up, and who's fault it isTheo de Raadt
2008-04-14garbage collect the now unused spec_ebadf();Thordur I. Bjornsson
ok dlg@
2008-04-12remove useless defines for the vnode operations, and insteadThordur I. Bjornsson
init the op array functions with whatever the define was set too. ok dlg@,blambert@
2008-04-10scrub local stack-based buffers in the tty subsystem. tested by a lot ofTheo de Raadt
developers. if you notice tty weirdnesses in the next few months, talk to me
2008-04-10Make sure the fd passing code only accepts control messages without paddingMark Kettenis
and with exactly the right amount of padding. diff actually typed in by deraadt@
2008-04-08unp_internalize() repaired wrong file structs on error. ok deraadt@, kettenis@Stefan Kempf
2008-04-08bring cloning up too date; Munge it so it will work with atleastThordur I. Bjornsson
oga@'s upcoming DRM changes and too some degree ratchov@'s audio work. It still works for bpf's though. Parts from ratchov@; fstat(1) parts from Pedro Martelletto; tested by many, ok'ed by a few; "get going with cloning" deraadt@
2008-04-07Compare device names consistantly in parsedisk().Kenneth R Westerback
ok deraadt@
2008-04-06In sendit(), len should be size_t, not int. Could cause it to returnStefan Kempf
wrong values on 64-bit machines otherwise. ok millert@, deraadt@