CVS: cvs.openbsd.org: src

2021-02-27 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/02/27 20:59:25

Modified files:
sys/net: if_aggr.c 

Log message:
big numbers need suffixes on some platforms. fix LACP_ADDR_SLOW_E64.

deraadt@ says i broke hppa :(



CVS: cvs.openbsd.org: src

2021-02-27 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2021/02/27 18:50:47

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

Log message:
Do not try to reset signal handler for signal 0 in subprocess.
Prevents spurious debug message.  ok djm@



CVS: cvs.openbsd.org: src

2021-02-27 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/02/27 16:42:37

Modified files:
usr.bin/ssh: sshd_config.5 

Log message:
fix alphabetic ordering of options; spotted by Iain Morgan



CVS: cvs.openbsd.org: src

2021-02-27 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2021/02/27 13:30:19

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

Log message:
sync



CVS: cvs.openbsd.org: src

2021-02-27 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/27 12:32:58

Modified files:
share/man/man5 : elf.5 

Log message:
removal of "must" missed in previous: spotted by george brown, who also
submitted the diff for the previous commit and who i forgot to credit...



CVS: cvs.openbsd.org: src

2021-02-27 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/27 11:58:59

Modified files:
share/man/man5 : elf.5 

Log message:
remove some info related to compat;
tweaked by deraadt

ok kettenis deraadt



CVS: cvs.openbsd.org: src

2021-02-27 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/27 11:50:38

Modified files:
share/man/man4/man4.arm64: apldart.4 

Log message:
fix NAME;



CVS: cvs.openbsd.org: src

2021-02-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/02/27 10:53:23

Modified files:
sbin/dhcpleased: dhcpleased.c 

Log message:
Restore ability to handle default routes on multiple interfaces, this
got lost shortly before initial import.
While here explicitly delete the default route when deconfiguring an
interface. There might be corner cases where the stack will not tear
it down for us when we remove the IP address.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2021/02/27 10:47:44

Modified files:
sbin/resolvd   : resolvd.c 

Log message:
ensure local array is same size as global



CVS: cvs.openbsd.org: src

2021-02-27 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/02/27 10:44:58

Modified files:
sbin/dhclient  : clparse.c dhclient.c 

Log message:
Stop checking 'epoch' in get_recorded_lease() and just set it as
required in read_lease_db(). It's already set in packet_to_lease() and
thus both paths to TAILQ_INSERT(lease_db) ensure there is a non-zero
epoch in all lease_db entries.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/02/27 10:15:55

Added files:
share/man/man4/man4.arm64: apldart.4 

Log message:
apldart(4)



CVS: cvs.openbsd.org: src

2021-02-27 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/02/27 10:15:33

Added files:
share/man/man4/man4.arm64: aplpcie.4 

Log message:
aplpcie(4)



CVS: cvs.openbsd.org: src

2021-02-27 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2021/02/27 10:07:04

Modified files:
sbin/iked  : vroute.c 

Log message:
Set RTF_GATEWAY for host route based on RTM_GET response.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/02/27 09:31:33

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

Log message:
apldart(4) is needed here as well.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/02/27 09:26:41

Modified files:
share/man/man4/man4.arm64: Makefile 

Log message:
aipldart(4)



CVS: cvs.openbsd.org: src

2021-02-27 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/02/27 09:23:41

Modified files:
share/man/man4/man4.arm64: Makefile 

Log message:
aplpcie(4)



CVS: cvs.openbsd.org: src

2021-02-27 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/02/27 09:19:14

Modified files:
sys/arch/arm64/conf: GENERIC files.arm64 
Added files:
sys/arch/arm64/dev: apldart.c 

Log message:
Add apldart(4), a driver for the IOMMU on Apple M1 SoCs.

ok patrick@



CVS: cvs.openbsd.org: src

2021-02-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/02/27 08:20:54

Modified files:
sbin/resolvd   : resolvd.8 

Log message:
While I wrote the initial version of resolvd(8) it diverged so much
that it's not appropriate to claim that I wrote it.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2021/02/27 07:20:50

Modified files:
lib/libssl : d1_both.c ssl_lib.c ssl_locl.h t1_enc.c 
 tls12_record_layer.c 

Log message:
Move handling of cipher/hash based cipher suites into the new record layer.

ok tb@



CVS: cvs.openbsd.org: src

2021-02-27 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/02/27 06:59:00

Modified files:
sbin/dhclient  : dhclient.c dispatch.c 

Log message:
Disentangle log_debug() output from tick_msg() output.

Simplifies -v output, and reduces non-'-v' output.

Reduce non-'-v' output further by only displaying the first 'link up'
event.

Restore behaviour specified in dhclient.conf(5) of going daemon after
link-timeout seconds, rather than waiting another link-timeout seconds
for a lease to be accepted.

Lease verbiage problem reported, and fix tested by Mihai Popescu. Thanks!

Link verbiage problems reported, fix tested & ok tb@.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2021/02/27 06:43:16

Modified files:
sys/kern   : kern_event.c 

Log message:
Replace stray direct call of f_event with filter_event().

This does not change the current behaviour, but filterops should be
invoked through filter_*() for consistency.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2021/02/27 06:38:35

Modified files:
lib/libssl : tls12_record_layer.c 

Log message:
Identify DTLS based on the version major value.

This avoids the need to match specific DTLS version numbers.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2021/02/27 06:24:52

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

Log message:
Add dobeep functions that take messages to basic.c.
No functional change intended.



CVS: cvs.openbsd.org: xenocara

2021-02-27 Thread Jonathan Gray
CVSROOT:/cvs
Module name:xenocara
Changes by: j...@cvs.openbsd.org2021/02/27 06:09:00

Modified files:
lib/mesa/src/util: futex.h simple_mtx.h u_queue.h 

Log message:
util: enable futex usage on BSDs after 7dc2f4788288

>From Jan Beich
46c368907fcf333a19881d28c46e997845d00faf in mainline Mesa

We had a related local patch in 19.2 which wasn't needed when 20.1 was
imported as the above commit was backported to the upstream 20.1 branch.
When Mesa 20.0 was imported after issues with 20.1 on Haswell the
changes to use futexes for simple_mtx.h and u_queue.h were lost.

Noticed by otto@ and kettenis@ when looking for memory leaks.



Re: CVS: cvs.openbsd.org: src

2021-02-27 Thread Kevin Chadwick


>Log message:
>Add logger(1) support for daemons that are logging to stdout/stderr
>(mostly from
>the go ecosystem).
>Properly handle failing daemon startup now that we have pipefail.
>

Go can log to syslog. Is this so that panics can also be captured from stderr?



CVS: cvs.openbsd.org: src

2021-02-27 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2021/02/27 04:44:48

Modified files:
sys/net: rtsock.c 

Log message:
Rework route_input() and rtm_sendup(). While we perform foreach loop
in route_input() we drop solock() after we checked socket state. We
pass mbuf(9) to this socket at next loops, while it referenced as
`last'. Socket's state could be changed by concurrent thread while
it's not locked.

Since we perform socket's checks and output in same iteration, the
logic which prevents mbuf(9) chain copy for the last socket in list
was removed.

ok bluhm@ claudio@



CVS: cvs.openbsd.org: src

2021-02-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/02/27 03:35:20

Modified files:
usr.sbin/ractl : ractl.c 
usr.sbin/rad   : rad.c rad.h 

Log message:
Path #defines are traditionally prefixed with _PATH.
Pointed out by deraadt



CVS: cvs.openbsd.org: src

2021-02-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/02/27 03:32:29

Modified files:
sbin/unwind: parse.y unwind.c unwind.h 
usr.sbin/unwindctl: unwindctl.c 

Log message:
Path #defines are traditionally prefixed with _PATH.
Pointed out by deraadt



CVS: cvs.openbsd.org: src

2021-02-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/02/27 03:28:12

Modified files:
sbin/slaacd: slaacd.c slaacd.h 
usr.sbin/slaacctl: slaacctl.c 

Log message:
Path #defines are traditionally prefixed with _PATH.
pointed out by deraadt



CVS: cvs.openbsd.org: src

2021-02-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/02/27 03:21:09

Modified files:
sbin/dhcpleased: dhcpleased.c dhcpleased.h 
usr.sbin/dhcpleasectl: dhcpleasectl.c 

Log message:
Path #defines are traditionally prefixed with _PATH.
pointed out by deraadt



CVS: cvs.openbsd.org: src

2021-02-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/02/27 03:07:41

Modified files:
sbin/dhcpleased: dhcpleased.c dhcpleased.h engine.c 

Log message:
Read the lease file into a statically sized buffer and pass it over to
the engine process for parsing instead of passing an fd.
Let's us tighten the engine's pledge back down to "stdio".



CVS: cvs.openbsd.org: src

2021-02-27 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:src
Changes by: ajacou...@cvs.openbsd.org   2021/02/27 02:28:05

Modified files:
etc/rc.d   : rc.subr 
usr.sbin/rcctl : rcctl.sh rcctl.8 
share/man/man8 : rc.d.8 rc.subr.8 

Log message:
Add logger(1) support for daemons that are logging to stdout/stderr (mostly from
the go ecosystem).
Properly handle failing daemon startup now that we have pipefail.

To take advantage of this new feature, just add foo_logger=facility to the
daemon rc.d(8) script or in rc.conf.local(8) or use rcctl:
rcctl set foo logger daemon.info

tweak for checking flags in rcctl(8) from martijn@
"this looks pretty good" deraadt@
ok sthen@



CVS: cvs.openbsd.org: src

2021-02-27 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/02/27 02:21:22

Modified files:
sys/net: if_gre.c 

Log message:
trim some code i accidentally left into the nvgre add address function



CVS: cvs.openbsd.org: src

2021-02-27 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/02/27 02:20:38

Modified files:
sys/net: if_gre.c 

Log message:
recover scope from v6 nvgre endpoint addresses for userland to look at.



CVS: cvs.openbsd.org: src

2021-02-27 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/02/27 01:59:29

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

Log message:
It is perfectly fine to POLLIN and POLLOUT at the same time. It may
actually make things a bit faster.
OK deraadt@