summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-14rename virtio_ops.intr to poll_intrStefan Fritsch
This describes more accurately what it is good for. Also introduce a virtio_poll_intr macro.
2016-07-14virtio: Move interrupt handler into transport specific codeStefan Fritsch
For MSI-X (and also possibly for other transports), the interrupt handler must do different things. Move it out of virtio.c and into virtio_pci. ARM part tested by patrick@
2016-07-14make several program to use "chown" promise.Sebastien Marie
it allows chown(2) call to change the user or group on a file. - usr.bin/compress : aka gzip - usr.bin/mg : open a file for writing - usr.bin/sed : inplace editing - usr.bin/sort : if outfile equals one of the input files ok deraadt@ tb@ (and a reminder from Remi Locherer) warning: in order to use it, you must have a recent kernel with the new promise.
2016-07-14Add PT_GNU_RELRO, for ld.so workPhilip Guenther
ok millert@ kettenis@
2016-07-14Prevent silly states via knotes on pids > 2^32 and on nonexistent signals.Philip Guenther
ok tedu@
2016-07-14ufs_readdir() buffer was meant to be limited to 64kB; reversed testPhilip Guenther
permitted very big mallocs to panic the kernel. reported by Tim Newsham ok millert@
2016-07-14kevent validates that ident is a valid fd by getting the file. one sadTed Unangst
quirk: uint64 to int32 truncation can lead to false positives, and then later in the array sizing code, very big mallocs panic the kernel. add a check that the ident isn't larger than INT_MAX in the fd case. reported by Tim Newsham
2016-07-14Correct equal in test.Darren Tucker
2016-07-13A work-in-progress driver for the Hyper-V NetVSCMike Belopuhov
Network VSC is an RNDIS device using NVSP protocol to communicate with the Hyper-V VMBus via VMBus channels and/or shared memory. The code was ported from FreeBSD with some API changes and simplifications. While the Rx path is nearly complete, packet transmition is not implemented yet. ok deraadt, mlarkin
2016-07-13When matching a day in the month, make sure that the date is stillTodd C. Miller
in the month we are interested in after calling mktime(3). This fixes things like Sunday+5 for months where there is not a 5th Sunday and the 31st day in months with less than 31 days. From Andy Bradford
2016-07-13The "#address-cells" and "#size-cells" properties define the sizePatrick Wildt
of the memory address and length information. The root node passes this information down to the children and it can be overwritten by other nodes inbetween. Pass these properties as part of the fdt attach args, so that we can grab that information quickly inside the drivers. ok kettenis@
2016-07-13ross l richardson reports that an auto reply is no longer generatedJason McIntyre
on submission, so remove that sentence (correct me if this is wrong); while here replace some mandoc chars;
2016-07-13output the no-longer-so-new AS operators when printing theSebastian Benoit
configuration noticed by and diff from Denis Fondras, thanks! ok phessler@ sthen@
2016-07-13Since mappings established using __MAP_NOFAULT will be converted into anonymousMark Kettenis
memory if the file backing the mapping is truncated, we should check resource limits. This prevents callers from triggering a kernel panic and a potential integer overflow in the amap code by forcing the allocation of too many slots. Based on an analysis from Jesse Hertz and Tim Newsham. ok deraadt@
2016-07-13Revert previous; the __MAP_NOFAULT test is inverted and the commit message isMark Kettenis
wrong.
2016-07-13Move ARP processing back to the KERNEL_LOCK()ed task until the raceMartin Pieuchot
triggered by updating a cached, but removed from the table, entry is properly fixed. Diff from dlg@, prodding deraadt@
2016-07-13Adjust existing tls_config_set_cipher() callers for TLS cipher groupJoel Sing
changes - map the previous configuration to the equivalent in the new groups. This will be revisited post release. Discussed with beck@
2016-07-13Split the existing TLS cipher suite groups into four:Joel Sing
"secure" (TLSv1.2+AEAD+PFS) "compat" (HIGH:!aNULL) "legacy" (HIGH:MEDIUM:!aNULL) "insecure" (ALL:!aNULL:!eNULL) This allows for flexibility and finer grained control, rather than having two extremes (an issue raised by Marko Kreen some time ago). ok beck@ tedu@
2016-07-13Since mappings established using __MAP_NOFAIL will be converted into anonymousMark Kettenis
memory if the file backing the mapping is truncated, we should check resource limits. This prevents callers from triggering a kernel panic and a potential integer overflow in the amap code by forcing the allocation of too many slots. Based on an analysis from Jesse Hertz and Tim Newsham. ok deraadt@
2016-07-13remove <0 check for an unsigned variableTheo de Raadt
from tom
2016-07-13remove unused function ether_cmp()Theo de Raadt
from tom
2016-07-13Use the device tree voltage regulator information to supply power to the USBMark Kettenis
bus. For this only supports "fixed" regulators that are controlled through a gpio. But this covers all the case we currently handle with board ID specific code. Note that the old code did explicitly remove power first on some boards, which would reset bus-powered devices/hubs on the bus. The new code doesn't do this. If that causes problems we can revisit the issue. The boards that would be affected are sabrelight/nitrogen6x and utilite. The plan is to evolve this into a generic regulator framework that supports more complex regulator types as well. ok jsg@, patrick@
2016-07-13Introduce RTF_MULTICAST and flag corresponding IPv6 routes as suchMartin Pieuchot
instead of abusing RTF_CLONING. Fix a leak reporeted by Aaron Riekenberg on misc@, ok sthen@
2016-07-13CPUID vendor ID was already register-swapped during initial query, so noMike Larkin
need to do it again.
2016-07-13Fix usage() output and getopt sortingPhilip Guenther
2016-07-13store nd6 expiries in the route, not separately in the llinfo struct.David Gwynne
this makes it more consistent with arp, and makes expiries visible via route(8) get as well as ndp(8). ok mpi@ florian@
2016-07-12Document that the syslogd options -c and -k must be used together.Alexander Bluhm
OK jmc@
2016-07-12Reset the mt state completely in wsmouse_mt_init.Ulf Brosziewski
ok kettenis@
2016-07-12The only valid flag for unmount(2) is MNT_FORCE, ignore any others.Todd C. Miller
Fixes a crash when MNT_DOOMED is passed in the flags to unmount(2) found by NCC Group. OK bluhm@
2016-07-12Turn ahci(4) glue code for the i.MX6 platform into its own imxahci(4) driverMark Kettenis
such that we can don't end up with conflicting attachments of other SoC-specific glue code.
2016-07-12Change over to imxehci(4) here as well.Mark Kettenis
2016-07-12Link path MTU discovery regress test into build.Alexander Bluhm
2016-07-12Allow to run the syslogd tests as root without SUDO also if theAlexander Bluhm
libevent method environment is set.
2016-07-12Turn ehci(4) glue code for the i.MX6 platform into its own imxehci(4) driverMark Kettenis
such that we can don't end up with conflicting attachments of other SoC-specific glue code. ok jsg@, patrick@
2016-07-12in the great unp_gc rewrite, a null check was lost. we have spent someTed Unangst
time investigating and arguing about whether a NULL fp is a bug or not, but what has become clear is that NULL fps get passed to unp_discard and have been for quite some time. restore old accomodating behavior by checking for null in unp_gc. ok deraadt kettenis
2016-07-12The check for pledge "recvfd" was mistakenly only being performedTheo de Raadt
for chroot'd processes. ok stefan semarie
2016-07-12add "recvfd" to doas(1) for use with skey.Sebastien Marie
ok tb@ deraadt@
2016-07-12Add regression tests for syslogd TLS client certificates.Alexander Bluhm
2016-07-12Add support for TLS client certificates in syslogd. This allows aAlexander Bluhm
remote server to verify that the log messages from our syslogd are authentic. From Kapetanakis Giannis; man page input jmc@; OK jung@ deraadt@
2016-07-12Directly drop packets filtered by bpf(4) instead of going through theMartin Pieuchot
input handlers. ok dlg@
2016-07-12remove more noisy messages in "sendfd" and "recvfd"Theo de Raadt
2016-07-11Make all components of the URI individually optional,Ingo Schwarze
independent of each other, as in: http://man.openbsd.org[/manpath][/mansec][/arch]/name[.sec] The restrictions in the past kept confusing people. Triggered by a question from RafaelNeves at gmail dot com.
2016-07-11Revert previous adaption of the test. The behavior change in libtlsAlexander Bluhm
has been backed out.
2016-07-11don't allow mounting with noval owner. panics later.Ted Unangst
reported by Tim Newsham at NCC. ok millert natano
2016-07-11Add missing "recvfd" pledge promise: Raf Czlonka reported ssh coredumpsTheo Buehler
when Control* keywords were set in ssh_config. This patch also fixes similar problems with scp and sftp. ok deraadt, looks good to millert
2016-07-11be less noisy on console in case of "recvfd" refusalTheo de Raadt
ok semarie
2016-07-11syncTheo de Raadt
2016-07-11Instead of using the floating point square root, use an integer versionTheo Buehler
of the Newton method from ping.c. Fixes a rounding issue that caused failure to factor numbers close to 2^64, e.g. 18446744030759878681. While there, fix an off by one error that caused 4295360521 to be reported as a prime. Issues reported by Paul Stoeber and Michael Bozon. ok tedu, deraadt
2016-07-11Use gpio framework to implement hardware reset of the PHY instead ofMark Kettenis
hardcoding particular gpios based on board IDs. ok visa@, jsg@
2016-07-11Use gpio framework to implement card detect instead of hardcoding particularMark Kettenis
gpios based on board IDs. ok visa@, jsg@