CVS: cvs.openbsd.org: src

2022-11-03 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/03 17:30:55

Modified files:
sys/arch/riscv64/riscv64: pmap.c 

Log message:
riscv64 pmap: flush memory writes before remote sfence.vma

As pointed out by the RISC-V privileged spec.  Sadly this is not enough
to solve all existing userland or kernel crashes seen on Unmatched (and
possibly other?) machines.

ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-03 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/03 17:26:49

Modified files:
sys/arch/riscv64/riscv64: pmap.c 

Log message:
Zap unused variable

ok kettenis@



CVS: cvs.openbsd.org: src

2022-11-03 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/11/03 15:59:20

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

Log message:
replace recently-added valid_domain() check for hostnames going to
known_hosts with a more relaxed check for bad characters; previous
commit broke address literals. Reported by/feedback from florian@



CVS: cvs.openbsd.org: src

2022-11-03 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/11/03 11:58:10

Modified files:
lib/libutil: ber.c 

Log message:
When decoding a sequence/set, make sure that:
- We don't create an uninitialized element when there are no subelements to
decode
- If subelements overflow we return EINVAL

While here fix an eyesore of a line continuation.

OK claudio@



CVS: cvs.openbsd.org: src

2022-11-03 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/03 11:43:39

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

Log message:
don't needlessy uppercase Nd;



Re: CVS: cvs.openbsd.org: src

2022-11-03 Thread Patrick Wildt
On Thu, Nov 03, 2022 at 11:41:22AM -0600, Patrick Wildt wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   patr...@cvs.openbsd.org 2022/11/03 11:41:22
> 
> Modified files:
>   sys/arch/arm64/conf: RAMDISK 
> 
> Log message:
> Enable smbios0 on arm64 RAMDISK so the code mitigating crashes on the x13s
> gets correct info from hw.version.
> 

That commit was: ok kettenis@ phessler@



CVS: cvs.openbsd.org: src

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

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

Log message:
Enable smbios0 on arm64 RAMDISK so the code mitigating crashes on the x13s
gets correct info from hw.version.



CVS: cvs.openbsd.org: src

2022-11-03 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2022/11/03 09:39:54

Modified files:
regress/usr.sbin/bgpd/integrationtests: Makefile 
Added files:
regress/usr.sbin/bgpd/integrationtests: bgpd.l3vpn.rdomain1.conf 
bgpd.l3vpn.rdomain2.conf 
l3vpn.sh 

Log message:
Add an abolute minimal test for L3VPNs. Right now not linked since there
is a bug in the kroute code preventing the VPN route to be added properly.



CVS: cvs.openbsd.org: src

2022-11-03 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/03 04:39:19

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

Log message:
Constrain KeyUsage and ExtendedKeyUsage on both CA & EE certificates

RFC 6487 section 4.8.4 restricts the KeyUsage extension on EE
certificates to only be digitalSignature.

RFC 6487 section 4.8.5 forbids the ExtendedKeyUsage extension from
appearing on CA certificates. However, this may change in the future
through the standardisation process.

OK tb@



CVS: cvs.openbsd.org: src

2022-11-03 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2022/11/03 02:41:53

Modified files:
usr.bin/tmux   : window-buffer.c 

Log message:
If there are no buffers, reset mode as soon as any key pressed. Fixes
crash reported by Gaoyang Zhang in GitHub issue 3373.



CVS: cvs.openbsd.org: src

2022-11-03 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2022/11/03 02:33:58

Modified files:
usr.bin/tmux   : cmd-display-message.c tmux.1 

Log message:
Add a -l flag to display-message to disable format expansion, from Aaron
Jensen. GitHub issue 3372.