CVS: cvs.openbsd.org: src

2019-08-29 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2019/08/29 23:08:28

Modified files:
regress/usr.bin/ssh: hostkey-rotate.sh 

Log message:
Use ed25519 for most hostkey rotation tests since it's supported even when
built without OpenSSL.  Use RSA for the secondary type test if supported,
otherwise skip it.  Fixes this test for !OpenSSL builds.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/08/29 22:00:34

Modified files:
lib/libpcap: Makefile 
Added files:
lib/libpcap: pcap_open_live.3 
Removed files:
lib/libpcap: pcap.3 

Log message:
there is no pcap(3) function, "man pcap" returns an incorrect result.
this page should be called by one of the functions, so i chose the first
one: pcap_open_live(3)



CVS: cvs.openbsd.org: src

2019-08-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/08/29 21:57:56

Modified files:
lib/libutil: Makefile util.h 
Added files:
lib/libutil: uu_lock.3 
Removed files:
lib/libutil: uucplock.3 

Log message:
uucplock(3) is incorrectly named in some places, it is actually uu_lock(3)
(more unclear is if anything in ports uses this, as our base no longer does)



CVS: cvs.openbsd.org: src

2019-08-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/08/29 21:52:21

Modified files:
sbin/ifconfig  : ifconfig.c sff.c 

Log message:
whitespace, found while pondering improvements to sffdump



CVS: cvs.openbsd.org: src

2019-08-29 Thread Kurt Mosiejczuk
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/08/29 20:49:35

Modified files:
usr.bin/locate/locate: updatedb.sh 

Log message:
locate.updatedb can't update the database unless it is run as root.

It will scan the entire disk before attempting to create the updated
database and then error out.

add a quick check to see if it as running as root and erroring out if
that is not the case.

"Makes sense" deraadt@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2019/08/29 18:38:12

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

Log message:
On SAS3 and newer controllers (using the IEEE sgl layout), the chain offset
field is in units of 16 bytes, not 4, fixing some but not all problems
reported by Kor son of Rynar.

ok dlg@, who points out this is exactly the same fix as r1.10 of mfii



CVS: cvs.openbsd.org: src

2019-08-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/08/29 17:54:49

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

Log message:
sync



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/08/29 16:42:16

Modified files:
sbin/route : route.c 

Log message:
The kernel uses rtm_addrs as a bit field for addresses that are
included in the routing message.  The significance of the bits has
to be consistent with the order of the addresss.  In route(8) store
addresses in ascending order of RTA values.  This allows to use
MPLS routes together with route labels.
OK mpi@ claudio@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/08/29 15:21:18

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

Log message:
Stop mentioning unsupported #number argument for break command

There is no code for addressing breakpoints by numbers at all.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2019/08/29 14:18:11

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

Log message:
Enable USB Vbus supply on i.MX 8M.

ok kettenis@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/08/29 13:11:15

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

Log message:
The IFP address in arp(8) used some bytes from a location depending
on sizeof(long) as sockaddr_dl.  We were lucky and it worked.  Use
the correct size and the algorithm from route(8) for arp(8).
OK mpi@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/08/29 11:57:25

Modified files:
usr.bin/mandoc : html.c html.h 

Log message:
In the HTML formatter, assert(3) that no HTML nesting violation occurs.
Tested on the complete manual page trees of Version 7 AT UNIX,
4.4BSD-Lite2, POSIX-2013, OpenBSD 2.2 to 6.5 and -current,
FreeBSD 10.0 to 12.0, NetBSD 6.1.5 to 8.1, DragonFly 3.8.2 to 5.6.1,
and Linux 4.05 to 5.02.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/08/29 11:40:57

Modified files:
share/man/man4 : Makefile 
Added files:
share/man/man4 : amldwusb.4 amlpciephy.4 amlusbphy.4 

Log message:
amldwusb(4), amlpciephy(4) and amlusbphy(4)



CVS: cvs.openbsd.org: src

2019-08-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/08/29 11:20:03

Modified files:
sys/arch/arm64/conf: GENERIC RAMDISK 
sys/dev/fdt: files.fdt 
Added files:
sys/dev/fdt: amldwusb.c amlpciephy.c amlusbphy.c 

Log message:
Add amldwusb(4), amlusbphy(4) and amlpciephy(4), drivers for the USB
controller glue and USB PHYs found on the Amlogic G12A/B SoCs.

ok patrick@



Re: CVS: cvs.openbsd.org: src

2019-08-29 Thread Tobias Heider
On Thu, Aug 29, 2019 at 08:56:23AM -0600, Tobias Heider wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   to...@cvs.openbsd.org   2019/08/29 08:56:23
> 
> Modified files:
>   sbin/iked  : ikev2.c 
> 
> Log message:
> Remove redundant ikev2_msg_valid_ike_sa() call.
> 
> ok patrick@
> 

and ok bluhm@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2019/08/29 08:56:23

Modified files:
sbin/iked  : ikev2.c 

Log message:
Remove redundant ikev2_msg_valid_ike_sa() call.

