summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-06-28drop needless strcspn in the header parsingOmar Polo
like done in ftp' fetch.c revision 1.216. ok tb
2023-06-28drop needless strcspn in the header parsingOmar Polo
since fetch.c revision 1.211, ftp removes trailingwhitespaces early so there's no need to re-do that when parsing a header. while here, remove an unused variable too. ok tb, millert
2023-06-28The warning noise due to the ASPA transition is just that: noise.Theo Buehler
Switch to warnx() instead of cryptowarnx() for now. ok job
2023-06-28Revert r1.406 "Close all pf transactions before opening a new one in ↵Klemens Nanni
DIOCGETRULES." regress/sbin/pfctl panics with "rw_enter: pfioctl_rw locking against myself" as reported by bluhm on bugs@.
2023-06-28Add support to verify X509 chain from CERT payloads.Tobias Heider
Encode cert and intermediate CAs in new cert bundle object, so the information can be passed to the ca process in one step. Pass untrusted intermediates to X509_verify_cert(). From markus@
2023-06-28Don't call daemon() after proc_init(), otherwise the child processesGerhard Roth
would lose their parent. ok tobhe@
2023-06-28Refactor editor_allocspace() into easier to follow pieces.Kenneth R Westerback
editor_allocspace() interates over alloc_tables calling allocate_space(). allocate_space() iterates over space_allocations calling allocate_partition(). allocate_partition() calls allocate_diskchunk() which finds disk space for the partition. No intentional functional change. ok otto@
2023-06-28use refcnt API for multicast addresses, add tracepoint:refcnt:ifmaddr probeKlemens Nanni
Replace hand-rolled reference counting with refcnt_init(9) and hook it up with a new dt(4) probe. OK bluhm mvs
2023-06-28fix parsing of the Last-Modified headerOmar Polo
Was overlooked in r1.209. diff from 'a dog' (OpenBSD [at] anthropomorphic [dot] dog) ok tb, sthen
2023-06-28add `notab' to the list of modes that can be set with set-default-modeOmar Polo
specify also that it can be set globally with set-default-mode, as done in the description of the other built-in modes. Diff from Simon Branch (that I got via jmc@), thanks!
2023-06-28First step at removing struct sleep_state.Claudio Jeker
Pass the timeout and sleep priority not only to sleep_setup() but also to sleep_finish(). With that sls_timeout and sls_catch can be removed from struct sleep_state. The timeout is now setup first thing in sleep_finish() and no longer as last thing in sleep_setup(). This should not cause a noticeable difference since the code run between sleep_setup() and sleep_finish() is minimal. OK kettenis@
2023-06-27Add qctsens(4), a driver for the Temperature Sensor found on Qualcomm SoCs.Patrick Wildt
The driver not only provides the temperature readings for the cores, cluster and memory in hw.sensors, but also allows the thermal zone code to act on temperature changes. ok drahn@
2023-06-27Inform fw_update(8) about qcpas(4) pattern.Patrick Wildt
ok kettenis@
2023-06-27Introduce M_IFGROUP type of memory allocation. M_TEMP is unreasonableVitaliy Makkoveev
for interface groups data allocations. ok kn claudio bluhm
2023-06-27Zap stray spaceTheo Buehler
2023-06-27Use shared net lock for DIOCGETIFACESKlemens Nanni
snmpd(8) and 'pfctl -s Interfaces' dump pf's internal list of interfaces. pf's internal interface list is completely protected by the pf lock, pf lock assertions since pf_if.c r1.110 from over a week ago support this. pfi_*() iterate over net lock protected if_groups lists, but only to read, so downgrade from exclusive write net lock to a shared read-only one. Feedback mvs OK sashan
2023-06-27Remove net lock from DIOC{SET,CLR}IFFLAGKlemens Nanni
pf.conf's 'set skip on ifN' and 'pfctl -F all|Reset' set and clear flags, PFI_IFLAG_SKIP being the only flag. Nothing else in base uses these ioctls and internal state is protected by the pf lock already. OK sashan
2023-06-27Attach 0x51f1 devices to iwx(4) and fix params used for 0x7a70 devices.Stefan Sperling
from reyk@
2023-06-27regenStefan Sperling
2023-06-27add 0x51f1 iwx(4) PCI device ID; from reyk@Stefan Sperling
2023-06-27Make it possible to store the kstack or ustack in a map (as value, not key).Claudio Jeker
Additionally fix the bacmp() function to work on integers and strings. bacmp() is used when maps are printed out since the output is sorted by value. Also adjust the rule parser to look into correctly into if branches to figure out which values to request from the kernel. OK kn@
2023-06-27Document the map specific functions (count, max, min, sum) in their ownClaudio Jeker
part of the bt.5 man page. Input and OK kn@
2023-06-27remove allupdates marker, it was only used by the short-livedMarc Espie
"@option explicit-update" flavor of firmware circa 2013. pkg_add hasn't needed to know about this since basically forever
2023-06-27Switch from get_rfc*() to BN_get_rfc*()Theo Buehler
The existence of the public get_rfc*() API is a historic curiosity that may soon be corrected. We inherited its use and it survived in libssl until now. Switch to the better named BN_get_rfc*() wrappers. ok jsing
2023-06-27amd64: MCOUNT_EXIT: restore interrupts, don't unconditionally reenable themScott Soule Cheloha
This bug can cause all sorts of problems, but in particular it was most easily reproduced as a double fault in the syscall return path on this CPU model: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz Tons of help from guenther@ in narrowing down the root cause. Fix tweaked by guenther@. Additional input from deraadt@ and kettenis@. ok guenther@
2023-06-27Return error if the USB request to get the sample rate fails.Alexandre Ratchov
found by mlarkin
2023-06-27Remove some dead code from ECPKParameters_print()Theo Buehler
This code is unreachable since binary curve support was removed. There is a lot more to clean up in here... ok jsing
2023-06-27Remove the now unused poly[] from EC_GROUPTheo Buehler
This was needed for defining the multiplication over binary fields. Since that code is gone, this is no longer needed. ok jsing
2023-06-27Simplify EC_GROUP_get_basis_type()Theo Buehler
The remaining EC_METHODs in libcrypto all have a field type of NID_X9_62_prime_field, so this function always returns 0. Make that more obvious. ok jsing
2023-06-26On amd64, test whether PKU has been enabled and set our expectationPhilip Guenther
of the results based on that. Also, the system now enforces unreadability in copyin() of ld.so, libc, and application text, even when PKU isn't enabled, so adjust those results to match. ok deraadt@ anton@
2023-06-26Update regress files to aspa-profile-15 formatJob Snijders
2023-06-26Decode and validate ASPA objects following the v1 syntaxJob Snijders
Through draft-ietf-sidrops-aspa-profile-15, the ASPA profile was made AFI-agnostic. This represents a simplification for both operators and implementers in both the RPKI and BGP layers of the stack. This update changes the JSON structure. No effort was made to simultaneously support ASPA v0 and v1 objects. OK tb@ claudio@
2023-06-26pax: truncate times to MAX_TIME_T, not INT_MAXTodd C. Miller
If the mtime in the file header is larger than MAX_TIME_T, trucate it to MAX_TIME_T, not INT_MAX. OK otto@
2023-06-26pax: use safe_print() to display messages which may include file names.Todd C. Miller
Reported by David Leadbeater. OK op@
2023-06-26timeout_hardclock_update: provide initial value for automatic variablesScott Soule Cheloha
2023-06-26Fix Ed Schouten's nameTheo Buehler
from weerd
2023-06-26Start using the new ibuf API in eigrpd. One ibuf_seek() still left sinceClaudio Jeker
the change is not trivial and I don't have a eigrp testbed. OK tb@
2023-06-26Improve the conn_err() bufferevent error callback. To better report errors.Claudio Jeker
OK kn@
2023-06-26Update and refactor dvrmpd to use the new ibu API.Claudio Jeker
Do the checksum calculation in send_packet() instead of doing it all over the place. This way the fixup only happens in one place. OK tb@
2023-06-26Adjust EVP_PKEY_CTRL_HKDF_KEY to OpenSSL's semanticsTheo Buehler
For some reason there is no NULL check on setting the HKDF key for p2 like in the other cases in the switch, instead OpenSSL fail in memdup, nulling out the key but leaving he key_len at the old value. This looks accidental but our behavior makes some haproxy regress tests segfault. So mimic weird OpenSSL semantics but in addition set the key_len to 0. Reported by Ilya Shipitsin ok jsing
2023-06-26When exiting alternate screen, there is no need to reflow when goingNicholas Marriott
back to old size since the contents will be overwritten. GitHub issue 3510.
2023-06-26Revert unrelated change that sneaked into the pf_ioctl.c commit.Claudio Jeker
2023-06-26Close all pf transactions before opening a new one in DIOCGETRULES.Claudio Jeker
Processes like snmpd or systat open pf(4) once and then issue many DIOCGETRULES calls over their runtime. This accumulates many pf_trans structs over their lifetime. At some point the kernel runs out of memory because of that. By closing all transactions before creating a new one, long living processes do no longer leak transactions. This probably needs further refinement once more transactions types are added but for now this solves the problem. Problem found by florian@ OK sashan@ kn@
2023-06-26Add "us" to styles for underscore colour, GitHub issue 3589.Nicholas Marriott
2023-06-26fix grammar of the comment describing pat_chk(); ok millert@Omar Polo
2023-06-26document handling of NULL envp as an extension;Jason McIntyre
from lucas de sena ok espie
2023-06-25Provide kstats based on the byte and packet counters available in someJonathan Matthew
dwge(4) implementations. The counters are all 32 bit, so enable reset-on-read and accumulate them into 64 bit software counters, and enable the MMC interrupts that indicate one or more counters is halfway to overflowing. Tested on an RK3399, which has the counters, and an Allwinner A20, which doesn't. ok dlg@
2023-06-25Add missing RCS markerTheo Buehler
2023-06-25Remove unneeded bn_local.h and drop a NULL checkTheo Buehler
2023-06-25Move ECDSA_size() to ecs_ossl.c to match what was done in ecdhTheo Buehler