CVS: cvs.openbsd.org: www

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2021/05/03 23:45:34

Modified files:
.  : errata69.html 

Log message:
Use the same attribute naming scheme as in previous versions of this file

>From Ross L Richardson



CVS: cvs.openbsd.org: src

2021-05-03 Thread Dale Rahn
CVSROOT:/cvs
Module name:src
Changes by: dr...@cvs.openbsd.org   2021/05/03 22:26:00

Modified files:
lib/libc/arch/riscv64: Makefile.inc SYS.h 
lib/libc/arch/riscv64/sys: sigpending.S sigprocmask.S 
   sigsuspend.S tfork_thread.S 
Removed files:
lib/libc/arch/riscv64/sys: cerror.S 

Log message:
Remove cerror dependancy from riscv64 asm syscalls.
Directly update cerror as  offset of thread pointer, with
optimizations on error brnaching
ok kettenis@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Dale Rahn
CVSROOT:/cvs
Module name:src
Changes by: dr...@cvs.openbsd.org   2021/05/03 22:17:54

Added files:
lib/libc/arch/riscv64/sys: brk.S sbrk.S 

Log message:
riscv64 brk()/sbrk() implementations,
based off a combination of aarch64/powerpc64
ok kettenis@



CVS: cvs.openbsd.org: www

2021-05-03 Thread Brent Cook
CVSROOT:/cvs
Module name:www
Changes by: bc...@cvs.openbsd.org   2021/05/03 19:11:41

Modified files:
libressl   : index.html releases.html 

Log message:
LibreSSL 3.3.3



CVS: cvs.openbsd.org: www

2021-05-03 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2021/05/03 18:22:02

Modified files:
.  : report.html 

Log message:
fix a grammar mistake that's been on this page for ten years



CVS: cvs.openbsd.org: src

2021-05-03 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2021/05/03 17:44:05

Modified files:
regress/lib/libssl/dtls: dtlstest.c 

Log message:
Use limits.h instead of sys/limits.h in dtlstest.c for portable

discussed and input from jsing@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2021/05/03 17:42:04

Modified files:
regress/lib/libssl/unit: Makefile ssl_get_shared_ciphers.c 

Log message:
Modify regress ssl_get_shared_ciphers for portable

- Split out the intermediate path (../certs/) to Makefile
- Change 'shutdown' to 'shutdown_all'

ok tb@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/03 15:25:48

Modified files:
sys/arch/riscv64/dev: mainbus.c 

Log message:
Sync changes from arm64 version.

ok patrick@



CVS: cvs.openbsd.org: www

2021-05-03 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:www
Changes by: bl...@cvs.openbsd.org   2021/05/03 14:12:53

Modified files:
.  : errata69.html 

Log message:
Release vmd errata.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2021/05/03 14:12:10

Modified files:
usr.sbin/vmd   : Tag: OPENBSD_6_9 virtio.c 

Log message:
vmd guests can trigger excessive log messages on the host by sending
certain network packets.

this is errata/6.9/001_vmd.patch.sig



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 12:31:40

Modified files:
regress/lib/libssl: Makefile 

Log message:
Hook openssl-ruby test to regress tree



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 12:21:00

Added files:
regress/lib/libssl/openssl-ruby: Makefile 

Log message:
Add scaffold to run the ruby/openssl regression tests

This test depends on the ruby/ruby-openssl-tests port that bundles the
sources and tests of the Ruby OpenSSL gem below /usr/local. The Makefile
compiles the openssl.so shared object below obj/ that provides Ruby
bindings for the OpenSSL API. Once this is built, the regression tests are
run.

There are currently 4 failing tests, all related to the new verifier.
At least one libssl bug is hidden behind a pend. All this will hopefully be
fixed during this release cycle.

This adds a decent amount of test coverage without being overly expensive.
This way, regressions should be spotted during development so jeremy will
no longer have to chase and work around them.

Joint work with jeremy, positive feedback from bcook and jsing.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 12:04:05

src/regress/lib/libssl/openssl-ruby

Update of /cvs/src/regress/lib/libssl/openssl-ruby
In directory cvs.openbsd.org:/tmp/cvs-serv54577/openssl-ruby

