summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-10Wrap comment badly mistreated by an autoformatter due to missing /*-Theo Buehler
2024-11-10Do not call uvm_swap_finicrypt_all() a second time in dumpsys().Jonathan Gray
a change mpi@ committed to all architectures in 2015
2024-11-10remove unused XINTR() defineJonathan Gray
2024-11-10Garbage collect an unused variableTheo Buehler
2024-11-09remove unused functions; ok mglocker@Jonathan Gray
2024-11-09Mention the key lengths of some encryption algorithms.Ingo Schwarze
This is relevant because EVP_EncryptInit(3) takes a "key" argument, and users need to consider the size of that argument. While here, also mention whether ciphers are stream ciphers or block ciphers and what the block size is.
2024-11-09libz: sync with baseTheo Buehler
2024-11-09libz: sync with upstreamTheo Buehler
fixes a possible redefinition of z_const and adds a range check for MAX_WBITS. ok bluhm
2024-11-09tweak flex.1 a bit to not mention atoi/atof: they don't add value hereOmar Polo
ok miod@
2024-11-09ANSI-fy lexOmar Polo
while here remove the unused function action_m4_define() and two unused variables: `opt' in scanopt_err() and `num' in filter_fix_linedirs() ok miod@
2024-11-09The 'flags' parameter has been removed from falloc(9) in 2018.Matthieu Herrb
ok miod@
2024-11-09The buffer flipper (incorrectly?) uses pmap_copy_page() from interruptMark Kettenis
context (when it calls uvm_pagerealloc_multi()). But the current implementation of pmap_copy_page() assumes it only runs in process context. Use splbio() to block the interrupts while we're doing the copy. ok mpi@
2024-11-09sync curly braces markup, fix indentKlemens Nanni
Replace literal braces with .Brq, use a list and indent the interface options under that interface entry to reflect hierarchy (rad.conf(5) does that, too). Feedback from/fine with jmc
2024-11-09sync curly braces markup, fix indentKlemens Nanni
Replace literal braces with .Brq, use lists, replace literal 'foo options' with .Ar option ... and indent options where they belong. This highlights config parser differences between daemons: - dhcpleased: requires empty blocks, e.g. 'interface em0 {}' (Brq Op Ar option ...) - rad: lets you omit them, e.g. 'interface em0' (Op Brq Ar option ...) Feedback OK jmc
2024-11-09Simplify uvm wire and unwire in psp(4) for lauch update data.Alexander Bluhm
Instead of wiring page by page, wire the whole range. After the PSP lauch update data command finished, unwire the memory again. from hshoexer@; OK mlarkin@
2024-11-09gettytab's dx flag is supposed to set decctlq, which is the opposite ofMiod Vallat
ixany, but was setting ixany instead. Fix this by reversing the logic. Bug report and fix from Piotr Durlej, thanks!
2024-11-09usage should fit in a 80-column display.Igor Sobrado
ok jmc@
2024-11-09RegenMiod Vallat
2024-11-09Add support for Exar XR17V352, submitted by Sean on tech@Miod Vallat
2024-11-09RegenMiod Vallat
2024-11-09More uftdi(4) devices; from Cameron Willams on tech@Miod Vallat
2024-11-09RegenMiod Vallat
2024-11-09More udl(4) devices, from NetBSD.Miod Vallat
2024-11-09remove unused ifq_is_serialized()Jonathan Gray
missed when the prototype was removed in ifq.h rev 1.25 ok dlg@
2024-11-09Remove unnecessary variableAndrew Fresh
It turns out that DOWNLOAD_ONLY was just used as the inverse of INSTALL, so use the one variable instead of two. This also uncovered some small cleanups.
2024-11-09Add a -l flag to list drivers or filesAndrew Fresh
This provides a more easily machine readable list than the normal output.
2024-11-08Weed out the last remaining refences to the obsoleteIngo Schwarze
function EVP_MD_CTX_init(3) and talk about EVP_MD_CTX_new(3) instead. This is similar in spirit to OpenSSL commit 25191fff (Dec 1, 2015), but i'm also mentioning EVP_MD_CTX_reset(3), slightly reordering some sentences in a more systematic way, and improving some related wordings to be more precise and read better.
2024-11-08Clean up EC_KEY_dup()Theo Buehler
This calls init() with the default method, so EC_KEY_copy() gets a chance to call finish() if the source's method doesn't match. But no init() call is made in EC_KEY_copy(). Of course the source method's copy() needs to be able to cope. The great news is that ssh uses this. Sigh. ok beck jsing
2024-11-08Sweep over EC_KEY_copy()Theo Buehler
This is a special snowflake. Its logic is such that it only overwrites things on the target that are available in the source. So if the source has no group (yes, that's possible), the destination's group will remain. Even better: if you copy a public key over what was previously a private key, the private scalar will remain. That's almost never going to result in a valid key. If you copy from a larger group to a smaller group the private scalar will most likely be out of range [1, order). Use dup functions instead of reimplementing badly and add a snarky comment courtesy of beck to one of those silly const annotations (there's a small addendum by me). ok beck jsing
2024-11-08Clean up EC_KEY_freeTheo Buehler
r is a silly name for an EC_KEY and it is silly to assign the refcount to a variable i (short for uninspired) when you can check the function return directly. Tweak sizeof in freezero to jsing's liking. ok beck jsing
2024-11-08Clean up EC_KEY_new_by_curve_name()Theo Buehler
Use a better variable name, simpler error handling. This could be simplified further if we decide to have an ec_key_set0_group() that avoids a copy. ok beck jsing
2024-11-08Change 'labeloffset' to 0 from 64 as that space in the OpenBSD disklabel ↵Kenneth R Westerback
block is no longer used by luna88k. Tested & ok miod@ aoyam@
2024-11-08Use read once in socket filter functions.Alexander Bluhm
The socket filt_...() functions are called with shared netlock, but without per socket lock. This can be done as they are read-only. After unlocking, TCP will modify socket variables in parallel. So explicitly mark with READ_ONCE() where unlocked access to socket fields happens. OK mvs@
2024-11-08Use mutex of receive socket buffer to protect so_oobmark.Alexander Bluhm
Socket field so_oobmark belongs to receive path, so use so_rcv mutex to protect it. Although tcp_input() is still exclusively locked, put mutex there to prepare further unlocking. OK mvs@
2024-11-08qcpas: send APM_POWER_CHANGE events upon ac / battery life changesLandry Breuil
allows upowerd to react on power changes, and now i have nifty notifications in xfce4 on the x13s when plugging/unplugging the ac. Also works on the omnibook x14. ok phessler@ kettenis@ jca@
2024-11-08syncStuart Henderson
2024-11-08Use a mutex to make psp(4) MP safe.Alexander Bluhm
To avoid a race between writing PSP command, sleeping, receiving interrupt, and calling wakeup(9), protect psp(4) driver with a mutex. With that interrupt handler is MP safe and ioctl(2) can release kernel lock. from hshoexer@; OK dlg@
2024-11-08List CMAC_CTX_copy(3) in the SYNOPSIS. It was alreadyIngo Schwarze
mentioned in NAME and described in DESCRIPTION and RETURN VALUES.
2024-11-08sparc64 now has ci_idepth.Martin Pieuchot
ok miod@
2024-11-08TCP send and receive space update are MP safe.Alexander Bluhm
tcp_update_sndspace() and tcp_update_rcvspace() only read global variables that do not change after initialization. Mark them as such. Add braces around multi-line if blocks. ok mvs@
2024-11-08Provide a replacement assembly implementation for SHA-256 on amd64.Joel Sing
Replace the perlasm generated SHA-256 assembly implementation with one that is actually readable. Call the assembly implementation from a C wrapper that can, in the future, dispatch to alternate implementations. Performance is similar (or even better) on modern CPUs, while somewhat slower on older CPUs (this is in part due to the wrapper, the impact of which is more noticable with small block sizes). Thanks to gkoehler@ and tb@ for testing. ok tb@
2024-11-08Rewrite bn2binpad.Joel Sing
Rewrite bn2binpad, removing some OpenSSL specific behaviour and unnecessary complexity. Our BN_num_bytes() does not return bogus lengths, so we don't need to see if things work out with nominated outputs. Swipe away some endianness_t, but continue to ignore negatives and don't dare give away padded zeroes. Implement a more readable constant time conversion. In particular, the little endian is the less common use case, which we can implement by reversing the padded output in place, rather than complicating all of the conversion code. ok beck@ tb@
2024-11-08Add regress coverage for the size_t constant time comparisions.Joel Sing
2024-11-08Provide constant time comparison functions for size_t.Joel Sing
These will be used in an upcoming change. ok beck@ tb@
2024-11-08Relocate ECParameters_dup() to ec_asn1Theo Buehler
jsing rightly points out that this has nothing to do with ASN.1, but ec_lib.c has no EC_KEY knowledge otherwise (it's about groups and points) and moving it to ec_key.c is also not satisfactory since the weird d2i/i2d for ECParameters don't belong there either. no objection from jsing
2024-11-08Replace aarch64 CPU capabilities detection code.Joel Sing
Replace the aarch64 CPU detection code with a version that parses ISAR0, avoiding signal handling and SIGILL. This gets ISAR0 via sysctl(), but this can be adapted to other mechanisms for other platforms (or alternatively the same can be achieved via HWCAP). This now follows the same naming/design as used by amd64 and i386, hence define HAVE_CRYPTO_CPU_CAPS_INIT for aarch64. ok kettenis@ tb@
2024-11-08pf(4) when doing af-to translation for ICMP protocol sends packetsAlexandr Nedvedicky
with TTL field to zero. To fix it function pf_test_state_icmp() must initialize ttl field in pf_pdesc structure for inner packet. feedback from bluhm@ OK bluhm@
2024-11-08remove pmap_zero_page_uncached()Jonathan Gray
used by idle page zeroing code removed from uvm in 2015 ok miod@ mpi@ mlarkin@
2024-11-08Move sparc64-specific ofw prototypes out of the MI header.Miod Vallat
2024-11-08ec_asn1_test: remove extra parensTheo Buehler