summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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@
2008-04-04ratecheck(9) only seems to be used to limit things to very coarse intervalsDavid Gwynne
like .25 seconds or 5 seconds. the accuracy of microuptime is not really needed then, so switch it to getmicrouptime. ok henning@ art@
2008-04-02repair code which blocks passing fd's for block devices orTheo de Raadt
dir-outside-chroot-directory into a chroot jail ok markus
2008-03-31nope, sorry, the miod/naddy raidframe change breaks almost all ramdisks.Theo de Raadt
the basic idea is that ramdisks boot the same way as swap generic -- this commit also improves the comment in that area. in this case the one outlier is raidframe, and those who use it will no longer be able to put off repairing it -- raidframe must follow the same setroot() / bootdv API that everything else in the system uses. debugged with krw
2008-03-31purge memory in the tty clist rings as we advance; tested by a fewTheo de Raadt
2008-03-31Refine "netboot" interface group semantics to indicate the interface weTheo de Raadt
booted from to the most precision; preferring the boot device, or if that is not known, the root device discussed with miod and reyk tested by beck
2008-03-30Do not do the ``swap generic'' behaviour if rootdev != NODEV when enteringMiod Vallat
setroot(), as this neuters RAIDframe autoconfiguration; found the hard way by naddy@
2008-03-24Make it possible to disable/enable pseudo devices in UKC, config file andMats O Jansson
at config -e. -moj ok deraadt@
2008-03-24We were led astray (like many others before us) to believe thatTheo de Raadt
msg_controllen should be CMSG_LEN() instead of CMSG_SPACE() because the kernel fd passing code was erroring out when "cm->cmsg_len != control->m_len" instead of "CMSG_ALIGN(cm->cmsg_len) != control->m_len". On machines with 16-byte alignment, when one thinks about how the ALIGN padding happens, it is clear that msg_controllen has to be CMSG_SPACE() or the kernel cannot hope to bounds check the messages correctly. For now, change the check to cm->cmsg_len > control->m_len to permit the old ABI to continue working. Later perhaps when all the old binaries are gone we can stop permitting their use. lots of discussion with kettenis
2008-03-23setroot() is supposed to be safe in all cases, so kill the special casesTheo de Raadt
for RB_DFLTROOT; ok miod
2008-03-23Wrong printf construct.Miod Vallat
2008-03-16regenOtto Moerbeek
2008-03-16Widen some struct statfs fields to support large filesystem stataOtto Moerbeek
and add some to be able to support statvfs(2). Do the compat dance to provide backward compatibility. ok thib@ miod@
2008-03-15In statclock(), fix local index type in the profiling code. AvoidsMiod Vallat
out-of-bounds array accesses on some platforms.
2008-03-04Do not permit insertion of a "" symbolic link translation into the pathTheo de Raadt
translation; abort with ENOENT; ok millert kettenis thib, pr #5752
2008-02-21Prevent possible free list corruption when malloc(9) sleeps.Mark Kettenis
From NetBSD, kindly pointed out by YAMAMOTO Takashi. ok miod@