summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-22Add a sshd debug wrapper to run all of the subprograms from the buildDarren Tucker
directory while developing and debugging. Should help prevent accidentally testing against unchanged installed sshd-auth and sshd-session binaries. ok djm@
2024-10-22Make debug call printf("%s", NULL) safe. Prevents problems on platformsDarren Tucker
where this isn't safe (which it's not required to be). ok djm@
2024-10-22remove duplicate DEV_ID_PCH2 definesJonathan Gray
2024-10-22correct name of define for ISS data abort S1PTW bitJonathan Gray
2024-10-21define _MACHINE_ARCH not _MACHINE_ARCJonathan Gray
2024-10-21remove unneeded includesJonathan Gray
2024-10-21Correctly report print screen key in raw mode (i.e. under X); problemMiod Vallat
reported by kirill@
2024-10-21We have not been swapping out kernel stacks since forever. So justMark Kettenis
allocate the uarea with zeroed pages using km_alloc(9). Adjust the amd64 code that creates a guard page at the top of the kernel stack to use pmap_kremove(9) instead of pmap_remove(9) to reflect that the uarea no longer uses "managed" pages. ok mpi@
2024-10-21Bump up the maximum for repeat-time (some people want it to beNicholas Marriott
effectively infinite).
2024-10-21Add function to get current offset from copy mode, from Michael Grant.Nicholas Marriott
2024-10-21Adjust how Ctrl and Meta keys are sent to use standard representation ifNicholas Marriott
available in mode 1, from Stanislav Kljuhhin, GitHub issue 4188.
2024-10-21remove unneeded includesJonathan Gray
2024-10-21Emit a warning if all fortunes in the file are too short or too longTheo Buehler
From Nir Lichtman
2024-10-21revert "try to simplify the locking code around busy maps"David Gwynne
anton@ and syzkaller have trouble with it.
2024-10-21Fix lldb doesn't analyze process core correctly.ASOU Masato
ok kettenis@
2024-10-21remove unused MP_PICMODE defineJonathan Gray
2021-04-28Import LLVM 11.1.0 release including clang, lld and lldb.Patrick Wildt
2024-10-20Plug leak of Fortbuf in find_matches()Theo Buehler
From Nir Lichtman
2024-10-20try to simplify the locking code around busy maps.David Gwynne
vm_maps have a "feature" where they can mark that they're being operated on by a specific proc, and then release the rwlock protecting their state. to relock, you have to be the same proc that marked it busy. this diff tries to simplify it a bit. it basically has threads check the busy field up front and rechecks the busy field inside the rwlock. if you can sleep, it will sleep up front for the busy field to become clear, rather than sleep on either the busy field or the rwlock. some code paths clear the busy field without holding the rwlock, so it doesn't make sense to me to be waiting for the busy field but sleeping somewhere else. ok claudio@ mpi@
2024-10-20VM_MAP_BUSY and VM_MAP_WANTLOCK will be removed soon, prep for that.Claudio Jeker
OK dlg@
2024-10-20ec_ameth.c: fix includesTheo Buehler
2024-10-20ec_asn1: add missing includesTheo Buehler
2024-10-20ec_curve: add missing includesTheo Buehler
2024-10-20zap an empty lineTheo Buehler
2024-10-20add comma to fix offsets of trap type stringsJonathan Gray
ok miod@
2024-10-19Change sdhc_bus_power() behavior to return success and not perform aJames Hastings
power-off voltage switch sequence when card is already operating at requested voltage. Zap the NOPWR0 quirk for Intel controllers. ok stsp@ kettenis@
2024-10-19Make ec EVP_PKEY_CTRL_MD handler match dsa/rsa more closelyTheo Buehler
This makes the thing a bit easier on the eyes and improves greppability. ok joshua jsing
2024-10-19Drop a useless cast in pkey_dsa_ctrl()Theo Buehler
ok joshua jsing
2024-10-19Remove IA32 specific code from cryptlib.c.Joel Sing
Move the IA32 specific code to arch/{amd64,i386}/crypto_cpu_caps.c, rather than polluting cryptlib.c with machine dependent code. A stub version of crypto_cpu_caps_ia32() still remains for now.
2024-10-19Remove unused sparc CPU capability detection code.Joel Sing
This has been unused for a long time - it can be found in the attic if someone wants to clean it up and enable it in the future. ok tb@
2024-10-19EC_GROUP_check(): zap useless commentsTheo Buehler
2024-10-19Move EC_GROUP_check() to ec_lib.cTheo Buehler
EC_GROUP_check() is quite simple. It doesn't need to use its own file.
2024-10-19Mark two regress/sbin/ifconfig tests as expected failures.Anton Lindqvist
They make use of the by now unsupported SIOCSIFDSTADDR ioctl command. They should instead make use of the SIOCAIFADDR ioctl command, however figuring out such change is above my pay grade.
2024-10-18ec_asn1_test: simplify previousTheo Buehler
2024-10-18ec_asn1_test: call EC_GROUP_check() for the builtin curvesTheo Buehler
This makes the internal curve test in ectest.c superfluous. Also fix a logic error.
2024-10-18Simplify EC_get_builtin_curves().Theo Buehler
When determining the minimum of nitems and EC_CURVE_LIST_LENGTH we need neither an extra variable nor a ternary operator.
2024-10-18Use better naming in ec_curve.cTheo Buehler
Rename struct ec_list_element into struct ec_curve. Accordingly, curve_list becomes struct ec_curve ec_curve_list[]. Adjust internal API to match. suggested by jsing
2024-10-18ec_asn1_test: adjust for rejection of non-builtin curve parametersTheo Buehler
2024-10-18Enforce that EC Parameters correspond to a builtin curveTheo Buehler
EC parameters are very general. While there are some minimal sanity checks, for the parameters due to DoS risks found in the last decade, the elliptic curve code is poorly written and a target rich environment for NULL dereferences, busy loops, expensive computations and whatever other nastiness you can think of. It is not too hard to come up with parameters that reach very ugly code. While we have removed for the worst of it (the "fast" nist code and GF2m come to mind), the code very much resembles the Augean Stables. Unfortunately, curve parameters are still in use - even mandatory in some contexts - for example in machine-readable travel documents signed by ICAO country signing certification authorities (see ICAO Doc 9303). To avoid many of these DoS vectors, start enforcing that we know what the curve parameters are about, namely that they correspond to a builtin curve. This way we know that the parameters are at least as good as the standards we implement and checking this is cheap: Translate curve parameters into the ad hoc representation in the builtin curve code and check there's a match. That's very cheap since most curves are distinguished by cofactor and parameter length and we need to use an actual parameter comparison for at most half a dozen curves, usually only one or two. ok jsing
2024-10-18Remove now unused x86cpuid.pl.Joel Sing
2024-10-18Provide crypto_cpu_caps_init() for i386.Joel Sing
This is the same CPU capabilities code that is now used for amd64. Like amd64 we now only populate OPENSSL_ia32cap_P with bits used by perlasm. Discussed with tb@
2024-10-18Remove now unused x86_64cpuid.pl.Joel Sing
2024-10-18Provide crypto_cpu_caps_init() for amd64.Joel Sing
This is a CPU capability detection implementation in C, with minimal inline assembly (for cpuid and xgetbv). This replaces the assembly mess generated by x86_64cpuid.pl. Rather than populating OPENSSL_ia32cap_P directly with CPUID output, just set the bits that the remaining perlasm checks (namely AESNI, AVX, FXSR, INTEL, HT, MMX, PCLMUL, SSE, SSE2 and SSSE3). ok joshua@ tb@
2024-10-18Instead of always following up "power on" with a "reset", onlyTobias Heider
send a single reset during attach. We have discovered that some devices such as the built-in keyboard on the Thinkpad T14s Gen 6 don't like getting more than one reset sent or they become unresponsive. This has been in snaps for a while and hasn't caused any major regressions so we are confident the extra reset is not needed on most hardware. feedback from kettenis@ ok deraadt@ mlarkin@
2024-10-18Inline last use of OPENSSL_load_builtin_modules()Theo Buehler
This used to be a trivial wrapper of the ASN1_add_oid_module() horror. It's no longer exported, so it can go away. It moves from the terribly named file conf_mall.c to the equally terribly named file conf_sap.c. I have no idea what mall and sap are supposed to mean in this context.
2024-10-18Move EC_GROUP_new_curve_GFp() into ec_lib.cTheo Buehler
Another single-function file goes away.
2024-10-18Merge EC_GROUP_new_curve_GFp() with ec_group_new_curve()Theo Buehler
The latter was used for EC_GROUP_new_curve_GF2m() and is now pointless. ok jsing
2024-10-18ec_asn1_test: add secp256k1.mTheo Buehler
2024-10-18ec_asn1_test: remove last hardcoded wei25519 remnantTheo Buehler
2024-10-18ec_asn1_test: test Wei25519.2 and Wei25519.-3 as wellTheo Buehler
Covers a few more corner cases in the elliptic curve code.