CVS: cvs.openbsd.org: src

2022-11-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/11 00:59:20

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

Log message:
regen



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/11 00:58:42

Modified files:
sys/dev/pci: pcidevs 

Log message:
add AMD family 19h model 44h (Rembrandt) ids

from a ThinkPad T14 Gen 3 AMD dmesg provided by Philippe Meunier



CVS: cvs.openbsd.org: src

2022-11-10 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2022/11/10 23:48:38

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

Log message:
Make ucc(4) the first consumer of hidcc. No intended functional change.

ok matthieu@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2022/11/10 23:47:18

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2022-11-10 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2022/11/10 23:46:48

Modified files:
sys/dev/hid: files.hid 
Added files:
sys/dev/hid: hidcc.c hidccvar.h 

Log message:
Extract the HID specific pieces from ucc(4) into hidcc. First steps
toward attaching hidcc over i2c.

ok matthieu@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/10 19:21:10

Modified files:
sys/dev/pci/drm/radeon: radeon_kms.c 
sys/dev/pci/drm/amd/amdgpu: amdgpu_kms.c 
sys/dev/pci/drm/i915: i915_drv.c 

Log message:
return early from drm activate functions after fatal error

avoids a page fault trap trying to take an uninitialised
modeset lock on suspend

reported and tested by Ali Farzanrad on HP ProBook 4530s

radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6400M" rev 0x00
drm1 at radeondrm0
radeondrm0: msi
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi, SANDYBRIDGE, gen 6
..
radeondrm0: CAICOS
[drm] *ERROR* Unable to locate a BIOS ROM
drm:pid0:radeondrm_attachhook *ERROR* Fatal error during GPU init
inteldrm0: 1366x768, 32bpp



CVS: cvs.openbsd.org: src

2022-11-10 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/11/10 18:44:26

Modified files:
lib/libcrypto/curve25519: curve25519.h 

Log message:
zap stray space (CRITICAL!)



CVS: cvs.openbsd.org: xenocara

2022-11-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:xenocara
Changes by: j...@cvs.openbsd.org2022/11/10 18:12:13

Modified files:
driver/xf86-video-vmware: Makefile.bsd-wrapper 

Log message:
disable libudev to fix build when xatracker is present
xatracker is part of Mesa and not currently installed
ok matthieu@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/10 16:57:31

Modified files:
share/man/man9 : clockintr.9 

Log message:
divison -> division



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/10 16:42:16

Modified files:
sys/arch/arm64/dev: apm.c 

Log message:
pscivar.h include no longer needed
ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/11/10 16:39:51

Modified files:
usr.sbin/vmd   : vm.c 

Log message:
vmd(8): remove toggling interrupt line on vcpu in vcpu run loop

We toggle the interrupt "line" on the vcpu when we assert or deassert
irq on the pic in either the vcpu thread (emulating some devices)
or on the device event thread (mostly handling reading available
data). Having it in the vcpu run loop here just results in another
ioctl(2) call before the one for re-entering the guest cpu.

Removing it shows no noticeable behavioral change in existing guests.

ok mlarkin@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 16:21:15

Modified files:
sys/arch/arm64/dev: aplsmc.c 

Log message:
Sprinkle some #ifdef SUSPEND to unbreak the tree.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2022/11/10 16:03:10

Modified files:
usr.bin/ssh: clientloop.c 

Log message:
Handle dynamic remote port forwarding in escape commandline's -R processing.
bz#3499, ok djm@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/10 15:58:40

Modified files:
usr.bin/tmux   : tmux.1 tmux.c 

Log message:
- sort options; from josiah frentsos
ok nicm

- add -N to SYNOPSIS

- sort usage()



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/10 12:10:50

Modified files:
share/man/man4 : qcpmic.4 qcpmicgpio.4 qcpon.4 qcpwm.4 qcrtc.4 
 qcspmi.4 

Log message:
fix SEE ALSO and new sentence, new line;
similar patch floated by josian frentsos on tech



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/10 12:07:21

Modified files:
share/man/man5 : pf.conf.5 

Log message:
tweak the "once" text; ok sashan



CVS: cvs.openbsd.org: src

2022-11-10 Thread Moritz Buhl
CVSROOT:/cvs
Module name:src
Changes by: mb...@cvs.openbsd.org   2022/11/10 11:58:02

Modified files:
usr.sbin/vmd   : i8253.c i8259.c 

Log message:
Initialize data before passing it to get_input_data.  Strictly
speaking this is not necessary as all used bits of the uint32_t are
zeroed.
ok mlarkin



Re: CVS: cvs.openbsd.org: xenocara

