CVS: cvs.openbsd.org: src

2023-04-07 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/07 23:40:54

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

Log message:
add missing write to XENON_EMMC_PHY_PAD_CONTROL2
ok patrick@



CVS: cvs.openbsd.org: src

2023-04-07 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/07 23:38:25

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

Log message:
correct write to MV_XLG_PORT_MAC_CTRL4_REG
tested by matthieu@ ok patrick@



CVS: cvs.openbsd.org: src

2023-04-07 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/04/07 20:32:38

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

Log message:
try and cope with not having the firmware/boot loader init the hardware.

more specifically, spin up the clocks and phy, and if the device
tree has a "ports-implemented" property use it to initialise the
AHCI_REG_PI register.

this gets sata working on a banana pi bpi-r2 pro.

help from jared mcneill
ok jmatthew@ kettenis@



CVS: cvs.openbsd.org: www

2023-04-07 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:www
Changes by: chel...@cvs.openbsd.org 2023/04/07 19:52:39

Modified files:
.  : 73.html 

Log message:
73.html: revise the summaries of my meager achievements

While here, tweak a few other things that don't ring right.



CVS: cvs.openbsd.org: www

2023-04-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:www
Changes by: dera...@cvs.openbsd.org 2023/04/07 19:10:55

Modified files:
.  : 73.html 

Log message:
repair href formatting issue



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libcrypto/bn: bn_mont.c 

Log message:
bn_mont: fix typo in comment divisable -> divisible



CVS: cvs.openbsd.org: src

2023-04-07 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/04/07 16:55:26

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

Log message:
print which gmac the dwqe driver is attaching to.

there's no guarantee that dwqe0 in the kernel will attach to gmac0
in the device tree, so print it to make it explicit what's going
where.

ok patrick@ kettenis@



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: rename rc into ret as per usual



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: pass BN_CTX into all functions

There is a BN_CTX at program scope. Pass it into all test functions.
This simplifies memory management at the end of the functions quite a bit.



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: drop a few braces that are now unnecessary



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: move rc initialization to its own line



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: keep the error stack clean

Make message() print and clear the error stack. This way we can know
what test errored. To make this work also clear the error stack after
a handful of xfail tests.



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: use bn_copy() instead of BN_free/BN_dup

This is not only simpler but also required by an upcoming change.



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: a few early return would leak. goto err instead



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: rand_neg() is not only one of the most stupidly named functions
in the entire code base it also has a few parentheses too many



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: handle rc consistently

Various test functions had bugs due to the fact that the return code
would be set to 1 at the top so that each error would have to set rc = 0.
This is silly. Fail closed instead by setting rc = 0 at the top and only
flipping to 1 before the err label



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_test.c 

Log message:
bn_test: inline the only use of lst[]

lst[] can be converted from a bit string to a hex string. Use BN_hex2bn()
isntead of BN_bin2bn(). Handle this inside test_lshift() rather than doing
artistic ownership dances.



CVS: cvs.openbsd.org: src

2023-04-07 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2023/04/07 16:02:58

Modified files:
sys/net: if.c 
sys/netinet: if_ether.c 

Log message:
Remove kernel locks from the ARP input path.  Caller if_netisr()
grabs the exclusive netlock and that is sufficent for in_arpinput()
and arpcache().
with kn@; OK mvs@; tested by Hrvoje Popovski



CVS: cvs.openbsd.org: www

2023-04-07 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:www
Changes by: na...@cvs.openbsd.org   2023/04/07 14:32:36

Modified files:
.  : 73.html 

Log message:
7.3 release: 8474 powerpc64 packages



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/bn: bn_gcd.c 

Log message:
Improve some test failure reporting



CVS: cvs.openbsd.org: src

2023-04-07 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/07 10:34:41

Modified files:
sbin/fdisk : cmd.c gpt.c 

Log message:
Oops. Missed files in last commit.



CVS: cvs.openbsd.org: src

2023-04-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/04/07 09:39:18

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

Log message:
Two minor tweaks that are useful for processing bio.h, among other headers:
* ignore lines defining "__bounded__()"
* ignore whitespace between "#" and "include"



CVS: cvs.openbsd.org: src

2023-04-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/04/07 08:47:37

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

Log message:
Mark BIO_CB_return(), BIO_cb_pre(), and BIO_cb_post() as intentionally
undocumented because they are unused according to codesearch.debian.net
and would cause nothing but obfuscation if they were used.



CVS: cvs.openbsd.org: src

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

Modified files:
sbin/fdisk : part.c part.h 

Log message:
Add helper functions find_mbr_desc() and find_gpt_desc() to allow
checking mbr_type[N].mt_desc and gpt_type[N].gt_desc before using
name on menu when printing out partition tables.

Tweak logic in find_mbr_type() and find_gpt_type() to be a bit
more paranoid.

Tweak function/variable names to be more in line to usage.

No functional change as all mt_desc and gt_desc are currently
NULL.



CVS: cvs.openbsd.org: src

2023-04-07 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/07 07:49:03

Modified files:
usr.sbin/bgpd  : rde.c rde.h rde_rib.c 

Log message:
Pass a pt_entry pointer to rib_get() and rib_add().
Add rib_get_addr() to behave like rib_get() did before.
OK tb@



CVS: cvs.openbsd.org: src

2023-04-07 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/07 07:48:42

Modified files:
distrib/miniroot: install.sub 

Log message:
Default 'Is the disk partition alrady mounted?' to 'no' on install

For installation, no partitions whatsoever are mounted, so 'yes' is always
wrong unless the user manually mounted stuff before that question.

No change for upgrade, where partitions on the root disk are mounted.

Idea from naddy, diff from Mikhail (mp39590 AT gmail)
Tweaks from me
OK op afresh1



CVS: cvs.openbsd.org: www

2023-04-07 Thread Joel Sing
CVSROOT:/cvs
Module name:www
Changes by: js...@cvs.openbsd.org   2023/04/07 07:37:11

Modified files:
.  : 73.html 

Log message:
Fix markup.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/kern   : makesyscalls.sh 

Log message:
Fix whitespace on two lines



CVS: cvs.openbsd.org: src

2023-04-07 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/07 03:40:18

Modified files:
distrib/miniroot: install.sub 

Log message:
Nail the root disk default in the guided disk encryption case

Save the softraid volume's device and make it root disk default, being the
only legit choice in this case;  this gets it always right on systems with
multiple physical disks.

All other install/upgrade cases keep picking the first available [sw]d* disk
as root disk default.

OK afresh1



CVS: cvs.openbsd.org: src

2023-04-07 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/04/07 03:33:51

Modified files:
sys/dev/ic : dwqevar.h 

Log message:
register a mapping of dwqe interfaces to ofw nodes/phandles.

i forgot to commit this as part of src/sys/dev/fdt/if_dwqe_fdt.c r1.7

found by mglocker@



CVS: cvs.openbsd.org: src

2023-04-07 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/07 03:31:59

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

Log message:
avoid use of uninitialised memory
ok miod@ kettenis@



CVS: cvs.openbsd.org: src

2023-04-07 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/04/07 02:53:03

Modified files:
sys/dev/fdt: if_dwqe_fdt.c 
sys/dev/ic : dwqe.c dwqevar.h 

Log message:
Determine PHY mode and pass the appropriate flags down to the PHY when we
attach it.

ok dlg@



CVS: cvs.openbsd.org: www

2023-04-07 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:www
Changes by: o...@cvs.openbsd.org2023/04/07 02:46:03

Modified files:
.  : 73.html 

Log message:
malloc's main internal data is marked immutable