summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-12-26Update documentation URLMiod Vallat
2023-12-26Align the other RIRs with the recent clarifications from AFRINICJob Snijders
Following https://lists.afrinic.net/pipermail/dbwg/2023-December/000496.html Simply apply the inverse of 'afrinic.constraints' r1.2 to the other RIR files (since no resources can be transferred from AFRINIC to any other RIRs). OK tb@
2023-12-26Do not accept empty delta elementsTheo Buehler
Ties de Kock found RRDP content that doesn't match the XML schema, most likely generated by krill: https://github.com/NLnetLabs/krill/issues/1180 Use the state machine to mark a new delta element as empty and check at the end whether that state was changed (which means it contained publish or withdraw elements). If so, raise a parse failure. ok claudio job
2023-12-26Apple machines with multiple speakers typically have the shutdown pin ofMark Kettenis
the digital amplifier codecs wired up to a single GPIO. This is apparently problematic for Linux and Asahi Linux changed their device trees to use a regulator instead to such that reference counting makes sure that shutdown isn't asserted until all codecs are ready for it. Follow suit, even though our regulator code doesn't do the proper reference counting yet. ok patrick@
2023-12-26Improve handling of SError interrupts. Print some useful information andMark Kettenis
allow additional information to be printed for specific CPU types. Use this to print the L2C registers on Apple CPUs which can be very useful in tracking down the source of certain SError interrupts. ok miod@, dlg@
2023-12-26EVP_CipherInit(): remove cleanup callTheo Buehler
There is a bizarre EVP_CIPHER_CTX_cleanup() call in EVP_CipherInit() leading to a subtle behavior difference with EVP_CipherInit_ex(). The history is that before EVP_CIPHER_CTX was made opaque, a context would often live on the stack (hello, MariaDB) and the EVP_CIPHER_CTX_cleanup() call was in fact an EVP_CIPHER_CTX_init() which just zeroes out the struct. The problem with doing this is that on context reuse there could be data hanging off it, causing leaks. Attempts were made to clean up things in EVP_CipherFinal*(), but that broke applications reaching into the context afterward, so they were removed again. Later on, opacity allowed changing the _init() to a _cleanup() since EVP_CIPHER_CTX could no longer live on the stack, so it would no longer contain garbage. I have to correct myself: it would no longer contain stack garbage. Now: EVP_CipherInit_ex() does some extra dances to preserve the AES key wrap flag, which is cleared unconditionally in EVP_CipherInit(). That's annoying to document and very likely never going to be an issue in the wild: you'd need to do key wrap and then use the same context for use with a cipher that does not allow key wrap for this to make a difference. This way, all our EVP_{Cipher,Decrypt,Encrypt}*_ex() functions are now trivially wrapped by their non-_ex() versions. ok jsing
2023-12-26EVP_CipherInit_ex() merge two code pathsTheo Buehler
Clean up the cipher context unconditionally if the cipher is being set. This allows doing the dance to retain the key wrap flag only once and makes it more obvious that allocating the cipher data doesn't leak. suggested by/ok jsing
2023-12-25Move EVP_PKEY_assign() a bit up and tweak it slightlyTheo Buehler
ok jsing
2023-12-25Remove unused X509_LOOKUP_METHODsTheo Buehler
None of these function pointers were ever set. Now that the structure is opaque they won't ever be, so time for them to hit the bitbucket. Infinite extensibility of the toolkit results in complications, bugs, and dead code. ok jsing
2023-12-25Avoid out-of-bounds accesses in ASN1_BIT_STRING_{get,set}()Theo Buehler
If a negative n is passed, these functions would underrun the bitstring's data array. So add checks for that and drop spades of unnecessary parens. These functions are quite broken anyway. The setter attempts to zap the unnecessary trailing zero octets, but fails to do so if the bit being cleared isn't already set. Worse is the getter where you can't tell an error (like attempting an out-of-bounds read) from the bit being unset. ok joshua
2023-12-25Rename a few ret into pkeyTheo Buehler
2023-12-25Rework EVP_PKEY_set_type{,_str}()Theo Buehler
These two functions previously wrapped a pkey_set_type() helper, which was an utter mess because of ENGINE. With the long awaited departure of ENGINE, this function became a lot simpler. A further simplification is obtained by not doing the optimization to avoid an ameth lookup: this requires walking a list of 11 ameths. We should consider bsearch()... With this gone and a saner implementation of EVP_PKEY_free_it(), we can implement these functions with a dozen lines of code each. ok jsing
2023-12-25Rework EVP_PKEY_free()Theo Buehler
Use pkey instead of x, remove the pointless variable i, no need to check for NULL before sk_X509_ATTRIBUTE_pop_free(), switch to freezero() to leave fewer invalid pointers around. ok jsing
2023-12-25Move EVP_PKEY_free() up next to evp_pkey_free_pkey_ptr()Theo Buehler
ok jsing
2023-12-25Fix EVP_PKEY_up_ref() - must have hit ^X somehowTheo Buehler
2023-12-25Rework evp_pkey_free_pkey_ptr()Theo Buehler
Rename the variable from x into pkey, make it NULL safe and unindent. ok jsing
2023-12-25Rename EVP_PKEY_free_it() into evp_pkey_free_pkey_ptr()Theo Buehler
ok jsing
2023-12-25Move the confusingly named EVP_PKEY_free_it() a bit upTheo Buehler
ok jsing
2023-12-25Simplify EVP_PKEY_up_ref()Theo Buehler
There is no need for a local variable and a ternary operator here. ok jsing
2023-12-25Switch EVP_PKEY_new() from malloc() to calloc()Theo Buehler
ok jsing
2023-12-25Clarify that the ENGINE argument is ignored; OK tb@.Ingo Schwarze
While here, also switch the argument placeholder from *impl to *engine as suggested by tb@.
2023-12-25Install media contain no packages anymore so move packages build lastJeremie Courreges-Anglas
This may the first items all speak about base and xenocara material, and the mention of ports/packages feels less out of place. Input and ok tb@
2023-12-25Zap HISTORYJeremie Courreges-Anglas
Knowing for which release this documentation was introduced seems superfluous. ok tb@
2023-12-24Move EVP_Digest() next to the functions it wrapsTheo Buehler
It really makes no sense to have the mess that is EVP_MD_CTX_copy{,_ex}() live between EVP_Digest{Init{,_ex},Update,Final{,_ex}}() and EVP_Digest(), the latter being a relatively simple wrapper of Init_ex/Update/Final_ex.
2023-12-24rename bus_type enum to sparc_bus_type to not conflict with bus_type in drmJonathan Gray
build error reported by deraadt@ ok kettenis@
2023-12-24Zal dead codeJob Snijders
OK tb@
2023-12-24Rewrite dev_mkdb with FTSGreg Steuck
This adds support for the devices in nested directories. Pointers, review, and OK by semarie@
2023-12-23Relax -C pledge to unbreak shelling out in interactive modeKlemens Nanni
r1.69 introduced -C in 2008 "to continue multiple transfers"; 'ftp -C ftp://ftp.eu.openbsd.org/' lands in "ftp> " and turns "mget" into "reget" by default. r1.139 -C/resume without "proc exec" thusly was too strict. Instead, now after recent cleanups/tweaks, prevent execution with -o. OK millert
2023-12-23Remove unused variables.Mark Kettenis
2023-12-23Sync for perl 5.36.3Andrew Fresh
2023-12-23Update to perl 5.36.3Andrew Fresh
No changes to perl, as those were already committed for the earlier errata. This just brings documentation and such in line with upstream. ok bluhm@
2023-12-23Add support for "locked" DARTs. These have the page table registersMark Kettenis
locked down and we need to retain the existing mappings. ok patrick@
2023-12-23Suppress a spurious empty arg at EOF w/ "find -0" caused by the last commit.Todd C. Miller
2023-12-23Provide more complete implementations of some of the Linux compatMark Kettenis
interfaces that are needed for the upcoming apple kms driver. ok jsg@
2023-12-23Change the type of dma_addr_t to uint64_t. It is a 64-bit type on mostMark Kettenis
Linux architectures (including the most popular 32-bit ones) and a new driver I'm working on tries to print a dma_addr_t variable using %llx. ok jsg@
2023-12-23Use more consistent order for Init/Update/FinalTheo Buehler
Consistently implement the _ex() version after the non-extended versions, First Cipher Init/Update/Final, then Encrypt, then Decrypt. This only switches the order of CipherFinal{,_ex} and move the DecryptInit* down, so they are no longer somewhere in the middle of the Encrypt* functions.
2023-12-23Backout always allocate per-CPU statistics counters for networkAlexander Bluhm
interface descriptor. It panics during attach of em(4) device at boot.
2023-12-23remove trailing whitespacesOmar Polo
2023-12-23ketttenis -> kettenisJonathan Gray
2023-12-23Prefix get_trusted_issuer() with x509_vfy_Theo Buehler
2023-12-22Always allocate per-CPU statistics counters for network interfaceVitaliy Makkoveev
descriptor. We have the mess in network interface statistics. Only pseudo drivers do per-CPU counters allocation, all other network devices use the old `if_data'. The network stack partially uses per-CPU counters and partially use `if_data', but the protection is inconsistent: some times counters accessed with exclusive netlock, some times with shared netlock, some times with kernel lock, but without netlock, some times with another locks. To make network interfaces statistics more consistent, always allocate per-CPU counters at interface attachment time and use it instead of `if_data'. At this step only move counters allocation to the if_attach() internals. The `if_data' removal will be performed with the following diffs to make review and tests easier. ok bluhm
2023-12-22Zap useless newline added in previousJeremie Courreges-Anglas
2023-12-22'pax' format support for files over 8GBJeremie Courreges-Anglas
ok millert@
2023-12-22Remove two no longer necessary remindersTheo Buehler
I guess I'm getting old. Next time I'll have to add a reminder not to forget to remove the reminder.
2023-12-22Remove extra whitespace on two linesTheo Buehler
2023-12-22xargs: fix parsing of empty fields when "xargs -0" is used.Todd C. Miller
Previously, these fields would be skipped. From Hiltjo Posthuma.
2023-12-22Add length checks for partial_lenTheo Buehler
These remove a few more potential out-of-bounds accesses and ensure in particular that the padding is between 1 and block_size (inclusive). ok joshua jsing
2023-12-22syncTheo de Raadt
2023-12-22Rename check_hosts()Theo Buehler
2023-12-22Replace check_trust() with its x509_vfy_ prefixed wrapperTheo Buehler