summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-27Add support for Rx buffers containing multiple frames to iwm(4), again.Stefan Sperling
Tested by florian on 7260, claudio and myself on 8265, and mlarkin on 9560. This time even florian's 7260 device seems to be happy. ok claudio@
2019-11-27Re-enable IO_NOCACHE, and use is in vnd.Bob Beck
Ensure that io to a file backing a vnd is IO_SYNC, so IO to a vnd device is both synchronous and not cached in the buffer cache. This allows the "mount" regress to work repeatably, and avoids a situation where when the buffer cache cleaner runs to clear dirty buffers while people are waiting, it actually increases the dirty buffers when the writes to the underlying vnd are also delayed. ok bluhm@
2019-11-27Skip tests with unsupported signature algorithm SHA512/224 as well.Theo Buehler
2019-11-27The DSA test vectors were split up and more tests were added.Theo Buehler
Enable them, as all of them pass.
2019-11-27New failure mode for AES-CCM: "very long nonce".Theo Buehler
2019-11-27Convert infinite sleeps to tsleep_nsec(9).Martin Pieuchot
ok bluhm@
2017-10-04Import LLVM 5.0.0 release including clang, lld and lldb.Patrick Wildt
2019-11-27Prepare update of wycheproof-testvectors. Skip some tests for thingsTheo Buehler
we don't support in LibreSSL and make sure we run as many tests as possible.
2019-11-27Initialize nfds fields of new file structures.Alexandre Ratchov
Fixes a possible crash when a new file structure is added in the time-out processing code-path.
2019-11-27Revert previous commit. The channels code still uses int in many placesDarren Tucker
for channel ids so the INT_MAX check still makes sense.
2019-11-27sync upstream commit with manpage fixes from jmc@Damien Miller
> commit 437896dcafc67d9596774c3bb9f97bfdb4810bb1 > Author: pedro martelletto <pedro@yubico.com> > Date: Wed Nov 20 09:38:22 2019 +0100 > > man: mop up dangling .Xr's; Jason McIntyre <jmc@openbsd.org>
2019-11-27use error()+_exit() instead of fatal() to avoid running cleanupDamien Miller
handlers in child process; spotted via weird regress failures in portable
2019-11-27knf, make types grepable. ok claudio@Sebastian Benoit
2019-11-27rename a variable to show it's a CRL. ok claudio@Sebastian Benoit
2019-11-27Make channel_id u_int32_t and remove unnecessary check and cast that wereDarren Tucker
left over from the type conversion. Noted by t-hashida@amiya.co.jp in bz#3098, ok markus@ djm@
2019-11-27Document ILOM command to reset hardwarekn
mdoc style input jmc no objections kettenis
2019-11-27Delete now obsolete commentsPhilip Guenther
2019-11-27Adjust after changing the struct ctl_show_rib (removal of aspath_len)Claudio Jeker
OK benno@
2019-11-27struct ctl_show_rib does not need aspath_len since this information isClaudio Jeker
known through the imsg lenght. OK benno@
2019-11-27syncTheo de Raadt
2019-11-27Add dummy msyscall(2) system call which is currently a noop. This willTheo de Raadt
be used by kernel and ld.so in the near future. Adding the system call earlier will reduce the number of people who try to build through and encounter agony. ok kettenis guenther
2019-11-27unifdef: hppa does HAVE_JMPREL and does not have DT_PROCNUMPhilip Guenther
2019-11-27armv7 and aarch64 specify GLOB_DAT as having an addend, so treat itPhilip Guenther
exactly like the ABS{32,64} relocation there. noted by and ok kettenis@
2019-11-26Add support for TLS 1.3 post handshake messages and key updating.Bob Beck
tested against openssl 1.1's server. ok jsing@ tb@
2019-11-26test FIDO2/U2F key types; ok markus@Damien Miller
2019-11-26add dummy security key middleware based on work by markus@Damien Miller
This will allow us to test U2F/FIDO2 support in OpenSSH without requiring real hardware. ok markus@
2019-11-26Clean up _dl_md_reloc(): instead of having tables and piles of conditionalsPhilip Guenther
that handle a dozen relocation types for each, just have a nice little switch for the four specific relocations that actually occur. Besides being smaller and easier to understand, this fixes the COPY relocation handling to only do one symbol lookup, instead of looking up the symbol and then immediately looking it up again (with the correct flags to find the instance it needs). ok kettenis@
2019-11-26When there is no network around the state timeout fires over and over again.Claudio Jeker
Change the printf into a log and only under IFF_DEBUG to reduce dmesg spam. Loudly requested by beck@ OK deraadt@
2019-11-26some corrections to CDPATH;Jason McIntyre
from chohag
2019-11-26tweak previous;Jason McIntyre
2019-11-26remove stray Oc;Jason McIntyre
2019-11-26Reinitialize 'err' to ensure we are not checking a stale value.Kenneth R Westerback
Discovered by and ok tim@
2019-11-26Don't zero existing values for density, block_count and block_size inKenneth R Westerback
scsi_do_mode_sense(). Just update the values when valid data is available. Initialize the variables passed to scsi_do_mode_sense() in the one instance where they weren't already set. Fixes issue with softraid crypto volumes on 4K-sector disks. Found, fix tested, and ok tim@
2019-11-26document that listen on socket can have filters attachedGilles Chehade
original diff from Ryan Kavanagh <rak@debian.org>, slightly rearranged
2019-11-26in mail.lmtp.c, split LMTP connection fd into two FILE * streamsGilles Chehade
diff from fgma on github
2019-11-26make implicit "listen on socket" explicit, the default config no longer hasGilles Chehade
any implicit behavior ok eric@, kn@
2019-11-26Use proper NUL byte not zero with stringskn
No object change OK sashan
2019-11-26Improve previouskn
Avoid an extra parameter and set NULL initialised conffile conditionally. From Matthew Martin <phy1729 at gmail dot com>, thanks!
2019-11-26Several functions expect that bootdev_dip is not NULL and can beAlexander Bluhm
dereferenced. But there is no boot disk when EFI bootloader has been received via TFPT. Fake a disk info that never maches a real disk. Fixes a hang in run_loadfile() during HP Elitebook UEFI boot. OK patrick@
2019-11-26fix kernel crash in pf_ioctl with WITH_PF_LOCK and NET_TASKQ > 1Alexandr Nedvedicky
the problem was introduced with a "mechanical" patch, which replaced all "breaks;" with "PF_UNLOCK(); break;" This is wrong for case of DIOCGETRULESETS. issue analyzed and patch created by Joerg Goltermann <jg@osn.de> OK tb@
2019-11-26Fix a panic string that had the wrong function name and an improperlyMike Larkin
wrapped line. No code change.
2019-11-26Nuke trailing whitespace that is annoying before changing things in hereBob Beck
2019-11-26Fix a bunch of lines that had trailing whitespace.Mike Larkin
No code change.
2019-11-26Fail on nonexistent config file iff -c is givenkn
Default /etc/unwind.conf is optional and may be missing, but explicitly specified files should exist. OK florian
2019-11-26Prevent divide-by zero in tcpbench(1). Found while testing iwm(4).Stefan Sperling
#0 0x000004c27b9051a9 in udp_process_slice (fd=<optimized out>, event=<optimized out>, v_sc=0x4c55279f500) at /usr/src/usr.bin/tcpbench/tcpbench.c:606 606 pps = (sc->udp_slice_pkts * 1000) / since_last; (gdb) p since_last $1 = 0 ok benno@
2019-11-26Fix previous: Don't use an uninitialized variable in iwm_rx_frame().Stefan Sperling
2019-11-26Eliminate some code duplication in iwm(4) 7k/8k vs. 9k Rx code paths.Stefan Sperling
Tested by mlarkin@ on 9560 and myself on 8265. ok mlarkin@
2019-11-26Add default # and * binding with vi(1) keys.Nicholas Marriott
2019-11-26timeout(9): switch to tickless backendcheloha
Rebase the timeout wheel on the system uptime clock. Timeouts are now set to run at or after an absolute time as returned by nanouptime(9). Timeouts are thus "tickless": they expire at a real time on that clock instead of at a particular value of the global "ticks" variable. To facilitate this change the timeout struct's .to_time member becomes a timespec. Hashing timeouts into a bucket on the wheel changes slightly: we build a 32-bit hash with 25 bits of seconds (.tv_sec) and 7 bits of subseconds (.tv_nsec). 7 bits of subseconds means the width of the lowest wheel level is now 2 seconds on all platforms and each bucket in that lowest level corresponds to 1/128 seconds on the uptime clock. These values were chosen to closely align with the current 100hz hardclock(9) typical on almost all of our platforms. At 100hz a bucket is currently ~1/100 seconds wide on the lowest level and the lowest level itself is ~2.56 seconds wide. Not a huge change, but a change nonetheless. Because a bucket no longer corresponds to a single tick more than one bucket may be dumped during an average timeout_hardclock_update() call. On 100hz platforms you now dump ~2 buckets. On 64hz machines (sh) you dump ~4 buckets. On 1024hz machines (alpha) you dump only 1 bucket, but you are doing extra work in softclock() to reschedule timeouts that aren't due yet. To avoid changing current behavior all timeout_add*(9) interfaces convert their timeout interval into ticks, compute an equivalent timespec interval, and then add that interval to the timestamp of the most recent timeout_hardclock_update() call to determine an absolute deadline. So all current timeouts still "use" ticks, but the ticks are faked in the timeout layer. A new interface, timeout_at_ts(9), is introduced here to bypass this backwardly compatible behavior. It will be used in subsequent diffs to add absolute timeout support for userland and to clean up some of the messier parts of kernel timekeeping, especially at the syscall layer. Because timeouts are based against the uptime clock they are subject to NTP adjustment via adjtime(2) and adjfreq(2). Unless you have a crazy adjfreq(2) adjustment set this will not change the expiration behavior of your timeouts. Tons of design feedback from mpi@, visa@, guenther@, and kettenis@. Additional amd64 testing from anton@ and visa@. Octeon testing from visa@. macppc testing from me. Positive feedback from deraadt@, ok visa@
2019-11-26Revert previous "honour DEBUG", otherwise clang uses -g resulting in hugeStuart Henderson
objects and it running out of memory in the "building shared LLVM library" stage (at least on i386). building standard LLVM library building shared LLVM library (version 1.0) cc -shared -Wl,-soname,libLLVM.so.1.0 -fpic -o libLLVM.so.1.0 `echo AMDGPUAsmParser.so AMDGPUInstPrinter.so AMDGPUAliasAnalysis.so AMDGPUAlwaysInlinePass.so AMDGPUAnnotateKernelFeatures.so AMDGPUAnnotateUniformValues.so AMDGPUArgumentUsageInfo.so [...snip lots of .so...] ThinLTOBitcodeWriter.so WholeProgramDevirt.so | tr ' ' '\n' | sort -R` -Wl,--start-group -Wl,--end-group LLVM ERROR: out of memory cc: error: unable to execute command: Abort trap cc: error: linker command failed due to signal (use -v to see invocation) ar: libLLVM.a: No space left on device *** Error 1 in gnu/usr.bin/clang/libLLVM (<bsd.lib.mk>:193 'libLLVM.a': @ar cqD libLLVM.a `lorder AMDGPUAsmParser.o AMDGPUIn stPrinter.o AMDG...) *** Error 254 (<bsd.lib.mk>:225 'libLLVM.so.1.0')