CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/27 00:57:10

Removed files:
lib/libcrypto/man: BN_get0_nist_prime_521.3 BN_nist_mod_521.3 

Log message:
Remove NIST prime documentation



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/27 00:55:19

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

Log message:
sync



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/27 00:54:09

Modified files:
lib/libcrypto/man: Makefile 

Log message:
Stop installing NIST prime documentation



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/27 00:48:48

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

Log message:
Remove a useless doxygen comment



CVS: cvs.openbsd.org: src

2023-04-26 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/27 00:11:43

Modified files:
regress/usr.sbin/rpki-client: repo-dummy.c test-aspa.c 
  test-cert.c test-gbr.c 
  test-geofeed.c test-ip.c 
  test-mft.c test-roa.c test-rrdp.c 
  test-rsc.c test-tak.c test-tal.c 

Log message:
Unbreak regress after yesterdays churn.
Friendly reminder from anton@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2023/04/26 23:42:44

Modified files:
regress/sys/arch/amd64/vmm: vcpu.c 

Log message:
cope with recent vmm changes



CVS: cvs.openbsd.org: src

2023-04-26 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 23:41:11

Modified files:
share/man/man4 : pci.4 

Log message:
- list some missing pci entries. dlg noticed some missing ones, and miod
worked out what was missing
- remove commented out entry to non-existent en(4) driver
- remove all instances of .Tn

ok miod dlg



CVS: cvs.openbsd.org: src

2023-04-26 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/04/26 21:28:34

Modified files:
sys/dev/ic : rtwn.c 

Log message:
Fix logic error in rtwn_r92e_get_txpower().

The RTL8192EU is up to two stream TX/RX (so MCS0->15).

ok stsp@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2023/04/26 21:19:45

Modified files:
sys/dev/ic : r92creg.h rtwn.c 
sys/dev/usb: if_urtwn.c 

Log message:
Whitespace fix



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/04/26 21:06:17

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

Log message:
sync



CVS: cvs.openbsd.org: src

2023-04-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 20:39:04

Modified files:
sys/dev/pci/drm/amd/display/dc/dml/dcn31: dcn31_fpu.c 

Log message:
drm/amd/display: set dcn315 lb bpp to 48

>From Dmytro Laktyushkin
4ac57c3fe2c0a74c6239170fc58fc824637c6015 in linux-6.1.y/6.1.26
6d9240c46f7419aa3210353b5f52cc63da5a6440 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 20:36:57

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_irq.c 
sys/dev/pci/drm/amd/display/amdgpu_dm: amdgpu_dm_crtc.c 

Log message:
drm/amdgpu: Fix desktop freezed after gpu-reset

>From Alan Liu
bef774effb278ff0b65ea2dbaa1ab32ba6a1dc13 in linux-6.1.y/6.1.26
c8b5a95b570949536a2b75cd8fc4f1de0bc60629 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 20:34:32

Modified files:
sys/dev/pci/drm/i915/display: intel_dp_aux.c 

Log message:
drm/i915: Fix fast wake AUX sync len

>From Ville Syrjala
66eb772be27e228716bb81feee0400d995cbe605 in linux-6.1.y/6.1.26
e1c71f8f918047ce822dc19b42ab1261ed259fd1 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 20:32:24

Modified files:
sys/dev/pci/drm: drm_buddy.c 

Log message:
drm: buddy_allocator: Fix buddy allocator init on 32-bit systems

>From David Gow
fb766acce3cf1c9637a79c1ffb3cebc61fd9d859 in linux-6.1.y/6.1.26
4453545b5b4c3eff941f69a5530f916d899db025 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-26 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 17:12:31

Modified files:
distrib/riscv64/ramdisk: install.md 

Log message:
Treat crypto disk like the root disk, both are boot disks

