summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-04-10Fix various glitches in queue macro usage.Philip Guenther
ok millert@
2013-04-09Add a magic number to the head of the signature block. Check for magicMike Larkin
number match during signature block read during speculative unhibernate on boot. If the magic number matches but we have otherwise chosen to not unhibernate (due to kernel/memory mismatch), clear the signature block early to avoid accidentally trying to unhibernate on subsequent boots. This prevents accidental unhibernates and endless unhibernate/reboot cycles. Add a define for HIBERNATE_DEBUG for various debugging printfs (disabled by default). Finally, change some KASSERTs to warning printfs (they probably shouldn't have been KASSERTs in the first place). "looks good" deraadt@
2013-04-09newvers.sh uses 'basename' to determine the directory name to stamp theMike Larkin
kernel version ID with, but it did not account for spaces in the name, leading to version strings like "OpenBSD 5.3-current ()". Quote the call to basename to permit paths with spaces in the name. ok halex@, deraadt@
2013-04-09When submitting a request the device's default pipe is alwaysMartin Pieuchot
used, so do not pretend to support a different one and get rid of the unused usbd_do_request_flags_pipe() function. ok mglocker@
2013-04-09There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()Martin Pieuchot
directly this also makes it easier to understand which function actually generates IO. ok mglocker@
2013-04-09Remove read-only ipsec variables and directly use defines instead.Martin Pieuchot
ok mikeb@, markus@
2013-04-09knf. even old ttys need love.Ted Unangst
2013-04-09Need #include "isa.h" for NISAPhilip Guenther
Diff from Christian Groessler (chris (at) groessler.org)
2013-04-09Add missing #ifdef CRYPTO around amd64_has_aesniPhilip Guenther
Diff from Silamael (Silamael (at) coronamundi.de)
2013-04-08A few changes that reduce the diffs to the Linux code. Mostly style issues,Mark Kettenis
but in one case change the errno value that gets returened to match Linux.
2013-04-08Recalculate the IP and protocol checksums of packets (re)injected viaLawrence Teo
divert(4) sockets. Recalculation of these checksums is necessary because (1) PF no longer updates IP checksums as of pf.c rev 1.731, so translated packets that are diverted to userspace (e.g. divert-packet with nat-to/rdr-to) will have bad IP checksums and will be reinjected with bad IP checksums if the userspace program doesn't correct the checksums; (2) the userspace program may modify the packets, which would invalidate the checksums; and (3) the divert(4) man page states that checksums are supposed to be recalculated on reinjection. This diff has been tested on a public webserver serving both IPv4/IPv6 for more than four weeks. It has also been tested on a firewall with divert-packet and nat-to/rdr-to where it transferred over 60GB of FTP/HTTP/HTTPS/SSH/DNS/ICMP/ICMPv6 data correctly, using IPv4/IPv6 userspace programs that intentionally break the IP and protocol checksums to confirm that recalculation is done correctly on reinjection. IPv6 extension headers were tested with Scapy. Thanks to florian@ for testing the original version of the diff with dnsfilter and Justin Mayes for testing the original version with Snort inline. Thanks also to todd@ for helping me in my search for the cause of this bug. I would especially like to thank blambert@ for reviewing many versions of this diff, and providing guidance and tons of helpful feedback. no objections from florian@ help/ok blambert@, ok henning@
2013-04-08Add new ioctl's USB_DEVICE_GET_CDESC and USB_DEVICE_GET_FDESC to usb(4).Marcus Glocker
Those are the equivalents for ugen(4)'s USB_GET_CONFIG_DESC and USB_GET_FULL_DESC. Help and OK mpi@, jmc@
2013-04-08allow octeon to find it's root device, based on the flags passed by U-Boot. ↵Jasper Lievisse Adriaanse
The ${bootcmd} needs to be something like 'bootoctlinux root=/dev/octcf0'. This will be temporary untill we have proper bootblocks, but for now, this (in combination) with an upcoming installer diff allows my CAM-0100 to autoboot straight of the disk, without having to load the kernel via TFTP. ok bcallah@ yasuoka@
2013-04-08Fix typo in ale_stop_mac().Brad Smith
From FreeBSD ok kevlo@
2013-04-08Use the fixed pixel clock for eDP in intel_dp_set_m_n()Jonathan Gray
from linux 3.8.6
2013-04-08Don't clobber crtc->fb when queue_flip failsJonathan Gray
from linux 3.8.6
2013-04-07Make the SO_BINDANY socket option also work for raw IPv6 sockets.Alexander Bluhm
OK markus@
2013-04-07check BGE_SGDIG_STS when the chip is NOT a 5717 A0, like freebsd.David Gwynne
found by david imhoff. tested by david on a 5719 and by me on a 5720 and 5721
2013-04-07david imhoff points out that the error handling in mfi_init_ccb gets theDavid Gwynne
index to which ccb to free wrong. this takes the logic from mpi/mpii/mfii which pulls the ready ccbs off the free list rather than rely on the current index from the for loop that we failed inside of. thanks to david for finding this out.
2013-04-06make kernel compileTheo de Raadt
2013-04-06fix format string % escapeStefan Fritsch
2013-04-06allow GENERIC.MP to compile again...just for shits and giggles.Jasper Lievisse Adriaanse
2013-04-06i missed this file too.Ted Unangst
2013-04-06i missed a file, crap. found by deraadtTed Unangst
2013-04-06there aren't any locks in here anymore, so we don't need lock.hTed Unangst
2013-04-06shuffle around some poison code, prototypes, values...Ted Unangst
allow some more pool debug code to be enabled if not compiled in bump poison size back up to 64
2013-04-06rthreads are always enabled. remove the sysctl.Ted Unangst
ok deraadt guenther kettenis matthew
2013-04-05Even though Sandy Bridge and Ivy Bridge have stolen memory, substracting itMark Kettenis
from the GTT aperture doesn't make a lot of sense. On some machines the amount of stolen memory is the same size of even larger than the aperture! So pretend that there is no stolen memory on these systems for now. ok jsg@
2013-04-05don't hardcode the size of u-boot's argv, but use a define instead.Jasper Lievisse Adriaanse
to be re-used shortly elsewhere..
2013-04-05Brad didn't even try building the ramdisk, because it is 7.5K oversize.Theo de Raadt
2013-04-05remove some obsolete castsTed Unangst
2013-04-05unfinished opti device code is never called or usedTed Unangst
2013-04-05Add the remaining USB Wifi adapters to the CD RAMDISK media for usersBrad Smith
using the media with upgrades - athn(4), atu(4), otus(4), rsu(4), uath(4) ok deraadt@
2013-04-05Fix USB athn(4) to be able to build on the RAMDISK. RAMDISK has SMALL_KERNELBrad Smith
so there is no HostAP. athn_usb_newassoc() would return if not in HostAP mode so just stub out the function and don't build the callback function for the RAMDISK. ok deraadt@
2013-04-05enable com3 on both i386 and amd64 (com4 config is added, but disabled)Theo de Raadt
ok miod kettenis tedu
2013-04-05move the bounds check for execbuffer relocation count closer to linuxJonathan Gray
ok kettenis@
2013-04-04regenBrad Smith
2013-04-04Add Broadcom BCM5717C, BCM5725, BCM5727, BCM5762 PCI ids.Brad Smith
2013-04-04The intel_dp_i2c_aux_ch() function has to return Linux-style negative errnoMark Kettenis
values. Its callers assume a positive return value means the function was successful.
2013-04-04Merge the duplicate IPv4 and IPv6 checksum checking code in udp_input()Alexander Bluhm
into one block. OK mpi@
2013-04-04Do not allow the listen(2) syscall for an already connected socket.Alexander Bluhm
This would create a weird set of states in TCP. FreeBSD has the same check. Issue found by and OK guenther@
2013-04-04Make icmp6 ready for 64 bit time_t by adding a range check and anAlexander Bluhm
explicit cast. OK deraadt@
2013-04-04Fix bug where clear_remove() and clear_inodedeps() would not iterateBob Beck
over the entire pagedep and inodedep hash tables due to an off-by-one mistake in loops. Spotted by and diff from Pedro Martelletto. Sent upstream to Kirk and also fixed in FreeBSD. ok otto@ millert@
2013-04-04zap redundant assignmentsAlexander Hall
2013-04-03Return ENOENT instead of EBADF if looking up a gem object fails.Mark Kettenis
Return EINVAL instead of EBADF if the same object is specified twice in an execbuffer2 call. This is what Linux does.
2013-04-03Fix a typo in the bge_ape_lock_init() function.Brad Smith
From David Imhoff. ok dlg@ sthen@
2013-04-03fix comment detailing the memory mapJasper Lievisse Adriaanse
from syuu@
2013-04-03move i915_gem_find_inactive_object() into i915_gem_evict.cJonathan Gray
2013-04-03fix EDID detailed timing frame rateJonathan Gray
from linux 3.8.5
2013-04-03fix EDID detailed timing vsync parsingJonathan Gray
from linux 3.8.5