summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-09-28malloc() without a WAIT flagTheo de Raadt
2010-09-28wrap long line. correct indent. delete a useless comment.YASUOKA Masahiko
OK djm@ claudio@ dlg@
2010-09-28Make this compile again.Miod Vallat
2010-09-28typoMiod Vallat
2010-09-28replace hand-rolled infinite loop with LIST_FOREACHBret Lambert
ok claudio@ guenther@
2010-09-28Correct the handling of GS.base when iretq faults: the fault happensPhilip Guenthe
with CPL == 0 but the user's GS.base, so the normal INTRENTRY handling won't work. Contrawise, the asm that trap() redirects us to when that happens (resume_iret) sees a trapframe showing CPL==3 but it's run with the kernel's GS.base, so INTRENTRY won't work there either. asm style fixes drahn@ and mikeb@ ok kettenis@
2010-09-28do not assume PR_NOWAIT is 0; it is not anymoreTheo de Raadt
2010-09-28missing PR_NOWAITTheo de Raadt
2010-09-27must have either PR_WAITOK or PR_NOWAIT set.David Gwynne
2010-09-27Unbreak atalk: don't call ifa_add() until the ifa_addr pointer has been setPhilip Guenthe
ok henning@
2010-09-27A few M_ZEROs without any M_WAITOK/M_NOWAITs.Thordur I. Bjornsson
2010-09-27Make sure the SEND_DEV_ID command is sent synchronously, so the response bufferMiod Vallat
is valid when we look at it. Repairs intellimouse (former pmsi) operation.
2010-09-27must use M_WAITOK here; run into by landryTheo de Raadt
2010-09-27a pool_get() assuming that PR_NOWAIT is 0 (not anymore!); run into by naddyTheo de Raadt
2010-09-27add support for tracing process stacks in ddb (trace /p).Mike Belopuhov
due to the way arguments are parsed, pid has to be specified in the hexadecimal notation. tested by me and sthen, ok sthen kettenis
2010-09-27tedu's shiny new pool_get kassert found an instance of PR_NOWAIT orMarco Peereboom
PR_WAITOK not being set. While here add a diagnostic check for malloc.
2010-09-26support variable sized (bControlSize != 2) processing unit bmControls,Jacob Meuser
and add support for more processing unit controls. from Martin Pieuchot, thanks!
2010-09-26No need for ums either; from BradMiod Vallat
2010-09-26No need for pms on the installation media; from BradMiod Vallat
2010-09-26unify some pool and malloc flag values. the important bit is that all flagsTed Unangst
have real values, no 0 values anymore. ok deraadt kettenis krw matthew oga thib
2010-09-26Merge pmsi(4) into pms(4). From Alexandr Shadchin on tech@.Miod Vallat
2010-09-26remove static so things show up in ddb.Thordur I. Bjornsson
ok miod@, oga@, tedu@
2010-09-26Length field in L2TP header was broken.YASUOKA Masahiko
2010-09-25ppb(4) should respect pci_dopm, like pci(4) does, and not try to poweroffMike Larkin
the bridge if pci_dopm=0. Fixes Gateway LT3103u and Lenovo Thinkpad 100e netbooks, allowing them to suspend again (if pci_dopm is set to 0 in acpi.c). Tested by myself and deraadt on a variety of hardware. ok deraadt@
2010-09-25when vscsi is closed, deactivate all child devices so when we kill theDavid Gwynne
commands still on the queues the child device wont retry it cos its been deactivated.
2010-09-24- missing semicolon from r@undefined.chJasper Lievisse Adriaanse
2010-09-24- let zaurus compile again after utwitch enableJasper Lievisse Adriaanse
2010-09-24avoid potential infinite loopBret Lambert
ok deraadt@
2010-09-24Add L2TP support to PIPEX.SUENAGA Hiroki
We can use IPv6 address as outer header of L2TP. Kernel ABI is changed. You must update npppd. OK @claudio, yasuoka@, dlg@
2010-09-24use a better description for the vnd(4) entry on this file.Igor Sobrado
ok millert@
2010-09-24When processing IPv6 RA messages we may end up adding a new IPv6 addressJoel Sing
from interrupt context. This results in problems if the process of adding a new address makes use of pools that use PR_WAITOK (or anything else that may sleep). To avoid this problem, create a workq task so that the new IPv6 address is added from within process context. ok dlg@ henning@
2010-09-24Implement if_freenameindex() as a real function as required by posix.Claudio Jeker
OK deraadt@, millert@
2010-09-24Make the endpointer also const so that there is no warning from gcc4Claudio Jeker
about discarding a qualifier. OK deraadt@ krw@
2010-09-24Add stricter asserts to DIAGNOSTIC kernels to help catch mutex andMatthew Dempsky
rwlock misuse. In particular, this commit makes the following changes: 1. i386 and amd64 now count the number of active mutexes so that assertwaitok(9) can detect attempts to sleep while holding a mutex. 2. i386 and amd64 check that we actually hold mutexes when passed to mtx_leave(). 3. Calls to rw_exit*() now call rw_assert_{rd,wr}lock() as appropriate. ok krw@, oga@; "sounds good to me" deraadt@; assembly bits double checked by pirofti@
2010-09-24vscsi lives once more!David Gwynne
2010-09-24Fix bus space mapping bugs for GPIO's and MFGPT's and while at it add properPaul Irofti
defines for the constants used while mapping. Okay miod@, deraadt@.
2010-09-24remove dying flag in detach() function.Yojiro Uo
The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
2010-09-24useless storeTheo de Raadt
2010-09-24fix typo in utwitchDavid Gwynne
2010-09-24Fixes before-boot umass hangs on units without media.Theo de Raadt
In disk_readlabel() if the ioctl fails don't forget to close the disk. Avoid sharing a static error buffer between a workq and mountroot since they can compete. Pass the dev_t to the workq inside one of the arguments without a malloc'd object. ok miod dlg krw
2010-09-24try to print the attach dmesg line in one unit, rather than intermixingTheo de Raadt
it with slow operations. ok jsg yuo
2010-09-24TCP send and recv buffer scaling.Claudio Jeker
Send buffer is scaled by not accounting unacknowledged on the wire data against the buffer limit. Receive buffer scaling is done similar to FreeBSD -- measure the delay * bandwith product and base the buffer on that. The problem is that our RTT measurment is coarse so it overshoots on low delay links. This does not matter that much since the recvbuffer is almost always empty. Add a back pressure mechanism to control the amount of memory assigned to socketbuffers that kicks in when 80% of the cluster pool is used. Increases the download speed from 300kB/s to 4.4MB/s on ftp.eu.openbsd.org. Based on work by markus@ and djm@. OK dlg@, henning@, put it in deraadt@
2010-09-24dead store; found by clangTheo de Raadt
2010-09-24move DEBUG-only variable into #ifdefTheo de Raadt
2010-09-24itojun picked exactly the right reason in that REASON_SET call. really noHenning Brauer
reason to question himself by adding an XXX
2010-09-24use pd->rdomain for the PF_MISMATCHAW checks in pf_test_fragment instead ofHenning Brauer
hardcoding 0. roughly almost a bit equivalent to what pf_test_rule does. changing the rdomain for not reassembled fragments is not going to work ever, so the full dance pf_test_rule does doesn't make sense here. speaking of sense, I don't see anything remotely resembling sense in pf filtering on fragments without reassembling them first. with/ok claudio
2010-09-24no need to pf_tag_packet in the stateless case in pf_test sinceHenning Brauer
pf_test_rule will have done it already, as correctly XXX-comment noted by claudio almost a year ago. pf_test6 (which is scarily different there) didn't have that at all.
2010-09-24hello, this is captain obvious speaking:Henning Brauer
/* XXX This does NOT affect pass rules! */ SLIST_FOREACH(ri, &s->match_rules, entry) { ... delete that comment, entirely superfluous
2010-09-24remove misleading XXX comment. it is pretty clear by now thatHenning Brauer
pf_compare_state_keys will stay, we play safe.
2010-09-24nicer linewraps, purely cosmeticHenning Brauer