summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-09-03Fix !INET6 build.Martin Pieuchot
2015-09-03Convert ip{,6}_output() (cached) route entry checks to rtisvalid(9).Martin Pieuchot
This introduces a behavior change as we now reject !RTF_UP routes to output packets. This stricter check exposed a bug in the setup of new routes and was the reason for the previous revert. This should be now fixed by r1.229 of sys/net/route.c . ok bluhm@
2015-09-03Unconditionally set the RTF_UP flags when adding a route to the table.Martin Pieuchot
This makes dhclient(8) configured default routes usable without relying on the link-state change hooks not present in RAMDISK kernels. ok krw@, claudio@
2015-09-03Improve the code that tries to figure out which device we booted from. TheMark Kettenis
EFI Loaded Image Device Path Protocol typically includes partition and file components. We want to match it to a "raw" Device Path without these components though, so we declare we have found the boot device as soon as the Device Path matches the initial components of the Loaded Image Device Path. ok yasuoka@
2015-09-03Add missing net/art.c, found the hardway by reyk@Martin Pieuchot
2015-09-03Do not use an intermediary buffer on the stack of the caller whenMartin Pieuchot
submitting a read request. This also means big read requests are no longer split into multiple small transfers something that libusb consumers do not expect. Tested by ajacatoutot@. Found by Grant Czajkowski <czajkow2 AT illinois DOT edu> during the GSoC 2015.
2015-09-03Fix the condition of finding SMBIOS. Found by gerhard@.YASUOKA Masahiko
ok gerhard uebayasi deraadt
2015-09-02Make pmap_kenter_pa(9) and pmap_kremove(9) mpsafe. This required me toMark Kettenis
use atomic operations to operate on pm_stats.resident_count. Is it really necessary to keep track of that for the kernel pmap?
2015-09-02Use the pointer we got back from alloc() when calling free() instead ofMark Kettenis
something that points smack in the middle of the buffer.
2015-09-02correct sizes for free(), sighTheo de Raadt
2015-09-02sync commentChristian Weisgerber
2015-09-02sizes for free()Theo de Raadt
2015-09-02simple size for free()Theo de Raadt
2015-09-02remove a bunch of orphaned prototypes and unused functions; ok miodMike Belopuhov
2015-09-02To make logging to local syslog reliable, log a message about failedAlexander Bluhm
log atempts. sendsyslog(2) is a good place to detect and report the problem. OK deraadt@
2015-09-02Revert the two uses of rtisvalid(9) for the moment, it breaks dhclient(8)Martin Pieuchot
configured networks on RAMDISK kernels. The problem is that the default route installed by dhclient(8) does not have the RTF_UP flag in this environement and rtisvalid(9) doesn't allow you to use a RTF_DOWN route.
2015-09-02Add missing copyright.YASUOKA Masahiko
2015-09-02Fix the bios boot to pass the bootargs properly.YASUOKA Masahiko
ok deraddt
2015-09-02enter efibootTheo de Raadt
2015-09-02alloca() no longer neededTheo de Raadt
2015-09-02Bring the boot changes on amd64 to i386. alloca is deleted.YASUOKA Masahiko
Also fix the boot from BIOS and bump the version. input and ok deraadt
2015-09-02fairly easy size for free()Theo de Raadt
2015-09-02only enter deeper on amd64Theo de Raadt
2015-09-02Initial commit of uefi boot loader of OpenBSD.YASUOKA Masahiko
ok deraadt yuo
2015-09-01Replace sockaddr casts with the proper satosin(), ... calls.Alexander Bluhm
From David Hill; OK mpi@; tested kspillner@; tweaks bluhm@
2015-09-01- route-to, dup-to, reply-to should not override the block actionAlexandr Nedvedicky
Spotted by Dilli Paudel <dilli ! paudel at oracle ! com> ok jung@, ok mikeb@
2015-09-01the special check logic for /usr/share/nls/../libc.cat became failureTheo de Raadt
to return failure. open() of these paths should succeed to satisfy strerror() and friends. ok semarie
2015-09-01Kill unused ``ia_net'' field in the struct in6_ifaddr, bad copyMartin Pieuchot
paste from the IPv4 time. While here update the comment about ``ia6_ndpr'' it's now only used for autoconf.
2015-09-01Always call readdoslabel() before readgptlabel(). Doubly always call themKenneth R Westerback
in the same order. Fix writedisklabel() to follow these simple rules. ok kettenis@
2015-09-01Increase transfer FIFOs for dwc2, to improve USB performance. The newVisa Hankala
values are from dwc2 of NetBSD. ok jmatthew@, jasper@
2015-09-01Convert ip{,6}_output() (cached) route entry checks to rtisvalid(9).Martin Pieuchot
ok bluhm@
2015-09-01Introduce rtisvalid(9) a function to check if a (cached) route entryMartin Pieuchot
can be used or should be released by rtfree(9). It currently checks if the route is UP and is not attached to a stall ifa. ok bluhm@, claudio@
2015-09-01ditch a few prototypes for non-existant functionsMike Belopuhov
2015-09-01Do not try to find a possible ``ifa'' in rt_ifal_del(9) and trust theMartin Pieuchot
checks done in rtrequest1(9). This chunk has been introduced in 1991 when rtrequest1(RTM_DELETE...) was not doing a route lookup and no longer make any sense. ok bluhm@
2015-09-01Reject USB requests that could damage the bus integrity, just like itMartin Pieuchot
is done in ugen(4). Found by Grant Czajkowski during the GSoC 2015.
2015-09-01Use the correct free(9) size for the RX ring.Martin Pieuchot
ok dlg@, phessler@
2015-09-01Corrects a use-after-free in tame_namei().Sebastien Marie
ok doug@
2015-09-01Sync bus_dmamap_load_raw(9) with amd64/i386 in order to respect theMartin Pieuchot
segement size constraint. Make xhci(4) work on my G5. ok dlg@
2015-09-01Push down the KERNEL_LOCK/KERNEL_UNLOCK calls into the back-end allocatorMark Kettenis
functions. Note that these calls are deliberately not added to the special-purpose back-end allocators in the various pmaps. Those allocators either don't need to grab the kernel lock, are always called with the kernel lock already held, or are only used on non-MULTIPROCESSOR platforms. pk tedu@, deraadt@, dlg@
2015-09-01set sival_ptr before calling trapsignal() for user breakpoint/trace trapsJonathan Gray
ok guenther@
2015-09-01trivial size for free()Theo de Raadt
2015-09-01sizes for free(), mostly related to firmwares.Theo de Raadt
ok dlg
2015-09-01Only advertise the color depth we actually support. This makes theMark Kettenis
xf86-video-wsfb driver work. Map the framebuffer in write-combining mode. This significantly speeds things up. ok yuo@, yasuoka@, deraadt@
2015-09-01free() firmware with right len; ok dlgTheo de Raadt
2015-09-01fairly simple sizes for free()Theo de Raadt
2015-09-01size for free(), and make allocation side look similarTheo de Raadt
2015-09-01Delete bogus MATH_EMULATE holdover from i386Philip Guenther
2015-09-01free() sizeTheo de Raadt
2015-09-01size for free()Theo de Raadt
2015-09-01initialise the width var in db_struct_offset_cmd()Jonathan Gray
ok miod@ deraadt@