CVS: cvs.openbsd.org: src

2023-02-19 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/02/19 18:55:41

Modified files:
distrib/miniroot: dot.profile 

Log message:
Disable strict bourne shell mode to get ksh behaviour in (S)hell

Enable features like arithmatic expression and thus make the debug aid
`FUNCS_ONLY=1 . /install.sub' work in those prompts.

'!' answers spawn their own ksh process, but (S)hell drops into /.profile
sourced by /bin/sh executed by init(8), i.e. a korn shell defaulting to
strict bourne shell mode.

Shell options in this interactive parent shell do not effect install.sub
aka. /install, /autoinstall and /upgrade as it is executed in a child.

OK afresh1



CVS: cvs.openbsd.org: src

2023-02-19 Thread Greg Steuck
CVSROOT:/cvs
Module name:src
Changes by: gne...@cvs.openbsd.org  2023/02/19 17:51:57

Modified files:
libexec/ld.so  : loader.c 

Log message:
Adjust inline !libc check to match the intent in ld.so

right, deraadt@



CVS: cvs.openbsd.org: src

2023-02-19 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2023/02/19 17:01:16

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

Log message:
Unbreak RAMDISK build by adding a check for MULTIPROCESSOR.



CVS: cvs.openbsd.org: src

2023-02-19 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/02/19 16:46:22

Modified files:
distrib/miniroot: install.sub 

Log message:
Improve media disk question default

Sets on an unmounted disk partition are most likely to be on install media,
e.g. CD or USB stick.

Default 'Which disk contains the install media?' to the first disk that is
a) not the root disk and b) not a disk with softraid chunks (hosting the
root disk, for example).

This makes it point at the right disk in most setups.
All disks remain valid answers, this is only about the default.

OK afresh1



CVS: cvs.openbsd.org: src

2023-02-19 Thread Aisha Tammy
CVSROOT:/cvs
Module name:src
Changes by: ai...@cvs.openbsd.org   2023/02/19 14:33:38

Modified files:
lib/libc/gen   : auth_subr.3 

Log message:
auth_getchallenge does not exist anymore



CVS: cvs.openbsd.org: www

2023-02-19 Thread Aisha Tammy
CVSROOT:/cvs
Module name:www
Changes by: ai...@cvs.openbsd.org   2023/02/19 14:30:12

Modified files:
faq/pf : perf.html 

Log message:
pf isn't single threaded for a while now



CVS: cvs.openbsd.org: src

2023-02-19 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2023/02/19 11:46:46

Modified files:
sys/kern   : kern_pledge.c 

Log message:
Make pinsyscall(2) always available for pledged processes. Needed by pledge
execpromises, as noted by regress/sys/kern/pledge/execpromise.

sure deraadt@



CVS: cvs.openbsd.org: www

2023-02-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2023/02/19 11:08:32

Modified files:
.  : innovations.html 

Log message:
Mention fgsch@ as part of the initial Propolice work.



CVS: cvs.openbsd.org: www

2023-02-19 Thread Klemens Nanni
CVSROOT:/cvs
Module name:www
Changes by: k...@cvs.openbsd.org2023/02/19 10:57:24

Modified files:
faq: faq4.html 

Log message:
use "-p dir" with fw_update(8) to drop "cd"s around it



CVS: cvs.openbsd.org: src

2023-02-19 Thread Robert Nagy
CVSROOT:/cvs
Module name:src
Changes by: rob...@cvs.openbsd.org  2023/02/19 10:29:49

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

Log message:
+openbsd-74-syspatch.pub



CVS: cvs.openbsd.org: src

2023-02-19 Thread Robert Nagy
CVSROOT:/cvs
Module name:src
Changes by: rob...@cvs.openbsd.org  2023/02/19 10:28:46

Added files:
etc/signify: openbsd-74-syspatch.pub 

Log message:
add 7.4 syspatch public key



CVS: cvs.openbsd.org: src

2023-02-19 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/02/19 10:16:13

Modified files:
sys/dev/fdt: psci.c pscivar.h 
sys/arch/arm64/arm64: cpu.c 
sys/arch/arm64/include: cpu.h 

Log message:
Add support for deep(er) idle states that can be entered using PSCI.  For
now this only supports states advertised in device trees, but ACPI support
could be added as well.  The parsing of the idle states as well as the
heuristic to pick the deepest one is probably a bit to simple, but more
complex cases can be added later.  Worst case cores will use WFI and use
more power in suspend.

ok phessler@



CVS: cvs.openbsd.org: src

2023-02-19 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/02/19 10:10:39

Modified files:
usr.sbin/vmd   : vm.conf.5 

Log message:
describe what qcow2 is, in sufficient simple terms



CVS: cvs.openbsd.org: src

2023-02-19 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/02/19 08:45:14

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

Log message:
Move BN_MONT_CTX back to bn_local.h for now. It's still used by bn_exp.c



CVS: cvs.openbsd.org: src

2023-02-19 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/02/19 08:35:22

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

Log message:
sync



CVS: cvs.openbsd.org: src

2023-02-19 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2023/02/19 08:19:38

Added files:
etc/signify: openbsd-74-pkg.pub 

Log message:
7.4 packages key



CVS: cvs.openbsd.org: src

2023-02-19 Thread Stefan Hagen
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2023/02/19 07:37:54

Modified files:
share/man/man7 : ports.7 
share/man/man5 : bsd.port.mk.5 

Log message:
Remove non-existent make targets from ports(7) and bsd.port.mk(5)

Removed from ports(7):
- describe, homepage-links, (un)link-categories, unlink-categories

Removed from bsd.port.mk(5):
- (un)link-categories

OK op@



CVS: cvs.openbsd.org: src

2023-02-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/02/19 06:51:01

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

Log message:
Rewrite BN_MONT_CTX_set_locked()

Rewrite and simplify BN_MONT_CTX_set_locked - in particular, only hold the
lock for a short period of time, rather than holding a write lock for a
module across an expensive operation.

ok tb@



CVS: cvs.openbsd.org: src

2023-02-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/02/19 06:44:29

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

Log message:
First pass clean up of bn_mont.c.

Use calloc() rather than malloc() with manual initialisation of all struct
members to zero, use memset() instead of manually initialising all struct
members to zero, use consistent naming, use BN_free() instead of
BN_clear_free() (since it is the same thing).

ok tb@



CVS: cvs.openbsd.org: src

2023-02-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/02/19 06:33:23

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

Log message:
Move BN_MONT_CTX_copy().



CVS: cvs.openbsd.org: src

2023-02-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/02/19 06:27:49

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

Log message:
Move struct bn_mont_ctx_st from bn_local.h to bn_mont.c.

No code outside of bn_mont.c needs access to it.

ok tb@



CVS: cvs.openbsd.org: src

2023-02-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2023/02/19 05:23:27

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

Log message:
Do not let the iwx init task run in parallel to wakeup code during resume.

The driver will resume in the ACPI thread and run code to wake the device.
If a firmware error occurs then the init task will be scheduled and could
then run in parallel to the wakeup code. This would lead to panics as the
init task ran while we were not yet done with device initialization.

To prevent this problem we now grab the rwlock during wakeup, the same
lock which is used to prevent races between the init task and ioctls.
Problem found by mvs@, who also suggested the fix implemented here and
tested the changes.

ok mvs@



CVS: cvs.openbsd.org: src

2023-02-19 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2023/02/19 03:40:34

Modified files:
regress/sys/kern/poll: Makefile 
regress/sys/kern/select: Makefile 

Log message:
Disable tests using the preferred bsd.regress.mk technique.