Chosing [W]hole on a GPT disk means it needs non-default `-b' fdisk(8)
to boot and preserve any existing BIOS boot partition.

With 'Encrypt the root disk?' answered postively, the crypto disk instead of
the root disk becomes the boot disk.

Extend the sanity check to both crypto and root disk, really asking
"is this a boot disk?".

This preserves existing boot partitions when using guided disk encryption.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 16:45:32

Modified files:
distrib/amd64/common: install.md 

Log message:
Treat crypto disk like the root disk, both are boot disks

Chosing an existing OpenBSD partition on GPT during disk setup requires an
existing EFI Sys partition (the installer does not create it in thi case).

With 'Encrypt the root disk?' answered postively, the crypto disk instead of
the root disk becomes the boot disk.

Extend the EFI Sys sanity check to both crypto and root disk, really asking
"is this a boot disk?".



CVS: cvs.openbsd.org: src

2023-04-26 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 16:34:30

Modified files:
share/man/man4 : virtio.4 

Log message:
add viogpu(4); from diana eichert



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/04/26 16:12:44

Modified files:
gnu/llvm/clang/lib/Driver/ToolChains: Clang.cpp 

Log message:
On openbsd amd64, the compiler has been found to generate some nasty jump
table variations (calculate address into %rax, jmp %rax) which is not
compatible with IBT endbr64.  The specific generated code sequence was
found inside clang, which made the debugging experience pretty miserable.
So we will have to disable jump tables by default.
ok kettenis



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 16:09:07

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

Log message:
Make x509_policy.c compile with gcc 4.

ok beck



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 16:05:36

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
Add test for invalidation of DER cache for X509_CRL_* setter functions

The program won't exit with a non-zero exit code if X509_CRL_set_*
tests fail, as the relevant bits haven't been committed to libcrypto yet.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 16:05:28

Modified files:
usr.sbin/rpki-client: extern.h main.c output-bird.c parser.c 
  rpki-client.8 validate.c 

Log message:
Add a -P option to rpki-client to specify the evaluation time

This is intended to be able to test rpki-client in a reproducable
way without worrying about the system time changing the results

ok claudio@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/04/26 16:04:58

Modified files:
gnu/llvm/clang/lib/Driver/ToolChains: Clang.cpp 

Log message:
On openbsd amd64, emit IBT endbr64 instructions by default (meaning,
-fcf-protection=branch is the default).  All binaries grow slightly, but
we can slowly move towards greater IBT enforcement in userland.
4th or 5th variation of this diff, with mortimer
ok kettenis



CVS: cvs.openbsd.org: src

2023-04-26 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2023/04/26 15:37:46

Modified files:
sys/dev/ofw: ofw_misc.c 

Log message:
Fix phy_enable_prop_idx() to retrieve the property length with the passed
property name instead of "phys".

ok dlg@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 15:36:42

Modified files:
lib/libcrypto  : Makefile 

Log message:
Allow compiling with -DHAS_DAG to enable the policy check with a DAG.

ok beck



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 15:35:22

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

Log message:
Turn C++ comments into C comments and minor KNF fixups



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 15:30:12

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
Clean up X509 memory before exit



CVS: cvs.openbsd.org: src

2023-04-26 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/26 15:17:24

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

Log message:
Use < 0 for fprintf() error checking and not == -1.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 15:07:33

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

Log message:
KNF according to knfmt(1)



CVS: cvs.openbsd.org: src

2023-04-26 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 14:59:32

Modified files:
distrib/amd64/ramdiskA: Makefile 
distrib/sparc64/iso: Makefile 
distrib/sparc64/miniroot: Makefile 
distrib/sparc64/ramdisk: Makefile 
distrib/sparc64/ramdiskB: Makefile 

Log message:
Don't rely on the disklabel defaults or a disktab entry's ba#/fa#
values for the block/fragment sizes that some install media need.
Hoist the desired values into the newfs(8) invocations to make it
obvious non-default values are required and what the values are.

No functional change.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 14:54:21

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

Log message:
Zap trailing whitespace



CVS: cvs.openbsd.org: src

2023-04-26 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/26 14:53:17

Modified files:
usr.sbin/bgpctl: json.c json.h 

Log message:
Verify each fprintf call for success. On failure stop calling fprintf
and return -1 in json_do_finish().
tb@ thinks this is not to horrible



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 14:52:11

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

Log message:
Add RCS tag



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 14:43:32

Modified files:
lib/libcrypto  : Symbols.namespace 
lib/libcrypto/hidden/openssl: x509v3.h 
lib/libcrypto/x509: pcy_tree.c x509_cpols.c 

Log message:
Take X509_POLICY_NODE_print() behind the barn

This used to be public API but is now only used for debug code that has
certainly never been used since it was released to the public. It drags
that debug nonsense with it.

ok beck



CVS: cvs.openbsd.org: src

2023-04-26 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/04/26 13:54:35

Modified files:
sys/net: if.c pf_ioctl.c route.c route.h 

Log message:
Introduce `rtlabel_mtx' mutex(9) to protect route labels storage. This
time kernel and net locks are held in various combination to protect it.
We don't want to put kernel lock to all the places. Netlock also can't
be used  because rtfree(9) which calls rtlabel_unref() has unknown
netlock state within.