ok patrick@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/08/29 08:28:34

Modified files:
sbin/route : route.c 

Log message:
route(8) used inet/inet6 autodetection also for the link address
type.  Provide the address family AF_LINK and storage size of struct
sockaddr_dl to the kernel when creating an IFP routing address.
OK mpi@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/08/29 08:19:27

Modified files:
sys/arch/armv7/exynos: exdwusb.c 

Log message:
Capitalize my last name in copyright.



CVS: cvs.openbsd.org: src

2019-08-29 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/08/29 08:04:48

Modified files:
sys/dev/usb: if_ure.c 

Log message:
ure: attach to RTL8153B device on Lenovo USB-C Dock



CVS: cvs.openbsd.org: src

2019-08-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/08/29 05:51:49

Modified files:
sys/dev/fdt: bcm2835_aux.c dwdog.c exrtc.c hidwusb.c 
 rkdwusb.c rsbvar.h sxirsb.c xhci_fdt.c 

Log message:
Capitalize my last name in copyright.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Gilles Chehade
CVSROOT:/cvs
Module name:src
Changes by: gil...@cvs.openbsd.org  2019/08/29 03:24:30

Modified files:
usr.sbin/smtpd : lka_proc.c 

Log message:
the latest commit introduced a regression in DATA filters

ok martijn@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2019/08/29 03:13:56

Modified files:
sys/net80211   : ieee80211_input.c 

Log message:
Always parse RSN/WPA IEs if the driver announces support for RSN.
Prevents WPA APs from appearing as non-WPA APs to the AP selection logic.

The decision whether or not to parse the IE was made as a side-effect
of a check for the highest mutually supported version of WPA.
We can safely assume that all our drivers support WPA versions <= 2
and parse the IE regardless of whether WPA is currently active or not.

ok mpi@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2019/08/29 02:55:06

Modified files:
share/man/man4 : ure.4 usb.4 
sys/dev/usb: if_ure.c if_urereg.h 

Log message:
Add support for RTL8153B after study of Linux r8152 driver.

Tested by myself, jcs@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Gilles Chehade
CVSROOT:/cvs
Module name:src
Changes by: gil...@cvs.openbsd.org  2019/08/29 02:49:55

Modified files:
usr.sbin/smtpd : lka_filter.c 

Log message:
the builtin filters matching used to be reversed, as in "function must not
match", because it made code smaller, however it also made it harder to
understand so it was reworked to have a function must match logic.

the check_fcrdns function was not reversed, fix it

spotted by otto@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2019/08/29 01:48:45

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

Log message:
Don't write to mbuf length fields before mbuf is removed from iwm(4) Rx ring.
Based on Dragonfly 96eaecf93d9f731459a0df8efc72cfad034320bd by Imre Vadasz
ok mpi@ procter@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2019/08/29 01:49:15

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

Log message:
fix iwm(4) frame length check to account for header in firmware rx packet
ok mpi@ procter@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/08/29 01:38:15

Modified files:
usr.bin/sndiod : dev.c 

Log message:
Split dev_close() routine in two parts.

The first part disconnects clients, the other closes the device
and frees audio buffers. No behavior change.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/08/29 01:35:25

Modified files:
usr.bin/sndiod : dev.c 

Log message:
Split dev_open() in two parts.

The first part resets audio parameters to the prefered ones, the
second part opens the device and allocates the audio buffers. No
behavior change.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2019/08/29 01:23:18

Modified files:
usr.sbin/smtpd : lka_report.c 

Log message:
Comment out the registration of smtp-out events.
These are currently under development and allowing them to be registered
might give the wrong idea of them working.

OK gilles@



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/08/29 01:19:15

Modified files:
usr.bin/sndiod : midi.c 

Log message:
Make debug printf in port_open() look as others



CVS: cvs.openbsd.org: src

2019-08-29 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/08/29 01:13:48

Modified files:
usr.bin/tmux   : cmd.c 

Log message:
It is not longer necessary to double-escape ; in %%%, problem reported
by Theo Buehler.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/08/29 01:11:28

Modified files:
usr.bin/sndiod : midi.h 

Log message:
Fix wrong comment about MIDI port hold flag



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/08/29 01:10:28

Modified files:
usr.bin/sndiod : dev.c midi.c 

Log message:
Move code de disconnect all MIDI clients to its own routine.

This makes the routine reusable, no behavior change.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/08/29 01:07:33

Modified files:
usr.bin/sndiod : dev.c 

Log message:
Move code de disconnect all audio clients to its own routine.

This makes the routine reusable, no behavior change.



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/08/29 01:05:47

Modified files:
usr.bin/sndiod : siofile.c 

Log message:
Uniformize device-specific debug printfs



CVS: cvs.openbsd.org: src

2019-08-29 Thread Alexandr Nedvedicky
CVSROOT:/cvs
Module name:src
Changes by: sas...@cvs.openbsd.org  2019/08/29 00:13:46

Modified files:
sys/net: pf.c 

Log message:
pf_state_insert() must grab state lock exclusively

ok bluhm@