2022-11-10 Thread Matthieu Herrb
On Thu, Nov 10, 2022 at 11:19:23AM -0700, Matthieu Herrb wrote:
> CVSROOT:  /cvs
> Module name:  xenocara
> Changes by:   matth...@cvs.openbsd.org2022/11/10 11:19:23
> 
> Modified files:
>   app/xterm  : charproc.c menu.c 
> 
> Log message:
> Prevent users from enabling allowFontOps by menu or via resources.
> 
> This further protects from CVE-2022-2602 (although allowFontOps where
> disabled by default in OpenBSD since 2009).
> 
Oops, I mean CVE-2022-45063, sorry for the confusion.
-- 
Matthieu Herrb



CVS: cvs.openbsd.org: xenocara

2022-11-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2022/11/10 11:19:23

Modified files:
app/xterm  : charproc.c menu.c 

Log message:
Prevent users from enabling allowFontOps by menu or via resources.

This further protects from CVE-2022-2602 (although allowFontOps where
disabled by default in OpenBSD since 2009).



CVS: cvs.openbsd.org: src

2022-11-10 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/11/10 11:15:36

Modified files:
lib/libcrypto  : opensslv.h 

Log message:
Bump LibreSSL version to 3.7



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/11/10 11:06:37

Modified files:
lib/libssl : s3_lib.c ssl_locl.h ssl_pkt.c tls_buffer.c 
 tls_internal.h 

Log message:
Use tls_buffer for alert and handshake fragments in the legacy stack.

This avoids a bunch of pointer munging and a handrolled memmove.

ok tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2022/11/10 10:53:45

Modified files:
lib/libcrypto  : Makefile 

Log message:
Finish migrating to one source file per line.

ok jsing@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/11/10 10:44:05

Modified files:
lib/libcrypto/man: ASN1_TIME_set.3 

Log message:
In asn1.h rev. 1.65, beck@ provided ASN1_TIME_set_string_X509(3),
ASN1_TIME_normalize(3), ASN1_TIME_to_tm(3), ASN1_TIME_cmp_time_t(3),
and ASN1_TIME_compare(3).
Merge documentation from the OpenSSL 1.1.1 branch, which is still
under a free license, with tweaks by me in several respects to match
our implementation, and also using some feedback from beck@.
OK beck@.



CVS: cvs.openbsd.org: xenocara

2022-11-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2022/11/10 10:38:58

Modified files:
driver/xf86-video-wsfb/src: wsfb_driver.c 

Log message:
When no device is provided in the config file, try xf86Info.consoleFd
before defaulting to an hard-coded device name. Tested by tobhe@



CVS: cvs.openbsd.org: xenocara

2022-11-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2022/11/10 10:36:42

Modified files:
driver/xf86-video-wsfb/src: wsfb_driver.c 

Log message:
Simplify the test on mode in WsfbSaveScreen() and add error checking.
Tested by tobhe@



CVS: cvs.openbsd.org: src

2022-11-10 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/11/10 10:17:47

Modified files:
sys/net: if.c 

Log message:
bring back r1.673: replace SRP with SMR in the if_idxmap.

when i first wrote if_idxmap i didn't realise (and no one thought
to tell me) that index 0 was special and means "no interface", so
while here use the 0th slot in the interface map to store the length
of the map instead of prepending the map with a length field.
if_get() now special cases index 0 and returns NULL directly. this
also means the size of the map is now always a power of 2, which
is a nicer fit with what the kernel malloc aprovides.

the problem with r1.673 that hrvoje popovski found was that attaching
a lot of interfaces during autoconf would lock up when growing the
map called smr_barrier. the fix in this diff is to (ab)use the
usedidx bitmap to store an smr_entry and defer the freeing of the
interface pointer map with it.

tested by hrvoje popovski
tweaks and ok visa@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2022/11/10 09:52:19

Modified files:
lib/libcrypto/x509: x509_trs.c 

Log message:
Allow explicit cert trusts or distrusts for EKU any

This matches the current OpenSSL behaviour introduced
in their commit:
commit 0daccd4dc1f1ac62181738a91714f35472e50f3c
Date:   Thu Jan 28 03:01:45 2016 -0500

ok jsing@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/11/10 09:38:57

Modified files:
regress/lib/libcrypto/evp: Makefile 
Added files:
regress/lib/libcrypto/evp: evp_ecx_test.c 

Log message:
Add regress coverage for Ed25519 and X25519 EVP interfaces.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/11/10 09:37:52

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/asn1: ameth_lib.c 
lib/libcrypto/ec: ec.h ec_err.c 
lib/libcrypto/evp: evp.h evp_locl.h pmeth_lib.c 
Added files:
lib/libcrypto/ec: ecx_methods.c 