This new `rtlabel_mtx' mutex(9) protects `rt_labels' list and `label'
entry dereference. Since we don't export 'rt_label' structure, keep this
lock private to net/route.c. For this reason rtlabel_id2name() now
copies label string to externally passed buffer instead of returning
address of `rt_labels' list data. This is the way which rtlabel_id2sa()
already works.

ok bluhm@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 13:16:02

Modified files:
lib/libcrypto  : Makefile 

Log message:
Add the new policy code to the build.

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/26 13:14:55

Modified files:
usr.sbin/bgpctl: json.c json.h output_json.c 

Log message:
Use fprintf instead of printf and pass the FILE handle in json_do_start().
OK tb@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 13:12:49

Modified files:
share/man/man5 : port-modules.5 
share/man/man8 : bulk.8 

Log message:
fix some Xr;



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 13:11:33

Modified files:
lib/libcrypto/asn1: x_x509.c 
lib/libcrypto/x509: pcy_cache.c pcy_data.c pcy_int.h pcy_lib.c 
pcy_map.c pcy_node.c pcy_tree.c x509_cpols.c 
x509_local.h x509_policy.c x509_vfy.c 

Log message:
Make the new policy code in x509_policy.c to be selectable at compile time.

The old policy codes remains the default, with the new policy code
selectable by defining LIBRESSL_HAS_POLICY_DAG.

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 13:08:10

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

Log message:
Add a shim to mimic the BoringSSL sk_delete_if function.

We add this locally as a function to avoid delving into
the unholy macro madness of STACK_OF(3).

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 13:05:37

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
Add lookup name+function pointer table for improved diagnostics

OK tb@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 13:05:12

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

Log message:
Adapt the sk_find calls from BoringSSL's api to ours.

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 13:03:46

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

Log message:
Add the STACK_OF declarations we require.

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 13:02:25

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

Log message:
Change OPENSSL_malloc|free|memset and friends to the normal versions.

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 13:00:57

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

Log message:
Fix error code goop

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 12:59:36

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

Log message:
Use the correct headers to compile with libressl



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 12:56:52

Added files:
lib/libcrypto/x509: x509_policy.c 

Log message:
Import policy.c from BoringSSL as x509_policy.c

This is an implementation of the X509 policy processing using a
DAG instead of a tree to avoid the problem of exponential expansion
of the policy tree as specified in RFC 5280

For details see:
https://boringssl-review.googlesource.com/c/boringssl/+/55762

ok tb@ jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/04/26 12:56:16

Added files:
lib/libevent   : event_set.3 

Log message:
New manual page written by Ted Bullock ,
to start working on it in the tree.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 12:34:40

Modified files:
usr.sbin/rpki-client: output-json.c 

Log message:
In JSON/ASPA output, only print commas up to after the pen-ultimate applicable 
provider

Reported by Ties de Kock

OK claudio@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 12:17:50

Modified files:
usr.sbin/rpki-client: print.c 

Log message:
Kill whitespace



CVS: cvs.openbsd.org: src

2023-04-26 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/26 12:14:28

Modified files:
usr.sbin/bgpd  : parse.y 

Log message:
Add prototypes for geticmptypebyname() and geticmpcodebyname().
Needed for bison.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 12:04:21

Modified files:
usr.sbin/installboot: efi_installboot.c i386_installboot.c 
  macppc_installboot.c octeon_installboot.c 
  powerpc64_installboot.c 

Log message:
Fix confusing comments, no object change;  with caspar



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 11:59:00

Modified files:
usr.sbin/rpki-client: output-json.c 

Log message:
Make -A also apply to the JSON output

OK claudio@



Re: CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
On Wed, Apr 26, 2023 at 11:39:20AM -0600, Theo Buehler wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   t...@cvs.openbsd.org2023/04/26 11:39:20
> 
> Modified files:
>   usr.sbin/bgpctl: json.c 
> 
> Log message:
> Whitespace
> 
> "please fix" json
> 

json == claudio



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 11:39:20

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

Log message:
Whitespace

"please fix" json



CVS: cvs.openbsd.org: src

2023-04-26 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/26 10:53:59

Modified files:
sys/arch/amd64/amd64: db_trace.c 
sys/arch/arm64/arm64: db_trace.c 
sys/arch/hppa/hppa: db_interface.c 
sys/arch/i386/i386: db_trace.c 
sys/arch/mips64/mips64: trap.c 
sys/arch/powerpc/ddb: db_trace.c 
sys/arch/powerpc64/powerpc64: db_trace.c 
sys/arch/sparc64/sparc64: db_trace.c 
sys/dev/dt : dt_dev.c dt_prov_profile.c dtvar.h 
sys/sys: stacktrace.h 

Log message:
Implement dt(4) utrace support on amd64 and i386.

This adds stacktrace_save_utrace() to extract and save the userland stack
which is stubbed out on most archs. alpha and riscv64 do not even implement
dt(4) and stacktrace_save_at() so the stubs are excluded there.

Additionally add a new ioctl DTIOCGETAUXBASE which allows btrace to
fetch the AUX_BASE vallue from the AUX vector of a process.

OK mpi@ (some time ago) discussed with kettenis@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/26 10:32:41

Modified files:
usr.sbin/rpki-client: aspa.c extern.h filemode.c main.c mft.c 
  output-json.c output-ometric.c output.c 
  parser.c repo.c roa.c 

Log message:
Improve accounting by tracking things by repo and tal.
This fixes some wrong accounting for repositories that are referenced
from more than one TAL. It changes the ometric lable output a little bit
since there are repository metrics that no longer include the 'name' label.
OK tb@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 10:13:19

Modified files:
sys/dev/vmm: vmm.h 

Log message:
Reodrer some things to fix vmctl/vmd builds after the vmm MI/MD split



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 10:12:21

Modified files:
usr.sbin/vmd   : vmd.h 

Log message:
Fix vmd after vmm MI/MD split



CVS: cvs.openbsd.org: src

2023-04-26 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 10:09:44

Modified files:
sys/net: route.c 

Log message:
Remove +20y old rt_timer_init() comment

Obsolete since last year's r1.411 "Rework the rttimer code."
OK claudio



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 09:40:52

Modified files:
sys/arch/amd64/amd64: vmm_machdep.c 

Log message:
Incorporate r1.140 and r1.141 of vmm.c:


revision 1.341
date: 2023/04/26 09:39:56;  author: dv;  state: Exp;  lines: +3 -3;  commitid: 
1XztmVbxa8OP2xYi;
Unbreak vmm on Intel. Mistakenly enabled CET on non-CET systems.

Found by anton@ & jsg@

revision 1.340
date: 2023/04/24 16:53:57;  author: dv;  state: Exp;  lines: +11 -1;  commitid: 
q9qQ55f7h2gen8N4;
vmm(4): allow guests to enable and use supervisor IBT.

Why should hosts have all the fun? Conditionally unmask the cpuid
bits for IBT and allow r/w access to the supervisor CET msr.

Will need revisiting when we introduce usage of userland CET msr.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 09:40:33

Modified files:
sys/net: route.c 

Log message:
typofix rttimer comment



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 09:34:31

Modified files:
sys/arch/amd64/amd64: vmm_machdep.c 

Log message:
Integrate r1.339 of vmm.c which I missed during the previous MI/MD split

---
revision 1.339
date: 2023/04/22 18:27:28;  author: guenther;  state: Exp;  lines: +3 -3;  
commitid: ajtkYPSAhtJdB488;
Rename the XCR0_* #defines to XFEATURE_* and add the new supervisor-state
features: while all are appropriate for xsaves/xrstors, the
supervisor-state features aren't for xcr0 but rather for the new XSS_MSR,
making the current names kinda confusing.

Add #defines for masking bits for xcr0 vs XSS.

Add and report the new XSAVE_XFD xsave subfeature bit.
---



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 09:13:59

Removed files:
sys/arch/amd64/amd64: vmm.c 

Log message:
vmm.c -> vmm_machdep.c (remove old file)



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 09:13:52

Modified files:
sys/kern   : vfs_bio.c 

Log message:
Fix splassert noticed by sthen

Called wrong incore when not holding bio.

ok claudio@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 09:11:21

Modified files:
sys/arch/amd64/conf: files.amd64 
sys/arch/amd64/include: vmmvar.h 
Added files:
sys/dev/vmm: vmm.c vmm.h 
sys/arch/amd64/amd64: vmm_machdep.c 

Log message:
Refactor MD/MI parts of vmm.

ok dv, deraadt



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 09:08:23

src/sys/dev/vmm

Update of /cvs/src/sys/dev/vmm
In directory cvs.openbsd.org:/tmp/cvs-serv28339/dev/vmm

Log Message:
Directory /cvs/src/sys/dev/vmm added to the repository



CVS: cvs.openbsd.org: src

2023-04-26 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/04/26 09:03:02

Modified files:
lib/libcrypto/man: BIO_ctrl.3 BIO_f_buffer.3 BIO_s_accept.3 
   BIO_s_connect.3 BIO_s_file.3 

Log message:
Document those BIO_ctrl(3) command constants
that correspond to more than one macro each.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 08:42:27

Modified files:
distrib/alpha/miniroot: Makefile 
distrib/i386/iso: Makefile 
distrib/i386/ramdisk: Makefile 
distrib/i386/ramdisk_cd: Makefile 
distrib/landisk/ramdisk: Makefile 

Log message:
Don't rely on the disklabel defaults or a disktab entry's ba#/fa#
values for the block/fragment sizes that some install media need.
Hoist the desired values into the newfs(8) invocations to make it
obvious non-default values are required and what the values are.

No functional change.

ok kn@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/04/26 08:39:42

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

Log message:
Fix my email address.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Peter Hessler
CVSROOT:/cvs
Module name:src
Changes by: phess...@cvs.openbsd.org2023/04/26 08:28:09

Modified files:
etc: rc 

Log message:
During boot we have a protective and restrictive pf ruleset during the time
we are running netstart, and then load the pf.conf ruleset after all of the
interfaces are loaded.

Allow in and out IPv6 neighbor advertisement traffic without state during
that time.

suggestions/OK from saschan@
OK sthen@ kn@ florian@ deraadt@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 08:27:41

Modified files:
lib/libcrypto  : Makefile 
Removed files:
lib/libcrypto/pkcs7: bio_pk7.c 

Log message:
Remove the now unused bio_pk7.c



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 08:25:58

Modified files:
lib/libcrypto/pkcs7: bio_pk7.c pk7_mime.c 

Log message:
Move BIO_new_PKCS7() to the the other streaming stuff in pk7_mime.c



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 08:23:18

Modified files:
lib/libcrypto/cms: cms_io.c 

Log message:
KNF nit



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 07:12:51

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

Log message:
Clean up ec.h a little.

The doxygen comments are either obvious or otherwise unhelpful and
generally an eye sore. Go read the manpage if the header isn't enough.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/26 07:01:02

Modified files:
distrib/i386/ramdisk: Makefile 
distrib/i386/ramdisk_cd: Makefile 

Log message:
Nuke variable 'LBA'. Always set for ramdisk_cd, never set for
ramdisk, so just keep or remove the conditional sections.

ok kn@ miod@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/04/26 06:30:24

Modified files:
sys/arch/arm64/arm64: trap.c 

Log message:
Properly handle userland branch target traps.

ok deraadt@, patrick@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2023/04/26 06:25:12

Modified files:
sys/uvm: uvm_map.c uvm_map.h 

Log message:
Backout previous commit:
Do not grab the `vmmaplk' recursively, prevent a self-deadlock.
It causes panic: uvm_map_pageable_wire: stale map
Found by regress/misc/posixtestsuite conformance/interfaces/mmap/18-1
requested by deraadt@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 05:06:32

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
Parameter names are not needed



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 05:04:12

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
Remove unneeded parentheses



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 05:00:49

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
No need to pass around const pointer cpder2

