CVS: cvs.openbsd.org: src

2020-05-28 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/28 23:51:19

Modified files:
lib/libpcap: pcap_open_live.3 

Log message:
from edgar pettijohn: correct return type in pcap_open_live.3;
ok djm



CVS: cvs.openbsd.org: src

2020-05-28 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/28 23:48:40

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

Log message:
remove a stray .El;



CVS: cvs.openbsd.org: src

2020-05-28 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2020/05/28 23:37:03

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

Log message:
mention that wildcards are processed in lexical order; bz#3165



CVS: cvs.openbsd.org: src

2020-05-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/05/28 22:45:57

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

Log message:
sync



CVS: cvs.openbsd.org: src

2020-05-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/05/28 22:42:25

Modified files:
sbin/sysctl: sysctl.c 
sys/arch/alpha/alpha: cpu.c 
sys/arch/amd64/amd64: bios.c cpu.c via.c 
sys/arch/amd64/pci: pchb.c 
sys/arch/arm64/dev: apm.c smbios.c 
sys/arch/armv7/omap: omrng.c 
sys/arch/hppa/dev: cpu.c 
sys/arch/hppa/gsc: harmony.c 
sys/arch/hppa/hppa: pmap.c 
sys/arch/i386/i386: apm.c bios.c cpu.c machdep.c via.c 
sys/arch/i386/pci: glxsb.c pchb.c 
sys/arch/loongson/dev: apm.c 
sys/arch/luna88k/luna88k: machdep.c 
sys/arch/macppc/macppc: cpu.c 
sys/arch/mips64/mips64: cpu.c 
sys/arch/octeon/dev: octrng.c 
sys/arch/octeon/octeon: machdep.c 
sys/arch/sparc64/dev: vrng.c 
sys/arch/sparc64/sparc64: cpu.c machdep.c 
sys/dev: rnd.c 
sys/dev/acpi   : acpi.c acpihve.c 
sys/dev/fdt: amlrng.c amlsm.c bcm2711_rng.c bcm2835_rng.c 
 mvrng.c rkrng.c sxisid.c 
sys/dev/ic : ccp.c 
sys/dev/pci: amdpm.c hifn7751.c safe.c ubsec.c 
sys/dev/pci/bktr: bktr_core.c 
sys/dev/pv : hyperv.c hypervic.c pvbus.c viornd.c vmmci.c 
 vmt.c xen.c 
sys/dev/usb: uonerng.c urng.c 
sys/dev/wscons : wsmouse.c 
sys/kern   : init_main.c kern_tc.c subr_disk.c tty.c 
sys/net: if.c 
sys/sys: systm.h 
Removed files:
sys/dev: rndvar.h 

Log message:
dev/rndvar.h no longer has statistical interfaces (removed during various
conversion steps).  it only contains kernel prototypes for 4 interfaces,
all of which legitimately belong in sys/systm.h, which are already included
by all enqueue_randomness() users.



CVS: cvs.openbsd.org: src

2020-05-28 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2020/05/28 22:32:26

Modified files:
regress/usr.bin/ssh: percent.sh 
regress/usr.bin/ssh/unittests/misc: tests.c 

