summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-20Import regenerated moduliDarren Tucker
2022-04-20Eliminate some local pointers to gp[pn] and just use gp[pn].Kenneth R Westerback
Fix some whitespace and memset() parameters in passing. No intentional functional change.
2022-04-19Add dummy implementation for rt_timer_init(). Kernel sources areAlexander Bluhm
build for regress and need that function now.
2022-04-19zap extra line break and extra empty lineTheo Buehler
2022-04-19Forgot a file for previous commit.Kenneth R Westerback
No functional change.
2022-04-19Use a pool instead of malloc for struct rttimer_queue. As routingAlexander Bluhm
runs without kernel lock, use IPL_MPFLOOR protection for its pools. OK mvs@ claudio@
2022-04-19Do not use a hidden global for the EVP_ENCODE_CTX to save a calloc() call.Claudio Jeker
Make this work concurrently by allocating and freeing the EVP_ENCODE_CTX for every call to base64_decode(). This is not a hot path so the impact is negligible. OK tb@
2022-04-19Avoid leaking crldp in mft_parse() if one of the crlfile checks fails.Theo Buehler
ok claudio
2022-04-19Bring GPT_print_partition() into line with other functions being passedKenneth R Westerback
an index to the gp[] array by calling said parameter 'pn' and making it const unsigned int. No functional change.
2022-04-19Move declaration of DEBUG-only variable inside #ifdef DEBUG.Kenneth R Westerback
No functional change.
2022-04-19Eliminate superfluous intermediate variables 'pncnt' now thatKenneth R Westerback
gh.gh_part_num does not need a letoh32(). No functional change.
2022-04-19Drop unused KeyUpdate from debug printfTheo Buehler
The handshake state machine does not handle key updates since that's a post-handshake handshake message. This is code under #ifdef TLS13_DEBUG and if it is ever to be reused in tls13_handshake_msg.c, that will have to be revisited. ok inoguchi jsing
2022-04-19Instead of a MP unsafe global variable to initialize at first use,Alexander Bluhm
call rt_timer_init() from rtable_init(). OK mvs@ claudio@
2022-04-19add missing unlock before returning in uvn_detach()Sebastien Marie
uvn_detach sets UVM_VNODE_RELKILL flag and wait for all async i/o to finish. but uvm_vnp_terminate() could clear the flag and take over the vnode. mpi@ noted that this code path is mostly dead code because there is no "async I/O" (uvn_io() is always synchronous). ok visa@ mpi@
2022-04-19document the actual problems that pkg_check-version can diagnoseMarc Espie
2022-04-19Change type of talsz and dependent code from size_t to int. Tal ids areClaudio Jeker
already stored as int and and talsz is the limit for these ids. OK tb@
2022-04-19Make it a hard error when an unknown repoistory id is passed toClaudio Jeker
parse_filepath(). If that happens something went very wrong and it is better to fail hard then to limp along. OK tb@
2022-04-19next iteration: make the support dependent on TEST parametersMarc Espie
-DTEST_CACHING: try the cache -DTEST_CACHING_VERBOSE: make it say what it does -DTEST_CACHING_RECHECK: don't trust the cache and compare the extracted value with the actual package contents (thus making it slower once again) Quite a few more checks along the way, in general
2022-04-19Cosmetics, add missing spaceClaudio Jeker
2022-04-19Adjust on how CRL and MFT files are verified.Claudio Jeker
Verify the CRL referenced from the mft against the mft's fileAndHash info. If the CRL matches then load it and use it to validate this mft. If the mft validated OK add the now also valid CRL to the auth store for later use. Before the newest CRL was always selected but that has negative consequences because it is common practice to revoke the previous MFT's EE cert and with that the cache is turned useless as soon as a new CRL is used. Also there was a possibility that the CRL used for validation of the MFT was not the one later used. Both RFC6486 and draft-ietf-sidrops-6486bis are unclear about this part of the validation process. We opted in favor of the chached MFT. With and OK tb@
2022-04-19document the bits of the kstat struct that providers work with.David Gwynne
the kstat api is a small part of implementing a kstat, most of it depends on how you set up the kstat struct.
2022-04-19regenKevin Lo
2022-04-19Add a new RDC PHY.Kevin Lo
From Andrius Varanavicius
2022-04-19Restore original MDC speed control register value on vte_reset,Kevin Lo
which is needed for at least Vortex86DX3 machines. Patch from Andrius Varanavicius via bugs@ Special thanks to DMP for donating hardware which helped make this fix possible.
2022-04-19remove a comment saying we might want kstat_remove.David Gwynne
we did want it, so it's there and documented.
2022-04-19enable kstat(4) and kstat(1).David Gwynne
kstat allows the kernel to expose arbitrary data for userland to consume. currently this is used by some network card drivers to expose hardware counters they provide, and a bit by the network stack to show things like ifq counters. ok bluhm@ deraadt@
2022-04-18Convert the GPT header read from disk into a host-endian version,Kenneth R Westerback
and then back to little-endian when writing to disk. Reduces the number of invocations of the letoh*() and htole*() functions by 90 or so. Also makes that code much easier to read. No intentional functional change.
2022-04-18regenKevin Lo
2022-04-18A few devices found on EBOX-3360-C2CF and EBOX-3300MX.Kevin Lo
2022-04-17When kbd -l was executed as regular user, it failed silently. TryAlexander Bluhm
to open all wskbd devices, but report the first error and exit if none was successful. OK deraadt@ espie@
2022-04-17syncTheo de Raadt
2022-04-16esm(4): constify sensor tablesChristian Weisgerber
2022-04-16it(4): constify sensor tablesChristian Weisgerber
2022-04-16constify SCSI adapter entry pointsChristian Weisgerber
ok krw@
2022-04-16update list of firmware files used by iwx(4)Stefan Sperling
2022-04-16Make device matching in iwx(4) more similar to Linux iwlwifi.Stefan Sperling
There are a few chips which cannot be recognized by PCI ID alone. Reading device registers is also required to identify such devices. iwx(4) should now detect AX201 devices requiring the following firmware images: iwx-Qu-b0-hr-b0-63 iwx-Qu-b0-jf-b0-63 iwx-Qu-c0-jf-b0-63 iwx-QuZ-a0-hr-b0-67 iwx-QuZ-a0-jf-b0-63 These are already installed in /etc/firmware but have so far been unused. This is obviously going to cover a range of devices which have not actually been tested yet. If you have such a device please test and report back. Tested on previously working AX200/AX201 devices by jmc@ and myself. Sven Wolf has successfully tested a newly supported device. Based on an initial patch by Iraklis Karagkiozoglou, thanks!
2022-04-16regenStefan Sperling
2022-04-16Add more Intel wifi PCI device IDs. Some AX201, some AX210, some AX211.Stefan Sperling
2022-04-16refactor the code so that caching is setup in the repository that'sMarc Espie
linked to quirks during do_quirks. then add a pre-cache that does run locate once on the full list of things we want to update/install (assuming "regular" pkgsets, that is, where the names are the ones we want). Then the actual fetching of caching info will look in that pre-cache before resorting to locate itself (or going straight to the wire). The code isn't active yet, the XXX comment in OpenBSD/PackageRepository/Installed.pm says it all.
2022-04-16ssh-keygen's -G/-T have been replaced with -M generate/screen.Darren Tucker
2022-04-16list the correct version number when usage of the sftp protocol became defaultT.J. Townsend
and fix a typo from ed maste
2022-04-15Allow more than one CRL URI in certificatesTheo Buehler
The spec (RFC 6487, 4.8.6) expresses a preference for a single rsync URI but allows for other URIs in the CRL distributionPoint. This doesn't currently happen in practice but could come at some point. So look for the rsync URI and skip over others, which is more correct and might help in the future. Pointed out by & ok claudio
2022-04-15make use of the fact that repositories are unique objects: we don't needMarc Espie
string comparison, we can simply annotate the quirks repository as cached. this does streamline the code somewhat so simply activate warp-speed by uncommenting one line.
2022-04-15we probably already have that info, but in any case, we don't needMarc Espie
the full plist for a signature. shaves most of the remaining time with caching active
2022-04-15delete an ancient paragraph suggesting the wrong reason to use close(2)Theo de Raadt
(and we all laughed a little)
2022-04-14The XOR instruction affects the carry and zero flag. Move it beforeAlexander Bluhm
the VM instructions so that SETNA propagates the error condition of the latter. Avoids "cpu0: failed to enter VMM mode" errors. Fixes previous commit. tested by Hrvoje; OK dv@
2022-04-14ddb: constify command tablesChristian Weisgerber
ok jca@
2022-04-14Move ((gh_part_size % d_secsize) == 0) validity checkKenneth R Westerback
to get_header() with the rest of the header validity checks. No functional change.
2022-04-14Relax address availability check for multicast binds.Claudio Jeker
While it makes sense to limit bind(2) of unicast addresses that overlap each other to be all from the same UID (like 0.0.0.0:53 and 127.0.0.1:53) it makes little sense for multicast. Multicast is delivered to all sockets that match so there is no risk of someone stealing traffic from someone else. This should hopefully help with mDNS as reported by robert@ OK deraadt@ bluhm@
2022-04-14pf and pfsync are running without kernel lock, so the mutexes mustAlexander Bluhm
have at least mpfloor spl protection. Fix witness issue found by Hrvoje where pfsync holds mutex and interrupt grabs kernel lock. OK sashan@