summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-07-05When the kernel runs out of mbuf clusters, the hme receive ring mayAlexander Bluhm
become empty. In that case, the hme driver could not recover as the ring was only filled after receiving data. Check and potentially fill an empty receive ring every second in hme_tick(). ok kettenis@
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
2011-07-05Add checks for sector-alignment and whole number of sectors toMatthew Dempsky
bounds_check_with_label() and generally cleanup the code while here. ok krw@ ("I like this a *lot*"); "i like it" tedu@
2011-07-05Replace expanded version of RW_PROC() with the macro.Tobias Weingartner
ok oga@
2011-07-05i forgot to set the sector_count when translating WRITE SAME 16David Gwynne
into DSM/TRIM commands. found by tedu
2011-07-05allow option KVA_GUARDPAGES to compile.David Hill
2011-07-05now of course I only noticed if_qflush is completely unused afterHenning Brauer
adjusting it to the new world order in my tree... remove it, ok ryan claudio
2011-07-05When calling nfs_request() for what could be an async request, passPhilip Guenthe
down curproc instead of the struct proc from the I/O request...which may gone away behind our back. Assert that the supplied request *is* curproc in a couple other places. Reproduction and testing by sthen@ ok deraadt@, beck@, art@
2011-07-05disable COMPAT_AOUT, it's useless now, but leave the code in the treeTed Unangst
to encourage someone to convert remaining a.out archs to elf. :) ok deraadt
2011-07-05Remove the osyscall() kernel-entry; we do not use it anymore.Theo de Raadt
ok kettenis guenther tedu
2011-07-04Say no to hand-rolled m_adj(). It also kills three XXX.Claudio Jeker
OK dlg@ henning@
2011-07-04In fact using our own limits.h is the way to go. Okay kettenis@.Paul Irofti
2011-07-04Clean-up NETBSD specific defines. Prodded by kettenis@.Paul Irofti
2011-07-04Add ia64 kernel include files needed for userland.Paul Irofti
Okay deraadt@, drahn@, kettenis@.
2011-07-04Temporarily back out msi for inteldrm.Owain Ainsworth
Some gm45 and 965 are having issues and this fixes it for halex at least. Art's machine (945gm) is also playing up but he didn't update for a year (and the problem doesn't look like what i would expect).
2011-07-04remove all the compat svr4 filesTed Unangst
2011-07-04Fix debugging prints in softraid(4) so that it can compile withMatthew Dempsky
SR_DEBUG enabled. Broken since r1.227.
2011-07-04remove compat_svr4 support. ok deraadtTed Unangst
2011-07-04Use the SDEV_2NDBUS flag like isp(4) instead of the currentMatthew Dempsky
scsi_link::scsibus hack to determine which channel the link is associated with. "looks sane" dlg@, but haven't found any testers yet; committing so further SCSI refactorings can go in. dlg@ or I will back out or fix if anything breaks.
2011-07-04Intel AHCIs don't support port multipliers so far, yet some (mostly ICH9 and ↵Jonathan Matthew
3400 series) report that they do, and some BIOSes for those chipsets don't clear the capability bit like they're supposed to. Since we know it doesn't work, don't check for port multipliers on these controllers. Replaces my earlier hack for a specific 3400 series device. ok kettenis@ phessler@
2011-07-04move the specfs code to a place people can see it; ok guenther thib krwTheo de Raadt
2011-07-04move the specfs code to a place people can see it; ok guenther thib krwTheo de Raadt
2011-07-04move the specfs code to a place people can see it; ok guenther thib krwTheo de Raadt
2011-07-04Disable NNPFS;Thordur I. Bjornsson
A purdy OpenAFS port is being worked on and everybody hates having to touch files inside nnpfs/ so it is going to go away real soon. ok deraadt@, beck@
2011-07-04No need to check proto == IPPROTO_ETHERIPDavid Hill
fix two typos (protcol -> protocol)
2011-07-04use mtod.David Hill
no change in binary "Sure" claudio@
2011-07-04move the specfs code to a place people can see it; ok guenther thib krwTheo de Raadt
2011-07-04make sure RTM_IFINFO is sent when lo(4) handles SIOCSIFADDR; without thisStuart Henderson
ospfd doesn't notice an interface added at runtime unless you ifconfig down+up. ok phessler@ claudio@
2011-07-04Rename the pf_pdesc field rh_cnt to badopts as it is also used forAlexander Bluhm
IPv4 options now. ok mcbride@ henning@
2011-07-04Fix to be able to bind a raw socket to 0.0.0.0. It had been broken afterYASUOKA Masahiko
1.54. ok claudio@ sosososo henning@
2011-07-04Finish ansification.Mark Kettenis
2011-07-04Fix another kqfilter return value.Nicholas Marriott
ok deraadt
2011-07-04Give each pmap its own space ID. The current algorithm is silly, as we'll wrapMark Kettenis
and might end up with duplicates, but that's not an issue until we're multi-user. Change the TLB miss code to enter mappings with the right protection ID. Properly switch pmaps on context switches. This makes the copyins we do before starting init actually work instead of failing with EFAULT.
2011-07-04Nuke the useless D_KQFILTER flag and just check that d_kqfilter isNicholas Marriott
filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
2011-07-04IPv4 packets with IP options get dropped and no state is created.Alexander Bluhm
IPv6 packets with routing headers get also dropped. Use the same fix for them to avoid that a state is created. ok claudio@
2011-07-04Nuke a dangling bit left over from the now gone PRU_PEEREIDPhilip Guenthe
ok deraadt@
2011-07-04Force the sigreturn syscall to return to userspace via iretq by settingPhilip Guenthe
the MDP_IRET flag in md_proc, then switch sigcode to enter the kernel via syscall instead of int$80. Rearrange the return paths in both the sysretq and iretq paths to reduce how long interrupts are blocked and shave instructions. ok kettenis@, extra testing krw@
2011-07-04Remove orphaned splbios that have no matching splx,Jonathan Gray
this has been a problem since internal xfer queues got removed back in 2008. ok matthew@ krw@
2011-07-04Bye bye pf_test6(). Only one pf_test function for both IPv4 and v6.Claudio Jeker
The functions were 95% identical anyway. While there use struct pf_addr in struct pf_divert instead of some union which is the same. OK bluhm@ mcbride@ and most probably henning@ as well
2011-07-04Fix typo; ok ariane@Philip Guenthe
2011-07-04Convert to ANSI.Matthew Dempsky
ok md5
2011-07-04assemble is a more appropriate place for the setup code than allocate.Ted Unangst
not that it works any better.
2011-07-04remove unneeded cast.David Hill
no binary change. ok jmatthew@
2011-07-04bread does nothing with its ucred argument. remove it. ok matthewTed Unangst
2011-07-04LINK_STATE cleanup. It is no longer needed to special case carp(4).Claudio Jeker
LINK_STATE_IS_UP() does the trick now for all cases. OK henning@ deraadt@
2011-07-04bread() takes daddr64_t block address, not int32_t, so use correct cast. ↵Kenneth R Westerback
bread() always takes DEV_BSIZE address units so don't bother getting the disklabel and trying to convert units to d_secsize. Nukes last references to d_secsize in ufs/. ok tedu@
2011-07-04redo the timeout and input handling. unify them and fix some bugs.Ted Unangst
we no longer retry commands, somebody else can worry about that.
2011-07-04make it look like other softraid codeTed Unangst
2011-07-04whack the collider stuff for nowTed Unangst
2011-07-04there's no way we can use just a single workq task here. one task for all ↵Ted Unangst
packets?