summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-11While the traditional OpenSSL return value and behaviour of BIO_dump(3)Bob Beck
is pure comedy gold, and now documented as such, sadly this bit of pure Muppet genius can't really in good consience stay in the tree as is. Change BIO_dump to always return the number of bytes printed on success and to stop printing and return -1 on failure if a writing function fails. ok tb@, jsing@
2021-07-11Add 'mbr_' prefix to struct mbr field names.Kenneth R Westerback
Change 'offset' to mbr_lba_self and 'reloffset' to mbr_lba_firstembr to make their use more evident. Adjust a few parameter names to match. Change 'part[]' to mbr_prt[] to reflect that it is an array of struct prt. No functional change.
2021-07-11new manual page ASN1_parse_dump(3)Ingo Schwarze
2021-07-11Correct various min/max cluster numbers for FAT12/16/32. From NetBSD.Mark Kettenis
ok krw@, jsg@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-07-11syncTheo de Raadt
2021-07-11document ASN1_get_object(3)Ingo Schwarze
2021-07-11Move ask_cmd(), ask_num(), ask_pid(), ask_string(), parse_b()Kenneth R Westerback
and crc32(). No functional change.
2021-07-11Add tabs to make variable declarations easierKenneth R Westerback
to read. No functional change.
2021-07-11Add tabs to make struct definitions and function prototypes easierKenneth R Westerback
to read. No functional change.
2021-07-11'return' is not a function call.Kenneth R Westerback
No functional change.
2021-07-11convert db_addr_t to vaddr_tJasper Lievisse Adriaanse
2021-07-11correct commentJonathan Gray
from Jonathan Kollasch in NetBSD
2021-07-10tweak indentation of conditional in db_validate_address().Jasper Lievisse Adriaanse
this also matches arm64 now/again.
2021-07-10Fix a read buffer overrun in X509_CERT_AUX_print(3),Ingo Schwarze
which by implication also affects X509_print(3). The ASN1_STRING_get0_data(3) manual explitely cautions the reader that the data is not necessarily NUL-terminated, and the function X509_alias_set1(3) does not sanitize the data passed into it in any way either, so we must assume the alias->data field is merely a byte array and not necessarily a string in the sense of the C language. I found this bug while writing manual pages for these functions. OK tb@ As an aside, note that the function still produces incomplete and misleading results when the data contains a NUL byte in the middle and that error handling is consistently absent throughout, even though the function provides an "int" return value obviously intended to be 1 for success and 0 for failure, and even though this function is called by another function that also wants to return 1 for success and 0 for failure and even does so in many of its code paths, though not in others. But let's stay focussed. Many things would be nice to have in the wide wild world, but a buffer overflow must not be allowed to remain in our backyard.
2021-07-10Pass expected result first when diff(1)ing for result.Martin Pieuchot
2021-07-10new manual page BIO_dump(3)Ingo Schwarze
2021-07-10Add a bunch of workarond in the verifier to support partial chains andBob Beck
the saving of the first error case so that the "autochain" craziness from openssl will work with the new verifier. This should allow the new verification code to work with a bunch of the autochain using cases in some software. (and should allow us to stop using the legacy verifier with autochain) ok tb@
2021-07-10Add test case for single static address in configuration payload intobhe
addition to existing "config address" test that uses an address pool.
2021-07-10honor objdiranton
2021-07-10minor nits:anton
* compile the edit utility once * emit a warning during timeout
2021-07-10Sync maxusers with other 64bit archs.Martin Pieuchot
From miod@, ok deraadt@
2021-07-10syncTheo de Raadt
2021-07-09use vaddr_t as type for frames as is commonly used elsewhere tooJasper Lievisse Adriaanse
ok kettenis@
2021-07-09fix scentence in db_printsym commentJasper Lievisse Adriaanse
2021-07-09Remove unused `cc_koperations' and `cc_queued' members from 'cryptocap'mvs
struct. ok bluhm@
2021-07-09Parse /soc/dma-ranges to populate the openbsd,dma-constraint property.Patrick Wildt
On the MNT Reform, which uses a i.MX8MQ with 4 GB of memory, this makes sure that we don't allocate DMA buffers above the 32-bit boundary. As it turns out the i.MX8MQ's I/O devices are limited to 32-bit addresses. The i.MX8MP seems to be better in that regard, though at least the USB controller is still limited. That's a bit harder to fix in a dynamic fashion, but we'll take care of that as soon as someone shows up with an i.MX8MP with that much memory. ok kettenis@
2021-07-09Use SLIST macro for cryptosoft sessions instead of hand rolled list.Alexander Bluhm
OK mpi@ tobhe@
2021-07-09Fix mixup between localKeyID and friendlyName.Theo Buehler
"please commit" schwarze
2021-07-09KNF: remove whitespace between functions and parenthesesTheo Buehler
2021-07-09new manual page for X509_keyid_set1(3), X509_keyid_get0(3),Ingo Schwarze
X509_alias_set1(3), X509_alias_get0(3)
2021-07-09Switch iwm(4) to new firmware images available in iwm-firmware-20210512.Stefan Sperling
This updates firmware for 3165, 3168, 7265, 8260, 8265, 9260, 9560 devices. Other devices did not receive firmware updates from Intel. New firmware images should contain revelant fixes for fragattacks: https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00473.html Running fw_update(1) may be required before rebooting into a new kernel. sysupgrade(8) will take care of this. Blocking issues reported during the previous attempt at using these firmware images have been addressed. When reporting issues, please enable 'ifconfig iwm0 debug', reproduce the error once more, and include the full dmesg in your bug report.
2021-07-09Print new iwm(4) firmware version numbers like Linux iwlwifi does it.Stefan Sperling
Starting with major version 35 the Linux driver prints the minor version number in hexadecimal.
2021-07-09remove unused lines of code from iwm(4) which were specific to iwx(4) devicesStefan Sperling
2021-07-09Fix errors in the probe request template we provide to iwm(4) firmware.Stefan Sperling
The SSID should not be inserted into the template itself. The template just needs an empty SSID information element. Firmware fills in the rest. Fix the length specification of 2GHz band-specific data in the template.
2021-07-09Do not ask iwm(4) firmware to send probe requests on passive channels.Stefan Sperling
This seems to fix a problem where newer 9k firmware versions become unresponsive after association and eventually raise a fatal error.
2021-07-09Make iwm(4) set various scan command flags just like how iwlwifi sets them.Stefan Sperling
Discrepancies found while investigating an issue related to active scanning.
2021-07-09Fix iwm(4) PHY context updates for newer firmware versions.Stefan Sperling
Firmware which advertises the BINDING_CDB_SUPPORT capability needs a remove+add dance when the channel band has changed. See Linux commit 730a18912bcbde0b94ae7f1b554a9908b3424a22 and Linux commit 91109f42d0ad0c0c282d1fa1257a1548977aa895
2021-07-09Make iwm(4) use only antenna B for single-antenna Tx on 9k devices.Stefan Sperling
This matches what Linux and FreeBSD do. According to Linux commit logs using antenna A for single-antenna Tx on 9k devices is "wrong" (with no further explanation given). I suspect it only matters if Bluetooth is active, since antenna A has obviously been working for us. But who knows...
2021-07-09Clear the "persistence bit" on iwm(4) 9k devices during hardware init.Stefan Sperling
According to iwlwifi commit messages this fixes an edge case where 9k family devices fail to resume after system suspend. See Linux commit 8954e1eb2270fa2effffd031b4839253952c76f2
2021-07-09Ignore undocumented TLVs found in the iwm(4) 9000-43 firmware image.Stefan Sperling
2021-07-09Reset sc_ucode_api flags before iwm(4) loads firmware.Stefan Sperling
Fixes firmware re-loading after an initial attempt to load firmware failed.
2021-07-09Simplify code supporting the new iwm(4) time quota firmware command.Stefan Sperling
There was no real need to use a separate function for this.
2021-07-09silence redundant error message; reported by Fabian StelzerDamien Miller
2021-07-09ifq_hdatalen can return 0 if ifq_empty is true, which avoids locks.David Gwynne
2021-07-08whitespace fixes, no code change.Mike Larkin
2021-07-08fix the hibernate io path.David Gwynne
a botched merge meant i was posting the previously used slot to the chip to process before posting the current slot. ok deraadt@
2021-07-08Avoid a potential buffer overflow in backslash escaping.Todd C. Miller
https://github.com/onetrueawk/awk/issues/121
2021-07-08The xformsw array never changes. Declare struct xformsw constantAlexander Bluhm
and map data read only. OK deraadt@ mvs@ mpi@
2021-07-08sys/lib/libz isn't configured for lazy optimizations to save space becauseTheo de Raadt
those options are incompatible with the kernel anymore. Set DYNAMIC_CRC_TABLE and BUILDFIXED for these bootblocks, to save space on the media ok tb mlarkin