CVS: cvs.openbsd.org: src

2021-05-04 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/05/04 23:47:11

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

Log message:
Enable detailed reports about firmware errors in iwm(4) for the time being.
I am getting reports about firmware errors which may be related to Tx agg.



CVS: cvs.openbsd.org: src

2021-05-04 Thread Dale Rahn
CVSROOT:/cvs
Module name:src
Changes by: dr...@cvs.openbsd.org   2021/05/04 22:52:39

Modified files:
gnu/usr.bin/binutils-2.17: Makefile.bsd-wrapper configure 
   configure.in 
gnu/usr.bin/binutils-2.17/bfd: Makefile.am Makefile.in 
   archures.c bfd-in2.h config.bfd 
   configure targets.c 
gnu/usr.bin/binutils-2.17/gas: bfin-lex.c 
gnu/usr.bin/binutils-2.17/opcodes: configure configure.in 
Added files:
gnu/usr.bin/binutils-2.17/bfd: cpu-riscv64.c elf64-riscv.c 

Log message:
riscv64 binutils 'support'
Enable just enough of binutils to be a functional compilation system
with llvm doing the heavy lifting.
With corrections suggested by reviewers.
ok jsg@ kettenis@



CVS: cvs.openbsd.org: src

2021-05-04 Thread ASOU Masato
CVSROOT:/cvs
Module name:src
Changes by: a...@cvs.openbsd.org2021/05/04 21:03:16

Modified files:
gnu/usr.bin/binutils/gdb: amd64obsd-tdep.c 

Log message:
Fix backtrace command with kernel core.

ok mpi@



CVS: cvs.openbsd.org: src

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

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

Log message:
riscv: Assert that SUM is not set in SSTATUS for exceptions.

>From John Baldwin
6a3a6fe34bf36b6e745b3e9ad1a991de057729c7 in FreeBSD

ok kettenis@ mlarkin@



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/riscv64/riscv64: exception.S 

Log message:
riscv: Clear SUM in SSTATUS for supervisor mode exceptions.

>From John Baldwin
753bcca440a4d2c95f48536b586131b84c0bb87e in FreeBSD

ok kettenis@ mlarkin@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/04 18:53:08

Modified files:
sys/arch/riscv64/conf: Makefile.riscv64 files.riscv64 
Added files:
sys/arch/riscv64/riscv64: exception.S trap.c 
Removed files:
sys/arch/riscv64/riscv64: trap.S trap_machdep.c 

Log message:
rename trap.S exception.S and trap_machdep.c trap.c to match other archs
ok kettenis@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Kurt Miller
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/05/04 18:04:49

Modified files:
distrib/notes/arm64: hardware 

Log message:
Add Radxa Rock Pi N10.



CVS: cvs.openbsd.org: www

2021-05-04 Thread Kurt Miller
CVSROOT:/cvs
Module name:www
Changes by: k...@cvs.openbsd.org2021/05/04 17:52:17

Modified files:
.  : arm64.html 

Log message:
Add Radxa Rock Pi N10 and mention rkpcie(4) in the storage section.
okay sthen@ kettenis@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2021/05/04 16:53:52

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

Log message:
Don't pass NULL as a string in debugging as it does not work on some
platforms in -portable.  ok djm@



CVS: cvs.openbsd.org: www

2021-05-04 Thread Darren Tucker
CVSROOT:/cvs
Module name:www
Changes by: dtuc...@cvs.openbsd.org 2021/05/04 16:35:32

Modified files:
openssh: specs.html 

Log message:
Add draft-ietf-secsh-scp-sftp-ssh-uri which has been supported since 7.6.



CVS: cvs.openbsd.org: src

2021-05-04 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2021/05/04 15:57:15

Modified files:
sys/kern   : kern_sysctl.c 
sys/sys: sysctl.h 

Log message:
Reorder the integer sysctl functions.  Then the traditional 4.4BSD
comment 'As above...' makes sense again.  Improve comments for
sysctl_int_bounded() and sysctl_bounded_arr().
OK gnezdo@ mvs@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2021/05/04 15:03:31

Modified files:
bin/ksh: ksh.1 sh.1 
usr.bin/getopt : getopt.1 

Log message:
shell scripts should use getopts instead of getopt

Add a prominent deprecation notice to getopt.1.
Add examples of the getopts idiom to sh.1 and ksh.1.

Requested by and ok espie@, ok jmc@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2021/05/04 13:04:56

Modified files:
sys/kern   : kern_sysctl.c 

Log message:
As the unbouded feature in sysctl_int_bounded() is no longer used,
remove it.  This also fixes a defective check of the dynamic boundary
in sysctl_sysvshm().
OK mvs@ gnezdo@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/04 13:02:52

Modified files:
lib/libc/arch/aarch64/sys: sigpending.S 

Log message:
sigpending(2) will never fail.  Optimize the syscall stub accordingly like
we do on other architectures.

ok mpi@



CVS: cvs.openbsd.org: src

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

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

Log message:
Rename shutdown_all() to shutdown_peers() for consistency.



CVS: cvs.openbsd.org: src

2021-05-04 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2021/05/04 12:14:59

Modified files:
sys/sys: syscall.h syscallargs.h 
sys/kern   : syscalls.c init_sysent.c 

Log message:
syscalls.c, init_sysent.c, syscall.h, syscallargs.h: regen

Regen after unlocking getitimer(2) and setitimer(2).

ok anton@, mpi@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2021/05/04 12:10:24

Modified files:
sys/kern   : syscalls.master 

Log message:
getitimer(2), setitimer(2): unlock syscalls