Log message:
Implement EVP interfaces for Ed25519 and X25519.

ok beck@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/11/10 09:34:23

Modified files:
regress/lib/libcrypto/man: check_complete.pl 

Log message:
Remove obsolete function, struct, and macro names
that tb@ removed from asn1.h on January 14:

rev. 1.58: ASN1_CTX ASN1_const_CTX
rev. 1.60: ASN1_OBJECT_FLAG_CRITICAL ASN1_OBJECT_FLAG_DYNAMIC
rev. 1.60: ASN1_OBJECT_FLAG_DYNAMIC_DATA ASN1_OBJECT_FLAG_DYNAMIC_STRINGS
rev. 1.61: NETSCAPE_X509 NETSCAPE_X509_free NETSCAPE_X509_new
rev. 1.61: d2i_NETSCAPE_X509 i2d_NETSCAPE_X509



CVS: cvs.openbsd.org: src

2022-11-10 Thread Alexandr Nedvedicky
CVSROOT:/cvs
Module name:src
Changes by: sas...@cvs.openbsd.org  2022/11/10 09:29:20

Modified files:
sys/net: pf.c pfvar.h 

Log message:
revert pf_state mtx commit, because it breaks tree.
pfctl does not build

OK dlg@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 09:20:54

Modified files:
sys/dev/fdt: qcpon.c 

Log message:
Apparently we receive interrupts for both powerkey press and release, which
isn't quite helpful when it's used to come back from suspend and then the
second interrupt initiates powerdown.  Ignore press, but handle release.

ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 09:14:50

Modified files:
libexec/ld.so/powerpc64: ld.script 

Log message:
Since the introduction of automatic immutable from the kernel, the munmap()
of ld.so boot.text region is now (silently) failing because the region is
contained within the text LOAD, which is immutable.  So create a new btext
LOAD with flags PF_X|PF_R|PF_OPENBSD_MUTABLE, and place all boot.text objects
in there.  This LOAD must also be page-aligned so it doesn't skip unmapping
some of the object region, previously it was hilariously unaligned.
ok kettenis and guenther seemed to like it also
This one is for powerpc64 and a modified version of the diff deraadt@ mailed
out to make sure the LOADs are in increasing address order.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2022/11/10 09:12:05

Modified files:
sys/kern   : subr_disk.c 

Log message:
Add mbr_get_fstype() and use it to translate MBR dp_typ fields
into FS_* values. Similar to what gpt_get_fstype() does. Code is
clearer and better positioned for planned enhancements to
spoofing.

No intentional functional change.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/11/10 09:04:31

Modified files:
lib/libcrypto/objects: objects.h 

Log message:
Map objects for ED25519 to Ed25519.

OpenSSL used ED25519, even though the RFCs use Ed25519 - as such, we get to
provide both.

ok tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2022/11/10 09:00:34

Modified files:
lib/libcrypto  : Makefile 

Log message:
Continue migrating to one source file per line.

ok jsing@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2022/11/10 09:00:17

Modified files:
sys/netinet6   : nd6.c 

Log message:
Use local variable for consistency

OK claudio



CVS: cvs.openbsd.org: src

2022-11-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2022/11/10 08:26:38

Modified files:
sbin/disklabel : editor.c 

Log message:
HP-300's hd is now gone. svnd transmorgified into vnd in 2011. No
need to keep checking for these device names.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/11/10 08:17:30

Modified files:
lib/libcrypto/evp: evp.h evp_err.c evp_locl.h m_sigver.c 

Log message:
Provide digestsign/digestverify hooks for EVP_PKEY_METHOD.

These are needed for EVP implementations of Ed25519 and X25519.

ok beck@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2022/11/10 08:13:52

Modified files:
lib/libcrypto  : Makefile 

Log message:
Continue migrating to one source file per line.

ok jsing@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2022/11/10 07:51:01

Modified files:
regress/lib/libz: utils_unittest.cc 

Log message:
Downgrade test to C++98 to fix build on GCC archs

Spotted on sparc64, diff from miod, tb and bluhm agree.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/11/10 07:46:44

Modified files:
lib/libcrypto/asn1: asn1_locl.h 
lib/libcrypto/evp: evp.h evp_err.c p_lib.c 

Log message:
Port EVP raw key API from OpenSSL.

This will be needed to deal with Curve25519 based keys.

ok beck@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Alexandr Nedvedicky
CVSROOT:/cvs
Module name:src
Changes by: sas...@cvs.openbsd.org  2022/11/10 07:22:43

