summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-24syncTheo de Raadt
2020-06-24use n-bit <noun> consistently; ok schwarze for the principal of the idea,Jason McIntyre
and for flagging which pages to check;
2020-06-24Make tls13_legacy_shutdown() match ssl3_shutdown() semantics.Joel Sing
When first called, queue and send a close notify, before returning 0 or 1 to indicate if a close notify has already been received from the peer. If called again only attempt to read a close notify if there is no pending application data and only read one record from the wire. In particular, this avoids continuing to read application data where the peer continues to send application data. Issue noted by naddy@ with ftp(1). ok jca@ tb@
2020-06-24don;t Xr non-base pages;Jason McIntyre
2020-06-24spelling fix; from matthias schmidtJason McIntyre
2020-06-24Use C99 initializers in wsdisplay_font struct definitions forFrederic Cambus
"Boldface", "Boldface.iso1", and "Gallant". OK mpi@
2020-06-24new manual page ChaCha(3);Ingo Schwarze
OK tb@
2020-06-24Adapters that do not appear as a target on the SCSI bus must setKenneth R Westerback
'adapter_target' to a value greater than or equal to 'adapater_buswidth' to allow all possible targets to be probed. Add SDEV_NO_ADAPTER_TARGET (0xffff), a value guaranteed to be greater than or equal to the u_int16_t 'adapter_buswidth'. ok dlg@ as part of a larger diff.
2020-06-24new manual page CMAC_Init(3);Ingo Schwarze
OK tb@
2020-06-24add test for mux w/-Oproxy; ok djmMarkus Friedl
2020-06-24fix kex mem-leak in ssh_packet_close; ok djmMarkus Friedl
2020-06-24fix ssh -O proxy w/mux which got broken by no longerMarkus Friedl
making ssh->kex optional in packet.c revision 1.278 ok djm@
2020-06-24support loading big sshd_config files w/o realloc; ok djmMarkus Friedl
2020-06-24allow sshd_config longer than 256k; ok djmMarkus Friedl
2020-06-24only call sshkey_xmss_init() once for KEY_XMSS_CERT; ok djmMarkus Friedl
2020-06-24Document eight additional pre-OpenSSL-1.1 accessor functions that areIngo Schwarze
still widely used according to code searches on the web, so people reading existing code will occasionally want to look them up. While here, correct the return type of X509_CRL_get0_lastUpdate(3) and X509_CRL_get0_nextUpdate(3), which return const pointers. Also, add some precision regarding RETURN VALUES.
2020-06-24Stop using rsync --delete when syncing up with the CA repos. InsteadClaudio Jeker
use the files referenced in the manifests to build up a list of files to keep and remove anything that is not in the list after doing the full computation. OK job@ benno@
2020-06-24get rid of the per device sff lock because we only use the global one.David Gwynne
no functional change
2020-06-24Acknowledge xhci(4) interrupts before calling usb_schedsoftintr().Patrick Wildt
On powerdown (halt -p), sd(4)'s suspend function tries to powerdown a USB mass storage using a STOP command. In that case we are already cold and splhigh(), so that the xhci is supposed to run in polling- mode. usb_schedsoftintr() behaves differently when running in polling-mode. Instead of scheduling a soft interrupt, it immediately dequeues from the event queue. But dequeueing means touching the xhci registers. Apparently we need to acknowledge the interrupts before touching those registers, the hardware doesn't like it otherwise and we will never get an interrupt status for the second transfer. ok gerhard@
2020-06-24Fix `IFF_RUNNING' bit handling for pppx(4) and pppac(4).mvs
ok mpi@
2020-06-24Apply sc->sc_xfer_flags to control transfers as well. These are usedPatrick Wildt
so that in polled-mode the USB transfers are marked synchronous. In case that sending commands to the USB mass storage fails, the control transfers are used to reset the device. Without the synchronous flag, the STOP command sent by sd(4) on powerdown would wait for completion indefinitely, possibly hanging the machine. ok gerhard@
2020-06-24enable test-tls13-keyshare-omitted.pyTheo Buehler
2020-06-24Enforce restrictions for ClientHello extensionsTheo Buehler
RFC 8446 section 9.2 imposes some requirements on the extensions sent in the ClientHello: key_share and supported_groups must either both be present or both be absent. If no pre_shared_key was sent, the CH must contain both signature_algorithms and supported_groups. If either of these conditions is violated, servers must abort the handshake with a missing_extensions alert. Add a function that enforces this. If we are going to enforce that clients send an SNI, we can also do this in this function. Fixes failing test case in tlsfuzzer's test-tls13-keyshare-omitted.py ok beck inoguchi jsing
2020-06-24Using the "ldaps" or "tls" keywords in ldapd.conf currently enables allTheo Buehler
protocols and ciphers. So you get a TLS server speaking TLSv1.0 and supporting cipher suites with RC4 and 3DES encryption, all of which should be considered broken. There is no way of disabling TLSv1.0 and TLSv1.1 in ldapd. All this is also not very clearly called out in the documentation. This commit switches the defaults to using the libtls defaults for both protocols and ciphers. If compatibility with the insecure legacy protocols and ciphers is needed, use the "legacy" keyword before "tls" or "ldaps" in ldapd.conf. tested by abieber. inoguchi agrees with the direction. ok beck
2020-06-24actually use pci_intr_establish_cpu with cpus from the intrmap.David Gwynne
sigh, i don't know how i forgot this. yes jmatthew@
2020-06-24Add test-ffdhe-expected-params.pyTheo Buehler
2020-06-24Fix botched format string in previous commit as spotted by robert@Otto Moerbeek
2020-06-24kernel no longer has to be placed into the boot area, becauseTheo de Raadt
we have proper bootblocks. ok visa
2020-06-24Nuke some pointless *_dev_probe() and *_dev_free() functions andKenneth R Westerback
set/trust the scsiconf.c probing limits. Same as was done to vioblk(4). ok dlg@
2020-06-24remove ifdeffed out code for redistributing pyro eq interrupts over cpus.David Gwynne
when sparc64 attaches cpus early during boot, it really just allocates the software state for them (ie, the devices and the cpu_info structs) and fills them in with information from openfirmware, but it doesnt actually spin them up in a physical sense until just before root is mounted. in between that, we now set up pyro with an msi event queue per cpu, and target the interrupts for those event queues at the different cpus. if a device generates an msi interrupt before the cpus are spun up, pyro will fire an interrupt at those cpus, but cos they're not running yet, they don't handle the interrupt, and the event queue never gets processed. because the msi interrupt state is never cleared by the pyro interrupt handler because the cpu didn't run it, any further msi interrupts from that pci device don't cause the eq interrupt to fire again, so it gets stuck. one approach to dealing with this is to target all the event queues that pyro sets up at the boot cpu, and once the other cpus are running we go through and retarget the event queue interrupts at the different cpus. this means the boot cpu works on the other cpus behalf until they're running, and it avoids the eq interrupts being ignored before the other cpus are running. another approach is to spin the cpus up when they're attached, so they'll be set up to process early pyro interrupts, even if they sit at splhigh until after autoconf has run. i had a quick go at this and it didn't go well. the approach we went with was to avoid having the device in question generate interrupts early. i left the redistributing code in the tree so people might discover it if needed, or at least see this description of what's happening. kettenis@ seemed ok with leaving the code in jmatthew@s pci_intr_establish_cpu commit, but removing it after. this is that removal.
2020-06-23enable wg(4).David Gwynne
this will make testing easier for everyone. from Jason A. Donenfeld and Matt Dunwoodie ok deraadt@ tobhe@
2020-06-23Fix COMMAND descriptionkn
There is no code anymore that puts angle brackets around swapped out processes, machine.c r1.54 removed this in 2006. Typo in first diff spotted by Matthew Martin, OK jmc (who also pointed out the CVS commit)
2020-06-23Remove redundant NULL checkkn
For the sake of simplicity and to reflect that the process list is always sorted (default is "cpu"), even if not explicitly requested; this makes it easier to argue about the code around sort order and its selection. OK millert
2020-06-23When parsing a character class don't increment openclass for a literal '['.Todd C. Miller
This allows expressions like '/[[/[]/' to parse which are also allowed by gawk.
2020-06-23Revert previous. hashfree() just calls free() which handles NULL withKenneth R Westerback
aplomb. 16 lines of 'C' can be so hard to grok at a glance. Prompted to look more closely at those 16 lines by mpi@.
2020-06-23bump pbuild datasize limit to 8G to allow Firefox to build with Rust 1.44Christian Weisgerber
ok deraadt@
2020-06-23Correctly redraw pane border bottom line when the status line is on andNicholas Marriott
at the bottom, reported by Kaushal Modi.
2020-06-23Use C99 initializers in wsdisplay_font struct definitions for SpleenFrederic Cambus
kernel fonts. OK mpi@
2020-06-23Enable virtual consoles on armv7, the same way it is done on arm64.Frederic Cambus
Tested on a Cubieboard2. OK patrick@
2020-06-23Sync armv7 fbtab with arm64 fbtab, leaving out drm devices.Frederic Cambus
OK deraadt@, patrick@
2020-06-23hashfree() doesn't like NULL, so check for NULL if NULL is aKenneth R Westerback
possibility. i.e. when bailing out before calling hashinit().. COVERITY 1452907 ok mpi@
2020-06-23'wgkey (pub)' was renamed to 'wgpubkey'.tobhe
2020-06-23Enable MPSAFE start routine to keep encryption workers more active.tobhe
From Jason A. Donenfeld" <Jason (at) zx2c4.com> ok patrick@
2020-06-23Increase TX mitigation backlog size for increased throughput.tobhe
From Jason A. Donenfeld" <Jason (at) zx2c4.com> ok patrick@
2020-06-23Use xvasprintf not vasprintf.Nicholas Marriott
2020-06-23Fix format strings (%p --> %lx) in debug code.Kenji Aoyama
ok dlg@
2020-06-23add intrmap_one, some temp code to help us write pci_intr_establish_cpu.David Gwynne
it means we can do quick hacks to existing drivers to test interrupts on multiple cpus. emphasis on quick and hacks. ok jmatthew@, who will also ok the removal of it at the right time.
2020-06-23Implement pci_intr_establish_cpu() for pyro(4) and vpci(4) based sparc64Jonathan Matthew
systems. MSIs on these systems are delivered to event queues, which trigger interrupts when non-empty. The interrupt handler dequeues the MSIs and converts them into soft interrupts, which run on the same cpu as the event queue interrupt. To target pci device interrupts to different cpus, we set up an event queue per cpu in the system, or as many as we can, if there are fewer event queues available. For now, we don't have a way to feed this information back to intrmap, so instead we just map interrupts for cpus that don't have an event queue to another cpu that does have one. Tested on V215 (pyro), T5120, T4-1, S7-2 (vpci). dlg@ got the pyro side of it working for me. ok dlg@ kettenis@
2020-06-22some clarifying commentsDamien Miller
2020-06-22timecounting: add gettime(9), getuptime(9)cheloha
time_second and time_uptime are used widely in the tree. This is a problem on 32-bit platforms because time_t is 64-bit, so there is a potential split-read whenever they are used at or below IPL_CLOCK. Here are two replacement interfaces: gettime(9) and getuptime(9). The "get" prefix signifies that they do not read the hardware timecounter, i.e. they are fast and low-res. The lack of a unit (e.g. micro, nano) signifies that they yield a plain time_t. As an optimization on LP64 platforms we can just return time_second or time_uptime, as a single read is atomic. On 32-bit platforms we need to do the lockless read loop and get the values from the timecounter. In a subsequent diff these will be substituted for time_second and time_uptime almost everywhere in the kernel. With input from visa@ and dlg@. ok kettenis@