Suggested by tb@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 04:55:58

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
Shrink signature as cpder is only needed as local variable

Suggested by tb@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2023/04/26 04:52:55

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

Log message:
whitespace fix



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 04:34:08

Modified files:
regress/lib/libcrypto/x509: x509_asn1.c 

Log message:
Replace macros with functions

Requested by tb@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/04/26 04:14:21

Modified files:
regress/usr.sbin/vmd/config: Makefile 
Removed files:
regress/usr.sbin/vmd/config: vmd-fail-boot-name-too-long.conf 
 vmd-fail-boot-name-too-long.ok 
 vmd-fail-cdrom-name-too-long.conf 
 vmd-fail-cdrom-name-too-long.ok 
 vmd-fail-disk-path-too-long.conf 
 vmd-fail-disk-path-too-long.ok 
 vmd-fail-vm-name-too-long.conf 
 vmd-fail-vm-name-too-long.ok 

Log message:
regress: remove vmd path length tests.

These add no value and we'd now that we don't artificially limit
path lengths just be updating them to check PATH_MAX.



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 04:00:37

Modified files:
sys/nfs: nfs_vnops.c 

Log message:
Don't redeclare s, it's already there.

noticed by miod@
ok kettenis@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/04/26 03:53:55

Modified files:
sys/nfs: nfs_vnops.c 