Modified files:
sys/net: pf.c pfvar.h 

Log message:
Add a mutex to pf_state structure. Mutex retain a consistency
of structure members without using a global state lock.
The first member which uses protection by mutex is key[] array.
more will follow.

OK dlg@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 07:15:15

Modified files:
sys/arch/arm64/dev: aplsart.c 

Log message:
Add suspend/resume support to control the power domain.

ok patrick@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/10 06:22:55

Modified files:
usr.sbin/rpki-client: rpki-client.8 

Log message:
Indicate compliance with work-in-progress spec for ROA objects



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/11/10 06:09:34

Modified files:
lib/libcrypto/asn1: asn1.h t_pkey.c 

Log message:
Port ASN1_buf_print() from OpenSSL 1.1.

This is needed to print byte array based keys, such as Ed25519 and X25519.

ok beck@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 06:08:57

Modified files:
share/man/man4 : Makefile qcpmic.4 
Added files:
share/man/man4 : qcpon.4 qcpwm.4 qcrtc.4 

Log message:
qcpon(4), qcpwm(4), qcrtc(4)



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 05:59:26

Modified files:
share/man/man4 : qcdwusb.4 qcpdc.4 

Log message:
update for consistency



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 05:57:08

Modified files:
share/man/man4 : Makefile 
Added files:
share/man/man4 : qcspmi.4 qcpmic.4 qcpmicgpio.4 

Log message:
qcpmic(4), qcpmicgpio(4), qcspmi(4)



CVS: cvs.openbsd.org: src

2022-11-10 Thread Joshua Sing
CVSROOT:/cvs
Module name:src
Changes by: jos...@cvs.openbsd.org  2022/11/10 05:55:49

Modified files:
lib/libcrypto  : Makefile 

Log message:
Continue migrating to one source file per line.

ok jsing@ tb@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2022/11/10 05:46:19

Modified files:
sys/net: if_var.h 

Log message:
typofix; ok dlg



CVS: cvs.openbsd.org: src

2022-11-10 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2022/11/10 05:40:29

Modified files:
regress/sbin/route: rttest14.ok rttest16.ok 

Log message:
cope with recent route output changes



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 05:40:08

Modified files:
share/man/man4 : Makefile 
Added files:
share/man/man4 : qcpdc.4 

Log message:
qcpdc(4)



CVS: cvs.openbsd.org: src

2022-11-10 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2022/11/10 05:38:57

Modified files:
regress/lib/libc/db: dbtest.c 

Log message:
Use /tmp as opposed of /var/tmp as the default directory for temporary
files.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2022/11/10 05:37:00

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

Log message:
Fix a few more leaks in *_print() functions.

ok jsing@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 05:36:38

Modified files:
share/man/man4 : Makefile 
share/man/man4/man4.arm64: Makefile 
Added files:
share/man/man4 : qcdwusb.4 qcgpio.4 qciic.4 
Removed files:
share/man/man4/man4.arm64: qcdwusb.4 qcgpio.4 qciic.4 

Log message:
Move manpages for Qualcomm devices over to the MI directory.  kettenis@ put
them into the arm64-specific one mostly because they were for ACPI and that
will definitely be arm64-specific.  I have committed most of the FDT ones
to the MI fdt directory.  dlg@ would be happier with those manpages in the
MI one.  There are more manpages to come as well.



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 05:16:06

Modified files:
sys/dev/fdt: qcspmi.c 

Log message:
Remove hack that uses a timeout to fake interrupts now that qcpdc(4) allows
us to properly establish interrupts.

The fixed IPL_BIO should probably be replaced by the highest IPL requested
by our children.

ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 05:14:06

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

Log message:
We need to turn a few more things on in the resume path.  This makes it
possible to ifconfig down the interface suspend/resume and ifconfig up the
interface again afterwards in most cases.  Suspend/resume with the interface
up is still busted.

ok patrick@, stsp@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 05:13:22

Modified files:
sys/arch/arm64/conf: GENERIC RAMDISK 

Log message:
Enable qcpdc(4)

ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/11/10 05:12:53

Modified files:
sys/dev/fdt: files.fdt 
Added files:
sys/dev/fdt: qcpdc.c 

Log message:
Add qcpdc(4), a driver for the Qualcomm Power Domain controller found on
Qualcomm SoCs.  This is mostly a shim torwards agintc(4).

ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:src
Changes by: matth...@cvs.openbsd.org2022/11/10 05:10:54

Modified files:
sys/dev/wscons : wskbd.c 