Log Message:
Directory /cvs/src/regress/lib/libssl/openssl-ruby added to the repository



CVS: cvs.openbsd.org: www

2021-05-03 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:www
Changes by: o...@cvs.openbsd.org2021/05/03 10:02:17

Modified files:
faq: upgrade69.html 

Log message:
Try to steer people away from the untarring method of upgrading once more.
ok kmos@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 08:51:47

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

Log message:
tweak one description to make it unique



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 08:49:37

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

Log message:
Prefix the hybrid_corner_case test with test_ for consistency.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 08:48:10

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

Log message:
Exercise the point conversion bit for octet string representations
of points on secp256r1.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 08:46:18

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

Log message:
Add a test that exercises the point conversion bit of the octet
string representations of points on the binary curve sect571k1.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/03 08:42:45

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

Log message:
Fix corner case for compressed points on binary curves

Per X9.62 4.4.1.b., the compressed representation of a point with
zero x coordinate on a binary curve must have y_bit unset. Error
out in that case of ec_GF2m_set_compressed_coordinates() instead
of ignoring y_bit.

ok jsing



CVS: cvs.openbsd.org: src

2021-05-03 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/05/03 08:08:09

Modified files:
usr.sbin/bgpd  : session.c 

Log message:
When negotiating multiprotocol capabilities only fall ack to AID_INET when
no capability was sent to the peer (this happens if the multiprotocol
capability got disabled). It is possible that local and remote systems end
up with no shared AFI/SAFI pair. In this case the connection will not send
or should not receive any UPDATE messages.
The previous behaviour of falling back to AID_INET in that case can result
in problematic behaviour when sessions are missconfigured.
OK benno@, deraadt@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/05/03 08:01:56

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

Log message:
Print the timestamps both formatted and as a time in seconds field in
the various JSON object that have time values.
OK benno@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2021/05/03 07:28:03

Modified files:
usr.bin/mg : interpreter.c 

Log message:
When parsing a variable value within double quotes, allow parenthesis
to be accomodated for.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/05/03 07:18:06

Modified files:
usr.sbin/bgpd  : bgpd.c 

Log message:
Like in the session engine do not inline the addr2sa call into connect and
bind. The len argument is modified by addr2sa but is also used as argument
in the call and it is undefined if the value of len in connect is set to
the value "returned" by addr2sa().
Should fix connect issues seen on Linux system.
OK denis@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2021/05/03 07:11:40

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

Log message:
Make sdhc(4) attachment work on Zynq-7000.

OK kettenis@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2021/05/03 06:18:43

Modified files:
usr.bin/mg : def.h interpreter.c main.c 

Log message:
When parsing a variable value within double quotes, allow an escaped
\" to be accomodated for. Also, move the variable structure to be
global in scope within mg.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/05/03 05:58:51

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

Log message:
fix typo from previous commit



CVS: cvs.openbsd.org: src

2021-05-03 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/05/03 05:58:06

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

Log message:
Mention in CAVEATS that iwn(4) doesn't support 40MHz channels yet.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/05/03 05:56:49

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

Log message:
iwm(4) supports Tx aggregation now.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/03 05:35:29

Modified files:
sys/arch/riscv64/riscv64: machdep.c pmap.c 
sys/arch/riscv64/include: pmap.h 

Log message:
Use the EFI memory map (if available) to determine available physical
memory.  This brings the code closer to arm64 but some key differences
remain.  The most notable difference is that the riscv64 currently uses
its own private direct map of physical memory.  Therefore it needs to know
the RAM address range which we derive from the /memory node in the FDT.

The code also needs to work around some bugs/flaws in the firmware:

* Newer OpenSBI versions no longer add a "no-map" property to the
reserved memory block that covers the memory used by OpenSBI itself.
This makes it appear as EfiBootServicesData in the EFI memory map,
which means it is available for general use.

* The OpenSBI shipped with the beaglev prototype boards doesn't reserve
the memory used by OpenBSI at all.

The workaround for the first issue is to remove all reserved memory blocks
specified in the FDT.  In its current implementation this may remove
too much memory on certain boards.