Log message:
Fix missing splbio() needed in nfs

ok claudio@ kettenis@



Re: CVS: cvs.openbsd.org: src

2023-04-26 Thread Dave Voutila


Jonathan Gray  writes:

> On Wed, Apr 26, 2023 at 07:39:38AM +0200, Anton Lindqvist wrote:
>> On Mon, Apr 24, 2023 at 10:53:57AM -0600, Dave Voutila wrote:
>> > CVSROOT:   /cvs
>> > Module name:   src
>> > Changes by:d...@cvs.openbsd.org2023/04/24 10:53:57
>> >
>> > Modified files:
>> >sys/arch/amd64/amd64: vmm.c
>> >
>> > Log message:
>> > vmm(4): allow guests to enable and use supervisor IBT.
>> >
>> > Why should hosts have all the fun? Conditionally unmask the cpuid
>> > bits for IBT and allow r/w access to the supervisor CET msr.
>> >
>> > Will need revisiting when we introduce usage of userland CET msr.
>> >
>> > ok marlkin@
>>
>> Running on older hardware where CET is not enumerated causes guests to
>> panic in cpu_fix_msrs() during RDMSR 0x6a2.
>
> vcpu_reset_regs_vmx() also has:
>
> if (rcr4() | CR4_CET)
>   vmx_setmsrbrw(vcpu, MSR_S_CET);
>

