summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-05Add missing break for rdomain. Prevents spurious "Deprecated option"Darren Tucker
warnings. ok djm@
2017-12-05regenMark Kettenis
2017-12-05Add SPARC-M7 PCIe; rename existing SPARC PCIe entries.Mark Kettenis
2017-12-05Remove DEF_STRONG(__cxa_thread_atexit_impl). This produces an unwantedMark Kettenis
_libc___cxa_thread_atexit_impl reference on gcc architectures that breaks the build.
2017-12-05Handle 64-bit-address Memory Space.Mark Kettenis
2017-12-05Use clock_gettime(CLOCK_MONOTONIC) to schedule timersJeremie Courreges-Anglas
From Scott Cheloha, ok tb@
2017-12-05add missing blank before punctuation;Jason McIntyre
2017-12-05syncTheo de Raadt
2017-12-05document PORTS_PRIVSEP now that it's nearing completionMarc Espie
2017-12-05Fix a case where we could go off the end of the buffer.Todd C. Miller
Crash found by Sergey Bronnikov using afl-fuzz. Based on a diff from and OK by espie@
2017-12-05Show board ID and revision in dmesg to ease the identificationVisa Hankala
of system model. The early boot code already prints them, but that output is not buffered and tends to be left out from dmesg submissions.
2017-12-05Drop cn30xxpow_intr_establish(), cn30xxpow_intr() and some otherVisa Hankala
unused code. POW interrupts are now handled in if_cnmac.c.
2017-12-05Seperate real and user timer interfacesJeremie Courreges-Anglas
Use more descriptive names, and make it clearer that real and user timers work on different static storage. The end goal is to be able to reuse those timer functions, instead of inlining other timer implementations subject to clock jumps. Discussed with Scott Cheloha
2017-12-05When removing duplicate dynamic leases from the cache, compare theKenneth R Westerback
SSID against ifi->ssid, not the SSID of the new lease. They should be the same, but this makes the intent clearer and removes an assumption about the contents of ifi->active.
2017-12-05strip_comments is also called for dot lines, so sometimes the commentMarc Espie
is all the line. problem reported by Sergey Bronnikov
2017-12-05use a global BN_CTX; from kshe with a twist from myselfOtto Moerbeek
2017-12-05Implement __cxa_thread_atexit to support C++11 thread_local scope. TheMark Kettenis
interface is also made available as __cxa_thread_atexit_impl to satisfy the needs of GNU libstdc++. ok guenther@, millert@
2017-12-05When sending out a proposal we create an SA/SPI for the Child SAs if wePatrick Wildt
are an initiator and store the information on the proposal, because we only had one proposal so far. This changes the code to only create one SA on the first proposal and then apply the SPI to all other proposals as well. ok markus@
2017-12-05adjust for warning: warning repairsTheo de Raadt
2017-12-05include the addr:port in bind/listen failure messagesDamien Miller
2017-12-04Sadly the firmware on SPARC T7 machines omits the executable bit on mappingsMark Kettenis
that contain code, just like some sun4u machines. So add it for sun4v as well when entering the mappings into the kernel pmap.
2017-12-04Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).Martin Pieuchot
Missed in previous, found by deraadt@, ok visa@
2017-12-04Remove duplicate check that never could execute because the exact samePatrick Wildt
condition is handled a line before.
2017-12-04Consistently log "malformed payload" instead of "payload malformed", andPatrick Wildt
replace "minimal" with "minimum".
2017-12-04Remove check that is now a duplicate due to recent refactoring.Patrick Wildt
2017-12-04The payloads are layered like onions, so you can validate one layer andPatrick Wildt
then call the next one, which can then validate itself. Thing is, most layers try to run validations on the upper layer, which is not useful and rather confusing. This cleans it up. First change is that the generic payload parser does not anymore pass the length of the whole datagram, including all remaining payloads, but passes only the length of the specific payload to the specific payload parser. Second change is that the payload validators don't check the length of the upper layer, but only verify their own lengths. Diff discussed with hshoexer@ and sthen@ Tested by sthen@
2017-12-04RFC 4861 requires that all neighbor discovery packets have 255 inAlexander Bluhm
their IPv6 header hop limit field. Let pf drop neighbor solicitation, neighbor advertisement, router solicitation, router advertisement, and redirect ICMP6 packets that do not comply. This enforces that bogus packets cannot be routed when pf is enabled. OK mpi@ sashan@ benno@
2017-12-04change "if (lp &&" to "if lp != NULL &&".Theo Buehler
pointed out by krw
2017-12-04add the alps touchpad that can be found in the ideapad 710sRobert Nagy
ok mpi@
2017-12-04Avoid a NULL-deref in get_recorded_lease() leading to a segfault seenTheo Buehler
by aja and others. ok krw
2017-12-04Initialize variable, otherwise the pointer might contain stack garbage.Patrick Wildt
2017-12-04Make divert lookup similar for all socket types. If PF_TAG_DIVERTEDAlexander Bluhm
is set, pf_find_divert() cannot fail so put an assert there. Explicitly check all possible divert types, panic in the default case. For raw sockets call pf_find_divert() before of the socket loop. Divert reply should not match on TCP or UDP listen sockets. OK sashan@ visa@
2017-12-04Change __mp_lock_held() to work with an arbitrary CPU info structure andMartin Pieuchot
extend ddb(4) "ps /o" output to print which CPU is currently holding the KERNEL_LOCK(). Tested by dhill@, ok visa@
2017-12-04Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).Martin Pieuchot
ok visa@
2017-12-03If we wanted to send out more proposals than just one, we need to set aPatrick Wildt
flag in the SA header that there is another proposal coming. The "more" attribute borrows its values, as specified in the RFC, from IKEv1. ok sthen@
2017-12-03The RFC specifies that to accept a proposal, we must select a transformPatrick Wildt
for each transform type. We do some sanity checks, for instance we do require an encryption transform for ESP, but that's not enough. We need to check that for every proposed transform type we have found a matching transform in our own proposal. ok sthen@
2017-12-03Move timer fields 'expiry" and "rebind" out of struct client_leaseKenneth R Westerback
and into struct interface_info. Nuke set_lease_times().
2017-12-03Disallow the _pbuild user from making TCP/UDP connections in the defaultStuart Henderson
PF ruleset. This is not a complete block on _pbuild being able to communicate (e.g. non-TCP/UDP protocols don't have a PCB with userid, so PF can't restrict in those cases) but avoids some cases, and in particular makes it more obvious when a port does things like download extra distfiles or dependencies as part of the build process. Slight tweak from a diff by espie@.
2017-12-03Enable bgw(4).Mark Kettenis
2017-12-03Enumerate all i2c devices on the bus. Mark their nodes as attached evenMark Kettenis
if we didn't attach a device driver to avoid enumerating them again in the acpi device tree walk. ok deraadt@
2017-12-03pledge(2) elfrdsetroot:Theo Buehler
- pledge(2) "stdio" after managing arguments (opening files) - add $OpenBSD$ markers on elfrd_size.c and elfrdsetroot.h - add a check for NULL on malloc(3) call in elfrd_size.c from semarie, ok deraadt
2017-12-03Abandon nagging about "_" violating RFC 952. This removes the needKenneth R Westerback
for a custom res_hnok(), so just use the libc version of res_hnok(). Requested by deraadt@
2017-12-03Rename ci_number to ci_cpuid to match other archs.Martin Pieuchot
ok visa@, kettenis@, deraadt@
2017-12-03Include dtbs for Wandboard rev D1 including the i.MX 6QuadPlus variant.Jonathan Gray
Requires U-Boot >= 2017.11 and dtb >= 4.15-rc1.
2017-12-03syncJonathan Gray
2017-12-02syncTheo de Raadt
2017-12-02Adapt to change in 0ZOtto Moerbeek
2017-12-02make 0Z do what the original dc and gnu bcc do; ok tom@Otto Moerbeek
2017-12-02post-patch -> pre-configureAntoine Jacoutot
2017-12-02Add a caveat wrt use of non-decimal fractional notation; from kshe; ok jmc@Otto Moerbeek