The workaround for the second issue is to remove 2MB before the memory
where the kernel lives.  This workaround is fragile since it relies on
a specific memory layout.  Hopefully the beaglev firmware gets fixed and
we can remove this hack.

ok jsg@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2021/05/03 05:34:55

Modified files:
distrib/miniroot: install.sub 

Log message:
remove old gcc/g++ binaries at update time; covers the most common case
where people will run into problems on amd64 now we don't build gcc.
(the gcc-lib files are already removed by bsd.rd upgrades, and gcc/g++
don't work without them).



CVS: cvs.openbsd.org: src

2021-05-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/03 02:53:26

Modified files:
gnu/usr.bin/binutils-2.17/binutils: readelf.c 
gnu/usr.bin/binutils-2.17/include/elf: common.h 
Added files:
gnu/usr.bin/binutils-2.17/include/elf: riscv.h 

Log message:
recognise a small number of riscv relocations in readelf
ok kettenis@



CVS: cvs.openbsd.org: www

2021-05-03 Thread Landry Breuil
CVSROOT:/cvs
Module name:www
Changes by: lan...@cvs.openbsd.org  2021/05/03 02:47:25

Modified files:
faq: upgrade69.html 

Log message:
6.9 shipped with postgresql 13.2.



CVS: cvs.openbsd.org: src

2021-05-03 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/05/03 02:46:28

Modified files:
sys/net80211   : ieee80211_ra.c 

Log message:
Tweak the heuristic net80211 RA is using to decide whether enough
statistics have been gathered for a candidate Tx rate. The goal is
to avoid Tx rate choices that might turn out to be too optimistic.

In practice this only affects the case where we probe upwards. If the
current Tx rate starts seeing loss we will still scale down very quickly.

Based on a larger collection of patches by Christian Ehrhardt.
I have made stylistic tweaks for consistency.

Tested:
iwn 6205: stsp, Josh Grosse
iwm 7265: stsp
iwm 8265: Matthias Schmidt
iwm 9260: phessler



CVS: cvs.openbsd.org: src

2021-05-03 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/05/03 02:41:25

Modified files:
sys/dev/pci: if_iwm.c if_iwmreg.h if_iwmvar.h 

Log message:
Add 802.11n Tx aggregation support to iwm(4).

Makes packets go swoosh swoosh swoosh. Welcome to actual 802.11n!

Tested:
7260: dv, florian
7265: trondd, dv, landry, stsp
8260: bket
8265: Matthias Schmidt, stsp
9260: kettenis
9560: phessler, stsp



CVS: cvs.openbsd.org: src

2021-05-03 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/05/03 02:23:06

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

Log message:
work around an athn(4) device problem with bogus Michael MIC failures

Clients using Tx aggregation against an athn(4) hostap will send block ack
request control frames whenever they need to sync their Tx block ack window.
athn(4) dropped such frames due to bogus Michael MIC failures reported by
the hardware decryption engine. Ignore such failures for control frames in
order to fix athn(4) hostap mode against clients which use Tx aggregation.

Additionally, only report Michael MIC failures to the net80211 stack if the
offending client is actually using TKIP, which would also have prevented the
problem since we require CCMP as group cipher in our default configuration.

Problem reported and fix tested by kettenis@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2021/05/03 01:48:16

Modified files:
share/man/man1 : dpb.1 

Log message:
thinko, noticed by jmc@



CVS: cvs.openbsd.org: src

2021-05-03 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2021/05/03 01:21:15

Modified files:
share/man/man1 : dpb.1 

Log message:
FETCH_CMD, perfect place to explain more about fetching ;)



CVS: cvs.openbsd.org: src

2021-05-03 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/03 01:09:26

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

Log message:
remove entries for sgi devices: xheart, owmac, and owserial



CVS: cvs.openbsd.org: src

2021-05-03 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/03 00:19:00

Modified files:
sys/arch/riscv64/riscv64: machdep.c syscall.c vm_machdep.c 

Log message:
change some commented vfp paths to riscv64 fpu equivalents

ok mlarkin@