summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-04Implement support for the new CHLS key that is used to control the batteryMark Kettenis
charge level in newer SMC firmware. ok tobhe@
2024-11-04Do not make padding cells extended (there can be a lot of them), fromNicholas Marriott
Alexander Arch .
2024-11-04add a "natt" option that forces negotiation of nat-t (and udpencap).David Gwynne
this is like the -t command line option on iked itself, but you get to keep the ike listener on port 500 and you can enable this on specific policies instead of all of them. this is useful if you're dealing with an org that can't firewall ESP traffic well and so you need to force the traffic to be udp encapsulated even if there's no NAT involved. ok markus@ tobhe@
2024-11-04Allow downloading firmware without rootAndrew Fresh
If we are downloading as non-root, we can't drop privileges using ftp, but sometimes that is OK. While here, improve the DOWNLOAD_ONLY variable name.
2024-11-04Make fw_update -p consistentAndrew Fresh
Previously, if using fw_update -Fp ..., the argument to -p was treated as a destination path, unless it looked like a URL. This is too complex, if we want to be able to change the download destination, that wll need to be a new option.
2024-11-04remove unused inline function; ok dlg@Jonathan Gray
2024-11-03Need to call unsleep before doing the SSTOP check. We need to ensure thatClaudio Jeker
if a sleep is interrupted but the thread is also stopped that on a wakeup the thread runs again. OK mpi@
2024-11-03affine coordinates: the intention was to move the check, not to copy it...Theo Buehler
So... zap the now redundant check. Should have been committed along with ec_lib.c -r1.77
2024-11-03Clear UDP checksum out flag when stripping UDP header.Alexander Bluhm
Some network interfaces, like lo(4) or vio(4), set the M_UDP_CSUM_OUT flag on incoming packets. For optimization they produce packets with M_UDP_CSUM_IN_OK, but the actual checksum field in the packet is wrong. If such a packet is forwarded, the checksum must be calculated. So they also set M_UDP_CSUM_OUT. For protocols tunneled in UDP, udp_input() removes the header, but the mbuf flags stay. This means later processing of the packet may insert an UDP checksum, although it is not UDP anymore. This has been observed when forwarding ping packets between two vxlan(4) interfaces. Then an UDP checksum was inserted into the ICMP packet. Clearing the M_UDP_CSUM_OUT flag when the UDP header is stripped, fixes the problem. OK mvs@
2024-11-03Move point at infinity check to API boundaryTheo Buehler
Since we only consider standard affine coordinates, the point at infinity must be excluded. Check at the API boundary that the point isn't the point at infinity rather than hiding this check somewhere in a method. ok jsing
2024-11-03Add regress coverage for BN_bn2binpad() and BN_bn2lebinpad().Joel Sing
2024-11-03Add some additional BN conversion test cases.Joel Sing
2024-11-03Revert previous, at least on arm64 too many pages end up being wired.Martin Pieuchot
2024-11-03Introduce a `shortage' variable to reduce accesses to `uvmexp.free' & friends.Martin Pieuchot
ok miod@
2024-11-03Do not put wired pages on the page queues & release their swap resources.Martin Pieuchot
While here move the code to release swap resources outside of the pageq mutex and shuffle some locking dances to reduce differences with NetBSD. ok miod@
2024-11-03add powerpc64 and riscv64 to tags arch listJonathan Gray
2024-11-03do not uppercase "virtual function";Jason McIntyre
ok jmatthew, who spotted that similar changes needed for iavf (and its entry in pci.4)
2024-11-03add entry for ixv(4);Jason McIntyre
2024-11-02d2i_ECPKParameters(): unify return statement with rest of fileTheo Buehler
2024-11-02netcat: drop caddr_t cast. It's not needed and not portable.Theo Buehler
From Jonas 'Sortie' Termansen
2024-11-02Use lowercase in locking comments when not refering to a global lock.Martin Pieuchot
Also talk about thread rather than proc which might be confusing.
2024-11-02Use a ringbuffer per CPU instead of a ringbuffer per PCB.Martin Pieuchot
Get rid of the per-ringbuffer mutex. Use a variable to prevent against recursion. Allow to process more events in the same timeframe. From Christian Ludwig.
2024-11-02add the build user to the build login class now that enough time has passedRobert Nagy
since the addition of that class ok deraadt@
2024-11-02ec_convert: remove _OCT also from the macro namesTheo Buehler
2024-11-02Fix includes in ec_lib and ecp_smplTheo Buehler
2024-11-02Merge compressed coordinate setting back into ecp_smpl and ec_libTheo Buehler
The reason these were in separate files was FIPS. Not our problem.
2024-11-02Move edid_print() behind defined(EDID_DEBUG).Miod Vallat
2024-11-02ec_asn1_test: I somehow managed to commit the version without freezero...Theo Buehler
2024-11-02Assert assumption on CRYPTO_THREADIDTheo Buehler
This type has been opaque for a while, and nobody should be able to call this function with id != NULL. If they do, we want to know and it should be noisy. suggested by/ok jsing
2024-11-02Improve detection of gaps in ManifestissuanceJob Snijders
It is helpful for network operators, publication point operators, and CA operators to have more insight into whether the RP noticed an issuance gap between two versions of a given manifest. * high number of gaps all the time might be an indication the RP is not refreshing often enough * the CA is trying to issue manifests more than once a second * the RFC 8181 publication server's ingress API endpoint has issues * the RFC 8181 publication client has trouble reaching the server * the CA's private keys (RPKI + BPKI) are used on a second (cloned) system * the CA's issuance database is broken Correlation opportunity: detection of a gap means some of the CA's intermediate states were occluded from the RP; the RP operator might want to correlate this to traffic shifts in BGP or publication point reachability issues. Going forward, emit a warning per manifest, adds metrics to the openmetrics output, and displays a summary at the end of the run about issuance gaps. OK tb@
2024-11-02use correct array index when setting frequencyJonathan Gray
ok miod@
2024-11-02Check if the mapping for an vm_map_entry exists while holding its lock.Martin Pieuchot
Prevent a race where the mapped object is being truncated while we are spinning to unwire it. Reported-by: syzbot+189cd03d088cddbee591@syzkaller.appspotmail.com Adapted from NetBSD r1.207, ok miod@
2024-11-02Handle faults on wired map entries similarly to VM_FAULT_WIRE faults.Martin Pieuchot
It is valid to fault on wired mappings if the object was truncated then grown again. Adapted from NetBSD r1.207, ok miod@
2024-11-02Always use new_vmcmd() from exec_subr.c, remove the macro whichJonathan Gray
duplicated code with no benefit. ok mpi@ miod@ deraadt@
2024-11-02Update APNIC trust anchor constraintsJob Snijders
The IANA IPv6 Global Unicast Address Assignments registry has been updated to reflect the allocation of the following block to APNIC: 2410::/12 APNIC 2024-11-01 the registry is at: https://www.iana.org/assignments/ipv6-unicast-address-assignments/ OK sthen@
2024-11-02Remove #if !defined(ASSEMBLER) guards, this file is not used by boot blocksMiod Vallat
assembly files (which are compiled with this define).
2024-11-02Rewrite/clean up ec_GFp_simple_set_compressed_coordinates()Theo Buehler
The biggest change here is that the computation is now performed in the Montgomery domain if we have a Montgomery curve. This avoids constant checking whether need to use plain field operations or whether we can use curve-specific ones. Use a few better variable names and stop attempting to figure out whether the operation failed due to an error in BN_mod_sqrt() or a bad point. All in all this only shaves off 10 lines, but it is astounding what a few tweaks can do to code that looked like Rome in 455 AD. with/ok jsing
2024-11-02Bye bye CRYPTO_THREADIDTheo Buehler
After we ripped it out of RSA blinding and finally the error stack, it can go play in the attic with ENGINE and all the other abominations from this particular keyboard. ok jsing
2024-11-02Inline last uses of CRYPTO_THREADID in err/Theo Buehler
This is another Thorpian obfuscation scheme hiding nasty casts of pthread_t to unsigned long and comparing them. We can do this in a less underhanded way by calling the portable functions directly. ok jsing
2024-11-02Kill unused pmap_collect().Martin Pieuchot
ok miod@
2024-11-02Compute inactive target only once per iteration.Martin Pieuchot
Reduce accesses to global counters. ok jsg@
2024-11-02sort includesTheo Buehler
2024-11-02add Xr to self for ix and ixv;Jason McIntyre
2024-11-02sort sections (BUGS goes last) and use some Ox/An in AUTHORS;Jason McIntyre
2024-11-02Add ixv(4), a driver for virtual functions of Intel 82598EB, 82559,YASUOKA Masahiko
and X540. The driver was originally written by Intel and released as ixv driver version 1.5.32 and ported to OpenBSD by Yuichiro NAITO, naito.yuichiro at gmail.com. tested by henson at acm.org and many others. ok jmatthew
2024-11-01Retire uvm_km_zalloc().Martin Pieuchot
ok jsg@
2024-11-01More include sweeping in cms.Theo Buehler
2024-11-01Fix includes in cms_env.cTheo Buehler
2024-11-01Drop some pointless parenthesesTheo Buehler
2024-11-01Only include cryptlib.h where it's neededTheo Buehler
Clean up the other includes while there.