With the changes in kern_time.c v1.150, neither getitimer(2) nor
setitimer(2) need the kernel lock anymore.

ok anton@, mpi@



CVS: cvs.openbsd.org: www

2021-05-04 Thread Andrew Fresh
CVSROOT:/cvs
Module name:www
Changes by: afre...@cvs.openbsd.org 2021/05/04 11:36:21

Modified files:
faq: upgrade69.html 

Log message:
Fix perl cleanup instructions to use rm -r

We had -r in current.html, but someone it got changed to -f here.
Need to remove directories though, so need -r.

Noticed by Steven Shockley 



CVS: cvs.openbsd.org: src

2021-05-04 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/04 10:38:06

Modified files:
sys/arch/riscv64/conf: GENERIC RAMDISK files.riscv64 
sys/arch/riscv64/dev: mainbus.c 
sys/arch/riscv64/include: cpu.h 
sys/arch/riscv64/riscv64: cpu.c intr.c machdep.c 
Added files:
sys/arch/riscv64/riscv64: clock.c 
Removed files:
sys/arch/riscv64/dev: timer.c timer.h 

Log message:
The clock on RISC-V is architectural, so we really don't need the
whole abstraction layer to support multiple timers.  And we don't
really need a separate driver.  Replace timer(4) with code based on
the powerpc64 implementation of the randomized statclock code.

Fixes hangs seen on real hardware.

ok jsg@, drahn@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Kenji Aoyama
CVSROOT:/cvs
Module name:src
Changes by: aoy...@cvs.openbsd.org  2021/05/04 08:05:12

Modified files:
sys/arch/m88k/include: atomic.h 

Log message:
Fix 2nd and 3rd arguments' cast in atomic_cas_ptr().

This fixes compile errors (actually warnings) on m88k in sys/net/pf.c
revision 1.1116 changes.

Diff from Miod Vallat, tested on GENERIC and GENERIC.MP by me.



CVS: cvs.openbsd.org: src

2021-05-04 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2021/05/04 07:24:49

Modified files:
regress/sys/kern/fork-exit: Makefile fork-exit.c 

Log message:
Create memory pressure in test.  Allocate heap and stack in child
processes and threads.  Then exit has more work to do.



CVS: cvs.openbsd.org: src

2021-05-04 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/04 06:46:28

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

Log message:
Add a boot hart ID check in the function that matches secondary CPUs
as well.

ok jsg@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/05/04 04:48:51

Modified files:
usr.sbin/vmd   : loadfile_elf.c 

Log message:
gzread(3) doesn't always set errno, so use gzerror(3)

Compression errors from libz don't set errno.

OK mlarkin@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/05/04 04:42:51

Removed files:
usr.sbin/vmd   : task.c task.h 

Log message:
Move unused task queue stuff to the attic.

Was added about 4 years ago, but hasn't been used and linked into
the build. Discussed with dlg@ and mlarkin@.

mlarkin@: "Let's remove for now..."



CVS: cvs.openbsd.org: src

2021-05-04 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/05/04 04:36:01

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

Log message:
Init debug logging state before attempting to log.

Error messages related to bad configuration were not flushing to
stderr.

OK mlarkin@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2021/05/04 04:19:28

Modified files:
usr.sbin/pkg_add: pkg_add 
usr.sbin/pkg_add/OpenBSD: AddDelete.pm 

Log message:
okay, prevent pkg_* from looking into /usr/local BUT special-case quirks



CVS: cvs.openbsd.org: src

2021-05-04 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2021/05/04 03:28:04

Modified files:
sys/net: pfkeyv2.c 
sys/netinet: ip_ipsp.h ip_spd.c 

Log message:
Initialize `ipsec_policy_pool' within pfkey_init() instead of doing that
in runtime within pfkeyv2_send(). Also set it's interrupt protection
level to IPL_SOFTNET.

ok bluhm@ mpi@



CVS: cvs.openbsd.org: src

2021-05-04 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2021/05/04 03:27:22

Modified files:
sys/net: pfkeyv2.c 

Log message:
Remove unused `spd_tables' declaration.

ok bluhm@ mpi@



CVS: cvs.openbsd.org: src

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

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

Log message:
More comment changes to reflect reality. No functional change.



CVS: cvs.openbsd.org: src

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

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

Log message:
Update comment to match reality.



CVS: cvs.openbsd.org: src

2021-05-04 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2021/05/04 02:53:15

Modified files:
usr.sbin/pkg_add: pkg_add 

Log message:
not yet, need to figure out how to fix quirks first



CVS: cvs.openbsd.org: src

2021-05-04 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2021/05/04 02:41:03

Modified files:
usr.sbin/pkg_add: pkg_mklocatedb 

Log message:
and do the same thing to pkg_mklocatedb



CVS: cvs.openbsd.org: src

2021-05-04 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2021/05/04 02:39:19

Modified files:
usr.sbin/pkg_add: pkg_add 

Log message:
prevent the base pkg tools from looking under /usr/local



CVS: cvs.openbsd.org: src

2021-05-04 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/05/04 02:16:36

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

Log message:
Similar to rsync repo delay deletes for rrdp repos to after processing
all files. Now RRDP has a weak sync mechanism and therefor not all
unreferenced files can be removed, instead look at the list of removes
which were part of the delta processing and remove those files.
Warn and keep the file if a delta specifies to remove a file which is
actually still referenced.
OK benno@



CVS: cvs.openbsd.org: src

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

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

Log message:
Check that fdt hart id matches boot hart id before associating an fdt
node with the primary cpu.

Prompted by the polarfire icicle where hart 0 is an mmuless e51 core.

ok drahn@ mlarkin@