Log message:
Add regression and unit tests for ${ENV} style environment variable
expansion in various keywords (bz#3140).  ok djm@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2020/05/28 22:25:40

Modified files:
usr.bin/ssh: misc.c misc.h readconf.c ssh.c ssh_config.5 

Log message:
Allow some keywords to expand shell-style ${ENV} environment
variables on the client side.  The supported keywords are
CertificateFile, ControlPath, IdentityAgent and IdentityFile, plus
LocalForward and RemoteForward when used for Unix domain socket
paths.  This would for example allow forwarding of Unix domain
socket paths that change at runtime.  bz#3140, ok djm@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/05/28 21:27:29

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

Log message:
pointless referencing .h files in SYNOPSIS



CVS: cvs.openbsd.org: src

2020-05-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/05/28 21:19:43

Modified files:
share/man/man9 : arc4random.9 

Log message:
add_random() died years ago.  additionally, remove other mistruths or
repetitive statements.



CVS: cvs.openbsd.org: src

2020-05-28 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2020/05/28 21:14:02

Modified files:
usr.bin/ssh: ssh-pkcs11.c 

Log message:
fix compilation on !HAVE_DLOPEN platforms; stub function was not
updated to match API change. From Dale Rahn via beck@ ok markus@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2020/05/28 21:11:54

Modified files:
usr.bin/ssh: ssh-keygen.c 

Log message:
fix exit status for downloading of FIDO resident keys; from
Pedro Martelletto, ok markus@



CVS: cvs.openbsd.org: src

2020-05-28 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2020/05/28 21:06:09

Modified files:
share/man/man9 : ifq_deq_begin.9 

Log message:
fix "STYLE: whitespace at end of input line"



CVS: cvs.openbsd.org: src

2020-05-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/05/28 19:22:53

Modified files:
sys/crypto : cryptosoft.c 
sys/kern   : kern_sysctl.c 

Log message:
rndvar.h not needed here



CVS: cvs.openbsd.org: src

2020-05-28 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2020/05/28 19:21:35

Modified files:
regress/usr.bin/ssh/unittests/misc: tests.c 

Log message:
Unit test for convtime. ok djm@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2020/05/28 19:20:46

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

Log message:
Fix multiplier in convtime when handling seconds after other units.
bz#3171, spotted by ronf at timeheart.net, ok djm@.



CVS: cvs.openbsd.org: src

2020-05-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/05/28 19:13:14

Modified files:
sys/dev: rnd.c 

Log message:
3 includes not needed



CVS: cvs.openbsd.org: src

2020-05-28 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2020/05/28 17:37:44

Modified files:
share/man/man9 : ifq_deq_begin.9 

Log message:
people can't know ifq_deq_begin is discouraged unless it's actually stated.



CVS: cvs.openbsd.org: src

2020-05-28 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2020/05/28 14:38:21

Modified files:
usr.sbin/wsmoused: Makefile 

Log message:
Enable building wsmoused on arm64 and armv7.

OK deraadt@, kettenis@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2020/05/28 14:33:50

Modified files:
usr.sbin/wsfontload: Makefile 

Log message:
Enable building wsfontload on arm64 and armv7.

OK deraadt@, kettenis@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2020/05/28 14:26:25

Modified files:
sys/arch/amd64/amd64: efifb.c 

Log message:
When calling rasops_init() in efifb_cnremap() and efifb_attach(), pass
EFIFB_HEIGHT and EFIFB_WIDTH instead of efifb_std_descr.n{rows,cols}.

Because the efifb resolution doesn't change, this ensures 'ri_emuwidth'
and 'ri_emuheight' will always get the same value when we remap and
later when we attach, so the text area is always displayed at the same
position.

This fixes display glitches happening on smaller screens or with larger
fonts, which caused the content previously displayed in the area that
was becoming margins when remapping to remain there.

OK jsg@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2020/05/28 14:24:26

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

Log message:
Enable scrollback in simplefb(4).

OK kettenis@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/05/28 13:09:31

Modified files:
sbin/iked  : ikev2.c 

Log message:
Move duplicate SA negotiation code to ikev2_sa_negotiate_common().

ok patrick@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2020/05/28 10:02:56

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

Log message:
A few stray 'ifa' overloadings.



CVS: cvs.openbsd.org: src

2020-05-28 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2020/05/28 09:48:29

Modified files:
sbin/fsdb  : fsdb.c 
sbin/newfs : mkfs.c 
sys/ufs/ffs: ffs_alloc.c ffs_vfsops.c 
sys/ufs/ufs: dinode.h inode.h 

Log message:
Make generation numbers unsigned and fill them using a random number
from the range [1..UINT_MAX] initially.  On inode re-use increment
and on wrap refill from the range [1..UINT_MAX-1] to avoid
assigning UINT_MAX (the original value). Zero still means uninitialized.
ok millert@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2020/05/28 09:45:10

Modified files:
sbin/dhclient  : kroute.c 

Log message:
Reduce 'ifa' overloading by renaming some parameters 'address'.



CVS: cvs.openbsd.org: src

2020-05-28 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2020/05/28 09:23:46

Modified files:
sbin/dhclient  : dhclient.c kroute.c privsep.h 

Log message:
Reduce 'ifa' overloading by renaming proposal field from 'ifa' to
'address'.



CVS: cvs.openbsd.org: src

2020-05-28 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2020/05/28 09:06:36

Modified files:
sys/arch/amd64/amd64: machdep.c 

Log message:
Call cninit() after parsing boot parameter to make cninit() possible
to select the VGA or the EFI framebuffer properly.  Previous
initializes VGA unconditionally, it caused serious problems like the
video distortion and so on.  As a downside of this commit, some early
panic or debug messages will not be displayed.

test Andrew Daugherity, jsg
ok jsg kettenis



CVS: cvs.openbsd.org: src

2020-05-28 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2020/05/28 01:21:56

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

Log message:
Use MSI-X interrupts where available, and rearrange structures to allow
for multi-queue operation.  Vector 0 is used for events, and the
subsequent vectors are mapped to a tx and rx queue each.

tested on esxi 6.7 and qemu by me, and on vmware fusion by dlg@
ok dlg@



CVS: cvs.openbsd.org: src

2020-05-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2020/05/28 01:17:50

Modified files:
sys/kern   : uipc_syscalls.c 

Log message:
File allocation in socket(2) & socketpair(2) no longer need the KERNEL_LOCK().

Bring the two syscalls in sync with recent MP changes in the file layer.

Inconsistency pointed by haesbaert@.

ok anton@, visa@