summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-18mention that LocalForward and RemoteForward can accept Unix domain socketDamien Miller
paths; GHPR115
2024-10-18Put the bowels of the various VOP_PRINT routines underMiod Vallat
defined(DEBUG) || defined(DIAGNOSTIC) || defined(VFSLCKDEBUG) as they won't be used otherwise. Shaves a few bytes off installation kernels. ok kn@ semarie@
2024-10-18remove duplicate check; GHPR392 from Pedro MartellettoDamien Miller
2024-10-18allow "-" as output file for moduli screeningDamien Miller
based on GHPR393
2024-10-18ssh-keyscan doesn't need it's own sshfatal() definition, it canDamien Miller
use the shared one from fatal.c based on GHPR401 from lengyijun
2024-10-18in _ssh_order_hostkeyalgs() consider ECDSA curve type when arrangingDamien Miller
the hostkey algorithms. AFAIK this code is unused in OpenSSH, but I guess others are using it based on GHPR387 from Pawel Jakub Dawidek
2024-10-18require control-escape character sequences passed via the '-e ^x'Damien Miller
commandline to be exactly two characters long. Avoids one by OOB read if ssh is invoked as "ssh -e^ ..." Spotted by Maciej Domanski in GHPR368
2024-10-18remove addr.[ch] functions that are unused and visbility-restrictDamien Miller
ones that are unused outside the implementation itself; based on GHPR#282 by tobias@
2024-10-18unreachable POLLERR case; from ya0guang via GHPR485Damien Miller
2024-10-18s/Sx/Cm/ for external references; from Domen Puncer Kugler via GHPR501Damien Miller
2024-10-18drm/i915/hdcp: fix connector refcountingJonathan Gray
From Jani Nikula 55f2bd90b9fba95e929d4c407ffc422597152323 in linux-6.6.y/6.6.57 4cc2718f621a6a57a02581125bb6d914ce74d23b in mainline linux
2024-10-18drm/amd/display: Check null pointer before dereferencing seJonathan Gray
From Alex Hung 65b2d49e55fe13ae56da3a7685bdccadca31134a in linux-6.6.y/6.6.57 ff599ef6970ee000fa5bc38d02fa5ff5f3fc7575 in mainline linux
2024-10-18drm/amd/display: Revert "Check HDCP returned status"Jonathan Gray
From Alex Hung 939b4b2c008d4c620b8127bfd12cb22e40447141 in linux-6.6.y/6.6.57 bc2fe69f16c7122b5dabc294aa2d6065d8da2169 in mainline linux
2024-10-18drm/amd/display: Remove a redundant check in authenticated_dpJonathan Gray
From Wenjing Liu b505e4fc411c1015ff5114b0cca8c9b20ae2f679 in linux-6.6.y/6.6.57 4b22869f76563ce1e10858d2ae3305affa8d4a6a in mainline linux
2024-10-17drm/crtc: fix uninitialized variable use even harderJonathan Gray
From Rob Clark be6c52b059a28ec7f78a135061f2cc16b352ef70 in linux-6.6.y/6.6.57 b6802b61a9d0e99dcfa6fff7c50db7c48a9623d3 in mainline linux
2024-10-17use rw_status instead of interpreting RWL_OWNER to see if a lock is busy.David Gwynne
ok claudio@
2024-10-17Add pinctrl support.Mark Kettenis
ok patrick@, phessler@
2024-10-17Switch pane-colors and cursor-style options to be in alphabetical order,Nicholas Marriott
from Teubel Gyorgy, GitHub issue 4191.
2024-10-17Allow attributes in menu style, from Japin Li in GitHub issue 4194.Nicholas Marriott
2024-10-17Remove a lot of #include stanzas which used to be required by code found inMiod Vallat
this file at some point, but such code now lies comfortably in the Attic. ok jsg@ mpi@
2024-10-17create_tempfile: pass pointer to full pathname to strlcat()Todd C. Miller
Fixes a potential buffer overrun. Also check strlcpy() and strlcat() return value to detect truncations. Based on a diff from naddy@. OK naddy@ tb@ deraadt@
2024-10-17Split ec_asn1_parameters2group() into digestible piecesTheo Buehler
This becomes a simple wrapper function that currently does three checks: 1. ensure the fieldID is for a prime field 2. check that the purported prime is of reasonable size, extract and set curve coefficients and point conversion form 3. extract and set generator, order, cofactor and seed. Sanity checks such as the Hasse bound are dealt with in the EC_GROUP API, so need not be repeated here. They will become redundant once we enforce that the parameters represent a builtin curve anyway. ok jsing
2024-10-17Provide crypto_cpu_caps_init() as a CPU capability detection entry point.Joel Sing
This can be overridden on a per-architecture basis. The default version calls OPENSSL_cpuid_setup(), which will be eventually replaced/removed. ok joshua@ tb@
2024-10-17Remove run once code from OPENSSL_cpuid_setup().Joel Sing
OPENSSL_cpuid_setup() is no longer exported and is now only ever run under pthread_once(). ok joshua@ tb@
2024-10-17Shortcut cursig when called during sleep setup.Claudio Jeker
Add deep flag as function argument which is used by the sleep API but nowhere else. Both calls to sleep_signal_check() should skip the ugly bits of cursig(). In cursig() if deep once it is clear a signal will be taken keep the signal on the thread siglist and return. sleep_signal_check() will then return EINTR or ERESTART based on the signal context. There is no reason to do more in this special case. Especially stop/cont and the ptrace trap must be skipped here. Once the call makes it to userret the signal will be picked up again and handled in a safe location. Stopping singals need some additional logic since we don't want to abort the sleep just to stop a process. Since our SIGSTOP handling requires a major rewrite this will be posponed until then. OK mpi@
2024-10-17regenDavid Gwynne
2024-10-17Kingston SNV2S nvme deviceDavid Gwynne
2024-10-17regenDavid Gwynne
2024-10-17ampere altra pci portsDavid Gwynne
2024-10-17libssl: rework cert signature security levelTheo Buehler
This switches to using the X509_get_signature_info() API instead of hand rolling a part of it. This is slightly tangly since the security level API is strange. In particular, some failures are passed to the security level callback so that applications can override them. This makes the security level API handle RSA-PSS and EdDSA certificates correctly and the handshake with such can progress a bit further. Of note, we check that the certs are actually suitable for use in TLS per RFC 8446 contrary to what OpenSSL does. ok beck jsing
2024-10-17remove unneeded task.h include, missed in rev 1.67Jonathan Gray
2024-10-17include <dev/ic/bcm2835_dmac.h> not "dev/ic/bcm2835_dmac.h"Jonathan Gray
2024-10-17remove unneeded if_wg.h and pfsync.h includesJonathan Gray
2024-10-17use <machine/asm.h> not "machine/asm.h", for consistencyJonathan Gray
2024-10-17remove unneeded includesJonathan Gray
2024-10-16EC ASN.1: add reminder that the simple method might also want testingTheo Buehler
2024-10-16Implement Wei25519 to exercise some more elliptic curve codeTheo Buehler
This provides a non-trivial non-builtin curve that is unlikely to ever become a builtin curve. This exercises the cofactor guessing code and and ensures that things work as far as they can with a custom OID. The main reason for adding it is to have a "real-world" example for an upcoming check that EC parameters represent a builtin curve.
2024-10-16a.out is no longer the commonly encountered binary file format, the world hasMiod Vallat
moved to ELF. Move the a.out specific defines and macros, but the MID_xxx values, from <sys/exec.h> to <a.out.h>, and update the few userland binaries which really need these defines (i.e. boot-related tools for old architectures) to explicitly include <a.out.h> when needed. "Fine" deraadt@
2024-10-16Deliver SIGTRAP, rather than SIGEMT, when a TADDccTV or TSUBccTV instructionMiod Vallat
traps. Such instructions are deprecated in v9 (64-bit) code and should never occur in real-life code. See v9 manual A.59 and A.60 for details. CVS ----------------------------------------------------------------------
2024-10-16Deliver SIGTRAP, rather than SIGEMT, for trap instructions which are neitherMiod Vallat
debugger breakpoints nor compiler-generated divide by zero reports. SIGEMT is a historical curiosity which makes no sense nowadays except on PDP-11 and VAX hardware. Discussed with imp@ and visa@ long ago.
2024-10-16cut tun_init() out, it does pointless work.David Gwynne
tun_init turns interface/stack config into a set of flags that tun(4) keeps in tun_softc sc_flags, but never uses. ok miod@ kn@
2024-10-16remove SIOCSIFDSTADDR from the network ioctls.David Gwynne
netintro says it's deprecated, and most of our other drivers are doing fine without it. ok miod@ kn@ patrick@
2024-10-16rpki-client: sprinkle some constTheo Buehler
EVP_PKEY_get0_* were made const correct in OpenSSL 3 and now cause the build of rpki-client to emit warnings. Of course no one is able to see these warnings because they are hidden in all the deprecation vomit. Makes rpki-client build cleanly against OpenSSL 3 when configured with --with-openssl-cflags=-DOPENSSL_SUPPRESS_DEPRECATED. ok claudio deraadt job
2024-10-16remove unneeded frame.h and riscvreg.h includesJonathan Gray
2024-10-15rpki-client/openssl: eliminate pointless OpenSSL deprecation vomitTheo Buehler
2024-10-15rust-openssl: set resolver="2" for workspaceTheo Buehler
silences an annoying warning
2024-10-15Unindent error check in EC_GROUP_set_generator()Theo Buehler
2024-10-15Enable sig-stop3 regress test. It should no longer fail now.Claudio Jeker
2022-10-20Provide a harness driving rust-openssl's regress testsTheo Buehler
rust-openssl is an integral part of the Rust ecosystem and more than a dozen ports, including lang/rust itself, depend on it. We need to ensure that it keeps working with LibreSSL. If the rust and rust-openssl-tests packages are installed, create a cargo workspace under obj/ that compiles and runs the rust-openssl regress tests much like what is done for the openssl-ruby tests. This expands our regress coverage: for instance, this would have caught the broken ASN.1 indefinite length encoding caused by asn1/tasn_enc.c r1.25. Positive feedback beck jsing semarie Testing and ok anton
2024-10-15Add PS_STOPPED to the flagsClaudio Jeker