summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-17ssl_session_cmp is not a sort function, can use CRYPTO_memcmp here too.Ted Unangst
2014-06-17The io clock on Octeon II (CN6xxx) runs at a different rate to the cpu clock.Jonathan Matthew
Program the uarts based on the io clock rate on these platforms. ok jasper@ pirofti@ yasuoka@
2014-06-17Use MAP_INHERIT_ZERO in arc4random(3)Matthew Dempsky
Now instead of calling getpid() each time a user invokes arc4random(), we're able to rely on the kernel zero'ing out the RNG state if the process forks. ok deraadt, djm
2014-06-17Fix format string under MP_LOCKDEBUGTobias Ulmer
2014-06-16Enable PCI power management on Lemote.Paul Irofti
Remaining battery test results on Lemote after 30m in suspend: pci_dopm = 0: 82%, 68min pci_dopm = 1: 86%, 81min Suggested by deraadt@ Okay miod@, deraadt@
2014-06-16Revert "Always create a local route for every configured IPv4 address",Martin Pieuchot
it introduces a regression with default routes & p2p interfaces. Problem reported by naddy@
2014-06-16Allow autoinstall to fetch/install sets from multiple locations.Robert Peichaer
Noted by and OK sebastia@ OK halex@
2014-06-16Merge NetBSD commit:Tobias Stoeckmann
Move to 2 clause license, approved by Wolfgang Solfrank. ok deraadt@, krw@
2014-06-16tweak extraction for out-of-order archives: do a first passMarc Espie
where we register every actual file in the plist by its path relative to cwd. Note every meta info as extracted (for partial packages to make sense), then do a newer extract loop, where each archive member must match by path. That way, we can close archives early as soon as we've extracted every new file. To be used shortly by pkg_create. Note that new packages *won't* be extractible by the old tools.
2014-06-16tweak the size_and support to be able to do stuff out of orderMarc Espie
2014-06-16fix bug introduced by work-around: sets with nothing to do must be markedMarc Espie
uptodate as well. Restores ntogo to working order
2014-06-15Correct precedence for returned value.Andrew Fresh
style suggested and ok espie@
2014-06-15free iv, then cleanse. from Cyril JouveTed Unangst
2014-06-15Use sizeof(struct file *) consistently for memcpy()'ing fd_ofiles.Matthew Dempsky
Pointed out by Jean-Philippe Ouellet.
2014-06-15Fix vnode leak in systrace(4).Matthew Dempsky
If a user calls STRIOCGETCWD two or more times in a row without an intervening STRIOCRESCWD, then the references held on fst->fd_{c,r}dir would leak. ok miod
2014-06-15Simplify EVP_MD_CTX_create() by just using calloc(). Also, use 0 ratherJoel Sing
than '\0' for several memset(). ok beck@ miod@
2014-06-15Simplify EVP_CIPHER_CTX_new() - stop pretending that EVP_CIPHER_CTX_init()Joel Sing
does something special... just use calloc() instead. ok beck@ miod@
2014-06-15Add missing OPENSSL_cleanse() in aead_aes_gcm_cleanup().Joel Sing
ok beck@ miod@
2014-06-15The OPENSSL_cleanse() in aes_gcm_cleanup() only cleans the gcm field of theJoel Sing
EVP_AES_GCM_CTX, leaving the AES key untouched - clean the entire context, rather than just part of it. ok beck@ miod@
2014-06-15Rename ssl3_record_sequence_update() to ssl3_record_sequence_increment(),Joel Sing
so that it reflects what it is actually doing. Use this function in a number of places that still have the hand rolled version. ok beck@ miod@
2014-06-15Fix a few format string bugs with -DDEBUGStefan Fritsch
2014-06-15Fix hang with virtio event_idx featureStefan Fritsch
When using the RING_EVENT_IDX feature, we must first call publish_avail_idx() and then read VQ_AVAIL_EVENT(vq), or there is a race condition that may cause us to miss that the host needs to be notified. This resulted in an occasional hang of network in vio(4).
2014-06-15Decode ModR/M for 32-bit MOVSX instruction.Paul Irofti
Heads-up from Xen Li (delphij@FreeBSD), thanks! Tested on Sony VGN-P530H. Okay mlarkin@, matthieu@
2014-06-15Fix 0x67 prefixed LEA instruction.Paul Irofti
Heads-up from Xen Li (delphij@FreeBSD), thanks! Tested on Sony VGN-P530H. Okay mlarkin@, matthieu@
2014-06-15Fix 0x67 prefixed near CALL decoding.Paul Irofti
Heads-up from Xen Li (delphij@FreeBSD), thanks! Tested on Sony VGN-P530H. Okay mlarkin@, matthieu@
2014-06-15oops, typo. James Hartley is fast at trying -currentTheo de Raadt
2014-06-15In srandomdev(), use arc4random_buf() instead of from the kernel.Theo de Raadt
discussion with matthew
2014-06-14Preallocate sgmap extent regions for tsp, cia and mcpcia dma maps, which fallJonathan Matthew
back to sgmap if the direct mapping fails. ok miod@
2014-06-14Rather than truncating KERN_ARND requests silently, return EINVALTheo de Raadt
ok miod
2014-06-14temporarily (maybe 3 weeks?) crank KERN_ARND maximum buffer from 256Theo de Raadt
to 512, to make it easier for people to build to -current. ok miod
2014-06-14Make _dl_randombuf invoke sysctl KERN_ARND in 256-byte chunks, for this isMiod Vallat
(currently) the largest output you can get from it. ok deraadt@
2014-06-14Avoid infinite loop if cluster chain is a cyclic list.Tobias Stoeckmann
Inspired by Android's commit b6ee08aadb580341a4d80943741b80de16a88b5d, but fixing the actually offending cluster, not a random one. ok krw@
2014-06-14syncTheo de Raadt
2014-06-14Change return value of getentropy() to int 0 for success. MaximumTheo de Raadt
buffersize is enforced strictly, this supplies sufficient entropy payload to act as seed material. Discourage general use of this API, but lock down this function name as the go-to for userland PRNG seeding. Improve documentation. ok miod matthew
2014-06-14Fix memory leaks in bootblock handling.Tobias Stoeckmann
ok krw@
2014-06-14Fix regression of 1.16: write fsinfo, not block into FSInfo region.Tobias Stoeckmann
ok krw@
2014-06-14Fix regression of 1.20 by properly incrementing pointer.Tobias Stoeckmann
2014-06-14Add more bounded attributes to the buffer and md5/sha headers in libsslAnil Madhavapeddy
ok miod@
2014-06-14Fix a couple systrace(4) nitsMatthew Dempsky
Mention SYSTRACE_POLICY_KILL again later as appropriate and document that STRIOCINJECT takes a pointer to a struct systrace_inject.
2014-06-14Update documentation for STRIOCGETCWD.Matthew Dempsky
Back in 2011, I changed it from taking a "pid_t *" to a "struct systrace_getcwd *" so that systrace(1) could resolve filenames passed to openat(2), etc, but apparently failed to document the change.
2014-06-13Remove support for "union wait" and WSTOPPED.Matthew Dempsky
union wait has been deprecated since 4.3BSD, and WSTOPPED means something else now in POSIX, that we don't yet support. Original diff by guenther, from 2.5 years ago. Ports tree cleanup and re-testing by naddy. ok deraadt, kettenis
2014-06-13Make run(4) attach to RT5572.Stefan Sperling
Tested with "MAC/BBP RT5592 (rev 0x0222), RF RT5592 (MIMO 2T2R)" device.
2014-06-13regenStefan Sperling
2014-06-13Add USB device ID of Ralink RT5572. Found in a TP-LINK TL-WDN3200 device.Stefan Sperling
2014-06-13Fix broken logic in sgec_rxintr() poorly duplicating some of ether_input()Miod Vallat
checks, causing the rx ring pointer to stall as soon as an irrelevant frame is received when the intergace is in bpf+promiscuous or `all multicast' mode. Problem spotted and tracked down to the use of bpf by sebastia@. Hair pulling by me.
2014-06-13fix duplicate entry for the eot extension; noted by ajacoutot@Robert Nagy
2014-06-13typoMiod Vallat
2014-06-13Type cleanup:Christian Weisgerber
* Move all off_t variables that don't look like file sizes to int64_t. * Switch blockswritten to int64_t, so it won't wrap at 2TB. * Same for blocksthisvol (from deraadt@). * Switch xferrate (from tedu@) and blocksperfile from long to uint64_t. * Since blocksperfile can be set with -B, move numarg() from long to long long and don't mark small integer constant arguments as long. ok deraadt@, tedu@
2014-06-13For now... assume success of getentropy() just like we assumed successTheo de Raadt
of sysctl(). Mark it with XXX while we consider.
2014-06-13Correctly calculate the key block length when using export ciphers.Joel Sing