Thanks!



CVS: cvs.openbsd.org: src

2023-04-26 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/04/26 03:39:56

Modified files:
sys/arch/amd64/amd64: vmm.c 

Log message:
Unbreak vmm on Intel. Mistakenly enabled CET on non-CET systems.

Found by anton@ & jsg@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 03:31:12

Modified files:
regress/lib/libcrypto/ec: ec_point_conversion.c 
regress/lib/libcrypto/ecdh: ecdhtest.c 

Log message:
Some more EC2M cleanup



CVS: cvs.openbsd.org: src

2023-04-26 Thread Anthony J . Bentley
CVSROOT:/cvs
Module name:src
Changes by: bent...@cvs.openbsd.org 2023/04/26 03:19:47

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_drv.c 

Log message:
Rotate the console in amdgpu when there is an orientation quirk.

ok jsg@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 03:07:59

Modified files:
regress/usr.bin/openssl: appstest.sh 

Log message:
Garbage collect test using the nseq command

reminded by anton



CVS: cvs.openbsd.org: src

2023-04-26 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/26 02:58:03

Modified files:
regress/lib/libcrypto/x509: Makefile 
Added files:
regress/lib/libcrypto/x509: x509_asn1.c 
Removed files:
regress/lib/libcrypto/x509: dercache.c 

Log message:
Rename dercache regress test to x509_asn1

Requested by jsing@



CVS: cvs.openbsd.org: src

2023-04-26 Thread Anthony J . Bentley
CVSROOT:/cvs
Module name:src
Changes by: bent...@cvs.openbsd.org 2023/04/26 02:38:51

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

Log message:
Fix typo in comment: default scalue values -> default scale values



CVS: cvs.openbsd.org: src

2023-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/26 02:25:37

Modified files:
lib/libcrypto  : Makefile Symbols.list 
Removed files:
lib/libcrypto/evp: e_old.c 

Log message:
Remove e_old.c again

Also remove nonexistent symbols #defined to other symbols that confuse
some linkers in -portable.

This commit entails no ABI change on OpenBSD.

Discussed with jsing