CVS: cvs.openbsd.org: src

2023-06-27 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2023/06/27 16:38:46

Modified files:
sys/arch/arm64/conf: GENERIC RAMDISK 
sys/dev/fdt: files.fdt 
Added files:
sys/dev/fdt: qctsens.c 

Log message:
Add qctsens(4), a driver for the Temperature Sensor found on Qualcomm SoCs.

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@



CVS: cvs.openbsd.org: src

2023-06-27 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2023/06/27 16:31:27

Modified files:
usr.sbin/fw_update: patterns.c 

Log message:
Inform fw_update(8) about qcpas(4) pattern.

ok kettenis@



CVS: cvs.openbsd.org: src

2023-06-27 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/06/27 15:02:13

Modified files:
sys/net: if.c 
sys/sys: malloc.h 

Log message:
Introduce M_IFGROUP type of memory allocation. M_TEMP is unreasonable
for interface groups data allocations.

ok kn claudio bluhm



CVS: cvs.openbsd.org: src

2023-06-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/06/27 12:19:59

Modified files:
lib/libtls : tls_internal.h 

Log message:
Zap stray space



CVS: cvs.openbsd.org: src

2023-06-27 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/06/27 11:36:56

Modified files:
sys/net: pf_ioctl.c 

Log message:
Use shared net lock for DIOCGETIFACES

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



CVS: cvs.openbsd.org: src

2023-06-27 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/06/27 11:29:38

Modified files:
sys/net: pf_ioctl.c 

Log message:
Remove net lock from DIOC{SET,CLR}IFFLAG

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



CVS: cvs.openbsd.org: src

2023-06-27 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2023/06/27 09:31:27

Modified files:
sys/dev/pci: if_iwx.c 

Log message:
Attach 0x51f1 devices to iwx(4) and fix params used for 0x7a70 devices.

from reyk@



CVS: cvs.openbsd.org: src

2023-06-27 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2023/06/27 09:30:55

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2023-06-27 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2023/06/27 09:30:26

Modified files:
sys/dev/pci: pcidevs 

Log message:
add 0x51f1 iwx(4) PCI device ID; from reyk@



CVS: cvs.openbsd.org: src

2023-06-27 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/06/27 08:17:00

Modified files:
usr.sbin/btrace: btrace.c map.c 

Log message:
Make it possible to store the kstack or ustack in a map (as value, not key).
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@



CVS: cvs.openbsd.org: src

2023-06-27 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/06/27 08:13:33

Modified files:
usr.sbin/btrace: bt.5 

Log message:
Document the map specific functions (count, max, min, sum) in their own
part of the bt.5 man page.
Input and OK kn@



CVS: cvs.openbsd.org: src

2023-06-27 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/06/27 05:11:46

Modified files:
usr.sbin/pkg_add/OpenBSD: PkgAdd.pm 

Log message:
remove allupdates marker, it was only used by the short-lived
"@option explicit-update" flavor of firmware circa 2013.

pkg_add hasn't needed to know about this since basically forever



CVS: cvs.openbsd.org: src

2023-06-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/06/27 05:03:41

Modified files:
lib/libssl : ssl_kex.c 

Log message:
Switch from get_rfc*() to BN_get_rfc*()

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



CVS: cvs.openbsd.org: src

2023-06-27 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2023/06/27 04:11:15

Modified files:
sys/arch/amd64/include: profile.h 

Log message:
amd64: MCOUNT_EXIT: restore interrupts, don't unconditionally reenable them

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@



CVS: cvs.openbsd.org: src

2023-06-27 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2023/06/27 03:28:08

Modified files:
sys/dev/usb: uaudio.c 

Log message:
Return error if the USB request to get the sample rate fails.

found by mlarkin



CVS: cvs.openbsd.org: src

2023-06-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/06/27 01:32:29

Modified files:
lib/libcrypto/ec: eck_prn.c 

Log message:
Remove some dead code from ECPKParameters_print()

This code is unreachable since binary curve support was removed.
There is a lot more to clean up in here...

ok jsing



CVS: cvs.openbsd.org: src

2023-06-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/06/27 01:31:18

Modified files:
lib/libcrypto/ec: ec_local.h 

Log message:
Remove the now unused poly[] from EC_GROUP

This was needed for defining the multiplication over binary fields. Since
that code is gone, this is no longer needed.

ok jsing



CVS: cvs.openbsd.org: src

2023-06-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/06/27 01:28:57

Modified files:
lib/libcrypto/ec: ec_asn1.c 

Log message:
Simplify EC_GROUP_get_basis_type()

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