summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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@
2008-02-15revert to a pre-mutex state. for unknown reasons, the mutexes do not provideTed Unangst
sufficient exclusion on alpha, leading to self-locking panics.
2008-02-13Make sure we reserve enough stack space on MACHINE_STACK_GROWS_UP architecturesMark Kettenis
by aligning the stack gap. Fixes gettext port build (and probably many others). ok miod@, tedu@, tested by sthen@
2008-02-09Introduce HW_PHYSMEM64 and HW_USERMEM64 sysctls, which don't overflow onMark Kettenis
machines with more than 4GB of memory. Make sysctl(8) print values obtained using these sysctls for hw.physmem and hw.usermem. ok krw@, miod@
2008-01-28spelling in comment; ok mbalmer@ jmc@Kevin Steves
2008-01-22Fix a double VOP_UNLOCK() that was introduced into the error pathTodd C. Miller
in rev 1.141. From Christian Ehrhardt and Pedro Martelletto. OK hshoexer@ miod@
2008-01-20Revert 1.25 and do not use _Q_INVALIDATE on timeout structures; beingMiod Vallat
subtly different from CIRCLEQ, it is possible, when emptying the whole timeout chain, to end up with CIRCQ_EMPTY being false, and bad things happen. Back to the drawing board...
2008-01-16Dont use PR_LIMITFAIL with PR_WAITOK when M_WAIT is passed withThordur I. Bjornsson
the flag argument to the m_*get* functions. Since PR_LIMITFAIL can cause us to return NULL if hit the limits. ok claudio@
2008-01-06Degrade the sensor state from OK to WARNING and CRITICAL after periods ofMarc Balmer
ten minutes (same behaviour as nmea(4)). If the cable is pulled, the sensor no longer keeps the OK status forever. Tested with a PEX511 as MSTS sender.
2008-01-05Add support for the Meinberg Standard Time String format that all MeinbergMarc Balmer
radio clocks can transmit over serial ports. This is implemented as a line discipline similar to nmea(4) and provides a timedelta sensor. See http://www.meinberg.de/english/specs/timestr.htm for details on the MSTS format. ldattach(8) is extended to support the "msts" line discipline and two stopbits (which some radio clocks, e.g. the C51 use). Do a "make includes" before your next system build. Initially from Maurice Janssen based on nmea(4). "go for it" deraadt
2008-01-05regenMiod Vallat
2008-01-05Mark vadvise(2) as obsolete and remove its implementation, so instead ofMiod Vallat
returning EINVAL, you'll get ENOSYS. No serious code has used this system call in at least fifteen years. The libc stub will be removed at the next major crank time. ok henning@ deraadt@ krw@ toby@
2008-01-02Do not lose nanosleep() return value in the last copyout if nonzero; PR#5697Miod Vallat
2008-01-01Welcome to the jungle of 2008.Miod Vallat
2007-12-30Remove unused variable consintr. ok mbalmerAlexander Bluhm
2007-12-27allow for max 5000 uses/sec offset adjust, this makes it possible forOtto Moerbeek
clocks with drifts larger than 500ppm to be corrected.
2007-12-27fifofs, deadfs and specfs all have the same "trivial lookup routine thatThordur I. Bjornsson
always fails". Introduce vop_generic_lookup(), which is a trivial lookup routine that always fails and use that instead, zap the redundant copies. ok toby@, tedu@, art@
2007-12-23protect the disk statistics with a mutex.David Gwynne
ok tedu@ kettenis@
2007-12-20Remove an obsolete nfs kludge, spotted by Frank Denis (many thanks), also ↵Charles Longeau
there in NetBSD and FreeBSD trees. Tested by thib@ who found that it shaved 18min wall clock time of coping a 20G file. Been in snaps for some time "looks ok" markus@ "makes sense" blambert@ ok claudio@ thib@
2007-12-16panic on negative blkno or size; ok kettenis@ deraadt@Otto Moerbeek
2007-12-13replace calls to ltsleep with tsleepBret Lambert
remove PNORELOCK flag, as PNORELOCK is used for msleep ok art@ thib@
2007-12-13use a mutex to protect workq. incidentally, this removes the additionalTed Unangst
creation of threads which may have caused multile syswq threads to start. ok dlg
2007-12-12regenThordur I. Bjornsson
2007-12-12Garbage collect a few members of the vnodeop_desc structure,Thordur I. Bjornsson
they where used to keep "offsets" of arguments too the VOP's for use by bypass routines, these have been unused now for quite some time; Tested on sparc64/amd64 (shaves about 1k of GENERIC). ok beck@
2007-12-11Don't store arguments and environment in the space reserved for stackgap onMark Kettenis
machines where the stack grows up. Fixes systrace(1) on hppa. ok deraadt@
2007-12-11remove an overlooked simple_lock everybody likes to point out to me.Ted Unangst
2007-12-11release the pool mutex if we may sleep in the backendTed Unangst