Log message:
Move the code handling brightness keys into a task, since with
inteldrm(4) it requires a process context. ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/11/10 04:46:39

Modified files:
sys/arch/amd64/include: vmmvar.h 
usr.sbin/vmd   : Makefile vm.c 
Added files:
usr.sbin/vmd   : mmio.c mmio.h 

Log message:
vmd(8): import mmio decode and emulation, disabled for now.

The initial mmio support for vmd adds support for only specific MOV
and MOVZX instructions. Plan is to begin iterating in-tree on other
missing pieces. All functionality is gated behind an #if for now.

Only change to vmm(4) is reordering register #define's in vmmvar.h.

ok mlarkin@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 04:45:29

Modified files:
sys/arch/arm64/dev: aplsmc.c 

Log message:
Make the power button function as a wakeup button during suspend.

ok phessler@, patrick@, tobhe@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 04:44:06

Modified files:
sys/arch/arm64/dev: aplpmgr.c 

Log message:
iWe must be careful to only disable power domains that are no longer in
use by a device.  So maintainer a counter and only disable the power
domain if it drops to zero.

ok deraadt@, tobhe@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 04:23:21

Modified files:
sys/arch/arm64/dev: apm.c 

Log message:
arm64 can suspend without PSCI support now

ok deraadt@, phessler@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2022/11/10 04:02:27

Modified files:
etc/etc.alpha  : MAKEDEV 
etc/etc.amd64  : MAKEDEV 
etc/etc.arm64  : MAKEDEV 
etc/etc.armv7  : MAKEDEV 
etc/etc.hppa   : MAKEDEV 
etc/etc.i386   : MAKEDEV 
etc/etc.landisk: MAKEDEV 
etc/etc.loongson: MAKEDEV 
etc/etc.luna88k: MAKEDEV 
etc/etc.macppc : MAKEDEV 
etc/etc.octeon : MAKEDEV 
etc/etc.powerpc64: MAKEDEV 
etc/etc.riscv64: MAKEDEV 
etc/etc.sparc64: MAKEDEV 
share/man/man8/man8.alpha: MAKEDEV.8 
share/man/man8/man8.amd64: MAKEDEV.8 
share/man/man8/man8.arm64: MAKEDEV.8 
share/man/man8/man8.armv7: MAKEDEV.8 
share/man/man8/man8.hppa: MAKEDEV.8 
share/man/man8/man8.i386: MAKEDEV.8 
share/man/man8/man8.landisk: MAKEDEV.8 
share/man/man8/man8.loongson: MAKEDEV.8 
share/man/man8/man8.luna88k: MAKEDEV.8 
share/man/man8/man8.macppc: MAKEDEV.8 
share/man/man8/man8.octeon: MAKEDEV.8 
share/man/man8/man8.powerpc64: MAKEDEV.8 
share/man/man8/man8.riscv64: MAKEDEV.8 
share/man/man8/man8.sparc64: MAKEDEV.8 

Log message:
Regen



CVS: cvs.openbsd.org: src

2022-11-10 Thread Moritz Buhl
CVSROOT:/cvs
Module name:src
Changes by: mb...@cvs.openbsd.org   2022/11/10 03:47:31

Modified files:
usr.sbin/bgpctl: parser.c 

Log message:
A theoretical path exists where ext.data1 is not initialized by
parseextcommunity but used afterwards.
Found by codechecker.
OK claudio



CVS: cvs.openbsd.org: src

2022-11-10 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/11/10 03:37:40

Modified files:
sys/kern   : subr_suspend.c 

Log message:
Put CPUs in the lowest P-state just before the final suspend step.  The
firmware probably does this for us on ACPI systems with proper S3 support,
but this doesn't happen on systems where we park CPUs in a low-power idle
state ourselves.

ok deraadt@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/11/10 03:24:50

Modified files:
lib/libcrypto/bn: bn_prime.h 

Log message:
Move bn_prime.h to the public domain.

It's entirely trivial.

ok beck



CVS: cvs.openbsd.org: src

2022-11-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2022/11/10 02:50:00

Modified files:
etc: MAKEDEV.common 

Log message:
Nuke Vax (ra,rx) and HP-300 (hd) devices.

Noticed by kn@

ok millert@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2022/11/10 01:26:54

Modified files:
sys/arch/amd64/amd64: ipi.c lapic.c 

Log message:
Convert amd64 clock and ipi event counters to per-cpu

ok kettenis@ jca@ cheloha@



CVS: cvs.openbsd.org: src

2022-11-10 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/11/10 01:17:53

Modified files:
usr.sbin/procmap: procmap.1 procmap.c 

Log message:
change default output to -a format; ok tb