CVS: cvs.openbsd.org: src

2018-07-11 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/07/11 23:54:49

Modified files:
share/man/man5 : pf.conf.5 

Log message:
syncookies never is the default; from paul de weerd
ok henning



CVS: cvs.openbsd.org: src

2018-07-11 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/07/11 22:35:25

Modified files:
usr.bin/ssh: authfd.h 

Log message:
remove prototype to long-gone function



CVS: cvs.openbsd.org: src

2018-07-11 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2018/07/11 19:23:38

Modified files:
lib/libc/gen   : sysconf.c 
lib/libc/sys   : sysctl.2 
lib/libcxx/src : thread.cpp 
sys/kern   : kern_pledge.c kern_sched.c kern_sysctl.c 
sys/sys: proc.h sched.h sysctl.h 

Log message:
Add hw.ncpuonline to count the number of online CPUs.

The introduction of hw.smt means that logical CPUs can be disabled
after boot and prior to suspend/resume.  If hw.smt=0 (the default),
there needs to be a way to count the number of hardware threads
available on the system at any given time.

So, import HW_NCPUONLINE/hw.ncpuonline from NetBSD and document it.
hw.ncpu becomes equal to the number of CPUs given to sched_init_cpu()
during boot, while hw.ncpuonline is equal to the number of CPUs available
to the scheduler in the cpuset "sched_all_cpus". Set_SC_NPROCESSORS_ONLN
equal to this new sysctl and keep _SC_NPROCESSORS_CONF equal to hw.ncpu.

This is preferable to adding a new sysctl to count the number of
configured CPUs and keeping hw.ncpu equal to the number of online
CPUs because such a change would break software in the ecosystem
that relies on HW_NCPU/hw.ncpu to measure CPU usage and the like.
Such software in base includes top(1), systat(1), and snmpd(8),
and perhaps others.

We don't need additional locking to count the cardinality of a cpuset
in this case because the only interfaces that can modify said cardinality
are sysctl(2) and ioctl(2), both of which are under the KERNEL_LOCK.

Software using HW_NCPU/hw.ncpu to determine optimal parallism will need
to be updated to use HW_NCPUONLINE/hw.ncpuonline.  Until then, such software
may perform suboptimally.  However, most changes will be similar to the
change included here for libcxx's std::thread:hardware_concurrency():
using HW_NCPUONLINE in lieu of HW_NCPU should be sufficient for determining
optimal parallelism for most software if the change to _SC_NPROCESSORS_ONLN
is insufficient.

Prompted by deraadt. Discussed at length with kettenis, deraadt, and sthen.
Lots of patch tweaks from kettenis.

ok kettenis, "proceed" deraadt



CVS: cvs.openbsd.org: src

2018-07-11 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2018/07/11 15:49:37

Modified files:
etc: rc 

Log message:
Explicitly call "/etc/rc.d/vmd stop". This issues graceful shutdown commands
to running VMs (at least for OpenBSD ones), but the stop routine for system
daemons is not usually called at shutdown.

Earlier version with just "vmd stop" ok reyk@ kn@, ajacoutot@ reminded me
to hide the contextless "vmd(ok)" text which looks bad, I did so and wrapped
it with a "stopping VMs" message (it can take some time, especially when you
have multiple VMs, so better to have some clear feedback).



CVS: cvs.openbsd.org: src

2018-07-11 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 15:29:05

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

Log message:
check string lengths in vm_start



CVS: cvs.openbsd.org: src

2018-07-11 Thread Nayden Markatchev
CVSROOT:/cvs
Module name:src
Changes by: nay...@cvs.openbsd.org  2018/07/11 15:18:23

Modified files:
sys/net: if_pppx.c pf_if.c 
sys/net80211   : ieee80211.c ieee80211_mira.c 
sys/netinet: in.c 
sys/netinet6   : nd6.c 

Log message:
Disambiguate the source of panics in sys/net* by adding __func__
magic constant to panic() calls.
ok benno@ henning@ tb@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2018/07/11 15:10:07

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

Log message:
The routing table bgpd runs in needs to be a routing domain.
ok claudio henning



CVS: cvs.openbsd.org: src

2018-07-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/07/11 14:38:57

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

Log message:
Remove RTM_LOSING from the file, it is no longer used by OpenBSD and
route6d is not realy using it anyway.
OK henning@



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 14:28:41

Modified files:
app/xenodm/xenodm: session.c 

Log message:
pledges for session can be tighten a bit now.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/07/11 14:24:36

Added files:
regress/usr.bin/lam: Makefile expect_Fback.txt expect_fonly.txt 
 expect_noarg.txt expect_pminus.txt 
 expect_stdio.txt in1.txt in2.txt in3.txt 

Log message:
some regression tests for lam(1) including width measurements;
will be fixed soon and then linked to the build



CVS: cvs.openbsd.org: src

2018-07-11 Thread Peter Hessler
CVSROOT:/cvs
Module name:src
Changes by: phess...@cvs.openbsd.org2018/07/11 14:18:09

Modified files:
sbin/ifconfig  : ifconfig.8 ifconfig.c 
sys/net80211   : ieee80211_ioctl.c ieee80211_ioctl.h 
 ieee80211_node.c ieee80211_node.h 
 ieee80211_var.h 

Log message:
Introduce 'auto-join' to the wifi 802.11 stack.

This allows a system to remember which ESSIDs it wants to connect to, any
relevant security configuration, and switch to it when the network we are
currently connected to is no longer available.

Works when connecting and switching between WPA2/WPA1/WEP/clear encryptions.

example hostname.if:
join home wpakey password
join work wpakey mekmitasdigoat
join open-lounge
join cafe wpakey cafe2018
join "wepnetwork" nwkey "12345"
dhcp
inet6 autoconf
up

OK stsp@ reyk@
and enthusiasm from every hackroom I've been in for the last 3 years



CVS: cvs.openbsd.org: src

2018-07-11 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2018/07/11 14:07:55

Modified files:
sys/arch/amd64/amd64: identcpu.c pmap.c 
sys/arch/amd64/include: cpu.h 

Log message:
Declare cpu_meltdown in 



CVS: cvs.openbsd.org: src

2018-07-11 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/07/11 14:01:56

Modified files:
regress/sys/kern/unveil: syscalls.c 

Log message:
regress to check nested subdirs and ..'s



CVS: cvs.openbsd.org: src

2018-07-11 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2018/07/11 13:52:19

Modified files:
sys/net: route.c 

Log message:
superfluous newline



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 13:51:12

Modified files:
app/xenodm/xenodm: auth.c 

Log message:
The file descriptor parameter is not used by DefineSelf() in xenodm.
Zap it.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/07/11 13:28:16

Modified files:
sys/kern   : kern_sig.c 
sys/sys: signalvar.h 

Log message:
If no thread can immediately handle a signal, which has been sent
to the process, it is made pending at the main thread.  There it
could hang forever.  So also check the main thread for signal
delivery.  This workaround fixes hung tests in posixtestsuite.  The
proper solution would be to split pending signals for process and
threads.
input visa@; OK guenther@



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 13:20:40

Modified files:
app/xenodm/config: TakeConsole GiveConsole 

Log message:
sessreg -x is useless if not updating utmp. Remove it.
Also don't try to remove utmp lines that were not written.



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 13:09:16

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

Log message:
sync



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 13:06:29

Modified files:
app/xenodm/xenodm: error.c 

Log message:
Ooops I didn't intend to commit that part. revert it.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/07/11 13:05:41

Modified files:
usr.sbin/bgpd  : rde.h rde_attr.c rde_rib.c 

Log message:
improve the path hash function (instead of just hashing the aspath put
most other attrs into the hash as well). At the same time use the full
64 bit of SipHash in various places.
Tested by and OK benno@ phessler@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/07/11 13:05:25

Modified files:
usr.sbin/rad   : engine.c frontend.c rad.c rad.h 

Log message:
cleanly shutdown by sending advertisement with lifetime 0



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 13:05:22

Modified files:
app/xenodm : aclocal.m4 configure 
app/xenodm/config: Makefile.in 
app/xenodm/xenodm: error.c 
Removed files:
app/xenodm/config: Xreset.in Xstartup.in 

Log message:
Actually remove the source files for Xstartup and Xreset



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 13:03:50

Modified files:
app/xenodm : Makefile.bsd-wrapper configure.ac 
app/xenodm/config: Makefile.am 

Log message:
Remove Xstartup and Xreset script. Xenodm uses GiveConsole and TakeConsole



CVS: cvs.openbsd.org: src

2018-07-11 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2018/07/11 12:55:11

Modified files:
usr.bin/ssh: auth2-chall.c auth2-pubkey.c sshconnect2.c 

Log message:
treat ssh_packet_write_wait() errors as fatal; ok djm@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2018/07/11 12:53:29

Modified files:
usr.bin/ssh: auth2.c channels.c clientloop.c kex.h monitor.c 
 monitor_wrap.c monitor_wrap.h mux.c servconf.c 
 serverloop.c session.c ssh.c sshconnect.c 
 sshconnect2.c sshd.c 
usr.bin/ssh/ssh: Makefile 
usr.bin/ssh/ssh-agent: Makefile 
usr.bin/ssh/sshd: Makefile 
Removed files:
usr.bin/ssh: key.c key.h 

Log message:
remove legacy key emulation layer; ok djm@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2018/07/11 12:45:45

Modified files:
share/man/man7 : hier.7 

Log message:
Remove the i386 specific mention for pcvtfonts, they are also installed
on alpha and amd64.

No objection from jmc@.

OK deraadt@, sthen@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/11 12:08:05

Modified files:
sys/arch/i386/stand/boot: conf.c 
sys/arch/i386/stand/cdboot: conf.c 
sys/arch/i386/stand/libsa: machdep.c 
sys/arch/i386/stand/pxeboot: conf.c 

Log message:
Detect vmm(4) in the bootloader and automatically switch to the serial
console at 115200 baud.

ok deraadt



CVS: cvs.openbsd.org: src

2018-07-11 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/11 12:06:25

Modified files:
sbin/pfctl : parse.y 

Log message:
Prevent invalid interface specifiers on queue rules

pf.conf(5) states that queues attach to actual interfaces only, yet the
following parses:

# echo queue eq on egress bandwidth 1G default | pfctl -f-
# pfctl -sq
pfctl: DIOCGETQSTATS: Bad file descriptor

# echo queue rq on rdomain 0 bandwidth 1G default | pfctl -vf-
queue rq bandwidth 1G default
# pfctl -sq
pfctl: DIOCGETQSTATS: Bad file descriptor

On rdomains, ifa_exists() returns NULL.
On interface groups, ifa_exists() returns non-NULL but af is never set
to AF_LINK.

OK henning sashan



CVS: cvs.openbsd.org: src

2018-07-11 Thread Nayden Markatchev
CVSROOT:/cvs
Module name:src
Changes by: nay...@cvs.openbsd.org  2018/07/11 12:04:18

Modified files:
sys/arch/amd64/amd64: vmm.c 
sys/arch/i386/i386: vmm.c 

Log message:
adding __func__ identifier to panic() calls in vmm.c for amd64 and i386
ok mlarkin@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/11 11:44:57

Modified files:
sys/ufs/ffs: ffs_vfsops.c 

Log message:
Prevent updating async option on softdep mount

`mount -uo async,nosoftdep /mnt' would set "async" but keep "softdep"
untouched on a read/write mount.

OK deraadt krw beck bluhm



CVS: cvs.openbsd.org: src

2018-07-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/07/11 11:35:07

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

Log message:
Bump some of the hash table size to more resonable numbers.
Still probably not optimal but less bad.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/07/11 11:32:05

Modified files:
usr.sbin/rad   : engine.c frontend.c rad.h 

Log message:
Send a RA with router lifetime of 0 when an interface is removed from
the config.

RFC 4861, 6.2.5:
[...] the router SHOULD transmit one or more (but not more than
MAX_FINAL_RTR_ADVERTISEMENTS) final multicast Router Advertisements on
the interface with a Router Lifetime field of zero.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/07/11 11:21:57

Modified files:
usr.sbin/vmctl : vmctl.8 

Log message:
remove useless macro;



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 10:57:04

Modified files:
app/xenodm/xenodm: dm.c 

Log message:
Keep a better trace of pending children to be reaped.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/07/11 10:53:14

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

Log message:
"running tags"



CVS: cvs.openbsd.org: src

2018-07-11 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 10:43:24

Modified files:
usr.sbin/vmd   : parse.y 

Log message:
sort tokens



CVS: cvs.openbsd.org: src

2018-07-11 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2018/07/11 10:38:03

Modified files:
gnu/usr.bin/cvs: Makefile.bsd-wrapper 

Log message:
do not pick up groff from /usr/local/bin in configure, noticed by benno@;
ok benno@ jca@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 10:37:31

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

Log message:
style - indent each case statement in a switch.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/07/11 10:35:37

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

Log message:
Print out the hash info sent by the RDE in bgpctl show rib mem
OK phessler@ benno@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/07/11 10:34:36

Modified files:
usr.sbin/bgpd  : bgpd.h rde.c rde.h rde_attr.c rde_rib.c 
 session.c 

Log message:
On IMSG_CTL_SHOW_RIB_MEM also send back information of some of the
hash structures used in the RDE. Makes it fairly obvious that more
is needed in that area.
OK phessler@ benno@



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 10:33:44

Modified files:
app/xenodm/xenodm: netaddr.c 

Log message:
Delete unused code



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 10:28:54

Modified files:
app/xenodm/man : xenodm.man 
app/xenodm/greeter: Login.c 

Log message:
Bind Escape to erase-line by default.



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 10:26:25

Modified files:
app/xenodm/greeter: Login.c 

Log message:
Less ifdef cruft.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/07/11 10:25:39

Modified files:
regress/sys/kern/unveil: syscalls.c 

Log message:
test changed stat lying semantics - we don't lie about files



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 10:20:21

Modified files:
app/xenodm/greeter: greet.c verify.c 

Log message:
use strvis on login name when logging debug information  it since it
may contain control characters. And remove an extra logging of the same.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/07/11 10:11:39

src/regress/usr.bin/lam

Update of /cvs/src/regress/usr.bin/lam
In directory cvs.openbsd.org:/tmp/cvs-serv54065/lam

Log Message:
Directory /cvs/src/regress/usr.bin/lam added to the repository



CVS: cvs.openbsd.org: src

2018-07-11 Thread Remi Locherer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 09:41:19

Modified files:
usr.sbin/ospfd : printconf.c 

Log message:
Print the rdomain config option if present.

ok kn@ tb@ deraadt@ sthen@ jca@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/11 09:25:42

Modified files:
sbin/route : route.c 

Log message:
Use AF_UNSPEC not 0



CVS: cvs.openbsd.org: src

2018-07-11 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/07/11 08:57:58

Modified files:
regress/sbin/pfctl: pf101.loaded pf101.ok pf101.optimized 
pf103.ok pf15.loaded pf15.ok pf15.optimized 
pf39.loaded pf39.ok pf39.optimized 

Log message:
Some spaces have been removed from pfctl print.  Adapt expected
output in regress.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/07/11 08:51:01

Modified files:
usr.sbin/cron  : client.c pathnames.h 

Log message:
retire the old cron socket path; ok jca millert



CVS: cvs.openbsd.org: src

2018-07-11 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/11 08:48:40

Modified files:
sys/arch/amd64/stand/boot: conf.c 
sys/arch/amd64/stand/cdboot: conf.c 
sys/arch/amd64/stand/libsa: machdep.c 
sys/arch/amd64/stand/pxeboot: conf.c 

Log message:
Detect vmm(4) in the bootloader and automatically switch to the serial
console at 115200 baud.

tested by phessler and myself, ok deraadt



CVS: cvs.openbsd.org: src

2018-07-11 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/07/11 08:35:37

Modified files:
regress/sys/kern/unveil: syscalls.c 

Log message:
Regress update to match changes for chrome



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2018/07/11 08:35:46

Modified files:
app/xenodm/xenodm: server.c 

Log message:
Restore previous SIGCHLD handler in serverPause().

This fixes the issue where xenodm whould stay stuck after kill the
Xserver twice.

While here add some more Debug() calls to help following what's going on



CVS: cvs.openbsd.org: src

2018-07-11 Thread Stefan Fritsch
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2018/07/11 08:20:18

Modified files:
sys/net: if_vlan.c 

Log message:
Fix comment about VLAN encapsulation and checksum offload

Document that some chips actually could do hardware checksum offload for
encapsulated packets, though that would need special handling in those
drivers.

discussions and ok naddy@



CVS: cvs.openbsd.org: www

2018-07-11 Thread Klemens Nanni
CVSROOT:/cvs
Module name:www
Changes by: k...@cvs.openbsd.org2018/07/11 08:17:09

Modified files:
faq/ports  : guide.html 

Log message:
Fix old style example

bsd.port.mk(5) will throw a fatal error on on `::'.

While here, use $V consistently.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2018/07/11 08:08:46

Modified files:
usr.sbin/bgpd  : bgpd.conf.5 bgpd.h kroute.c parse.y printconf.c 

Log message:
add option "network ... priority number" to announce prefixes from the
kernel routing table selected by priority.
For example to import all ospfd/ospf6d routes into bgp.
tested by remi@
ok remi@ henning@ and maybe a little claudio@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/07/11 08:03:13

Modified files:
usr.sbin/rad   : engine.c frontend.c rad.h 

Log message:
Detect when a router advertisement packet changes due to config
change and if it does send a new advertisement.

The way this is implemented gives us various things for free:
- periodic sending of router advertisements
- send initial advertisement for every interface on startup



CVS: cvs.openbsd.org: src

2018-07-11 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/07/11 08:01:44

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

Log message:
no longer needed



CVS: cvs.openbsd.org: src

2018-07-11 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/11 07:57:53

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

Log message:
Sync comment

Makes it a tad easier to read through and compare with BN_swap_ct().

OK tb



CVS: cvs.openbsd.org: src

2018-07-11 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 07:19:47

Modified files:
etc/rc.d   : vmd 
usr.sbin/vmd   : config.c control.c vmd.c vmd.h vmm.c 
usr.sbin/vmctl : main.c vmctl.8 vmctl.c vmctl.h 

Log message:
Add -w option to vmctl stop to wait for completion of VM termination.

Use it in /etc/rc.d/vmd accordingly.

OK sthen@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/11 07:19:42

Modified files:
sys/arch/amd64/amd64: vmm.c 
sys/arch/amd64/include: vmmvar.h 

Log message:
vmm(4): return proper cache topology for cpuid(0x4)

Make the cache neighbor fields match the number of VCPUs present
(currently 1)

ok reyk



CVS: cvs.openbsd.org: src

2018-07-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/07/11 07:08:00

Modified files:
sys/netinet: in_pcb.c 

Log message:
Retire RTM_LOSING, it no longer makes sense and on busy servers the
route socket is flooded with those messages. Instead maek sure that the
removal of the dynamic route that can happen is actually also sent to
the routing socket.
OK mpi@ henning@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/07/11 07:06:16

Modified files:
sys/netinet: ip_icmp.c 
sys/netinet6   : icmp6.c 

Log message:
rtm_send() the cloned routes because of ICMP mtu changes. Until now
these changes to the routing table have not been visible whereas the
RTM_DELETE of those routes have been. Remove this inconsistency.
Input and OK mpi@
OK henning@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/11 06:55:01

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

Log message:
vmm(4): respect argument size when reading from undefined ports.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/11 06:45:01

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

Log message:
vmm(4): small cleanup in vm_rwregs.

Clarify error values and change a panic into a debug printf (which will
in turn just kill the VM).



CVS: cvs.openbsd.org: src

2018-07-11 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/07/11 06:38:46

Modified files:
lib/libc/regex : engine.c regexec.c 

Log message:
Drop a const-bomb on regexec. It's probably not a good idea to remove a
const promise when processing it in the regex engine.

Minor tweak and OK schwarze@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/11 06:21:37

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

Log message:
When in incremental search handle ^M (a.k.a. ) like ^[ (a.k.a.
). i.e. exit incremental search and set the mark. This is what
emacs does.

pointers, suggestions and ok florian@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Remi Locherer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 06:09:34

Modified files:
usr.sbin/ospfctl: ospfctl.c 
usr.sbin/ospfd : ospfd.c 

Log message:
Change the control socket to ospfd.sock..

ok friehm@ jca@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/07/11 05:42:17

Modified files:
usr.bin/lam: lam.c 

Log message:
After opening all the needed files, tighten the pledge(2)
from "stdio rpath" to just "stdio", before parsing any user data.
It may not matter that much just yet, but parsing will become
slightly more complicated soon when i shall add UTF-8 handling.
OK millert@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2018/07/11 05:39:31

Modified files:
sys/net: pf.c 

Log message:
the STATE_LOOKUP macro made sense ages ago. It stopped making sense
when we moved most of the functionality into a function. g/c the macro
and just call the function. ok mpi jca



CVS: cvs.openbsd.org: src

2018-07-11 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/07/11 05:35:06

Modified files:
usr.bin/lam: lam.c 

Log message:
Repair the regression introduced by the recent refactoring
revision 1.11 date: 2004/07/03 21:00:37;
for -p/-P, the argument was no longer parsed, causing segfaults.
OK millert@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 04:31:45

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

Log message:
Rename function to vmd_check_vmh



CVS: cvs.openbsd.org: src

2018-07-11 Thread Remi Locherer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 04:23:47

Modified files:
usr.sbin/ospf6d: parse.y 

Log message:
remove wrong comment

ok jca@ tb@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/07/11 03:57:59

Modified files:
usr.sbin/pkg_add: pkg_mklocatedb 

Log message:
allow default from state



CVS: cvs.openbsd.org: src

2018-07-11 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/07/11 03:54:49

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

Log message:
allow state->new to deduce the command name from $0



CVS: cvs.openbsd.org: src

2018-07-11 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/11 03:35:44

Modified files:
usr.sbin/vmctl : main.c vmctl.8 vmctl.c vmctl.h 
usr.sbin/vmd   : control.c vmd.c vmd.h vmm.c 

Log message:
Add -f option to vmctl stop to forcefully kill a VM.

This also fixes a bug in vmm_sighdlr where it might have missed
forwarding the TERMINATE_EVENT to the vmd parent after a VM child
died, leading to an abandoned VM in the vmd parent process.

OK ccardenas@ mlarkin@ benno@ kn@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2018/07/11 03:08:21

Modified files:
sys/net: if.c 

Log message:
in if_addgroup(), call the new pfi_group_addmember() instead of
pf_group_change() - the latter is called by _addmemeber now to update dynaddr.
before this, "set skip on lo", ifconfig lo1 create -> no skip on lo1 until
pf rueset got reloaded. Now lo1 gets the skip flag as intended. This has
caused much confusion with i. e. gif interfaces in the past.
ok benno, very excited ok phessler



CVS: cvs.openbsd.org: src

2018-07-11 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/07/11 03:07:59

Modified files:
sys/netinet: ip_ah.c ip_esp.c ip_ipcomp.c ip_ipsp.h 
 ipsec_input.c 

Log message:
Convert AH & IPcomp to ipsec_input_cb() and count drops on input.

ok markus@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2018/07/11 03:05:51

Modified files:
sys/net: pf_if.c pfvar.h 

Log message:
provide pfi_group_addmember(), which makes the new member interface inherit
set flags from the group. ok phessler benno



CVS: cvs.openbsd.org: src

2018-07-11 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/07/11 02:47:03

Modified files:
usr.sbin/rad   : parse.y 

Log message:
there is nothing secret about rad.conf



CVS: cvs.openbsd.org: src

2018-07-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/07/11 02:42:38

Modified files:
lib/libcrypto/man: EC_POINT_add.3 

Log message:
Document behavior change of EC_POINTs_mul(3) from EC constant time changes.

ok beck on earlier version, markup help from Schwarze.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/07/11 02:31:48

Modified files:
etc: rc 

Log message:
Don't hide errors when IPv6 forwarding is not enabled.
OK(failed) phessler
OK deraadt



CVS: cvs.openbsd.org: src

2018-07-11 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/07/11 02:29:21

Modified files:
usr.bin/tmux   : cmd-load-buffer.c cmd-save-buffer.c 

Log message:
Expand formats in load-buffer and save-buffer.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/07/11 02:19:35

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

Log message:
s/wuth/with/ in comment



CVS: cvs.openbsd.org: src

2018-07-11 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/07/11 01:59:16

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

Log message:
sync



Re: CVS: cvs.openbsd.org: src

2018-07-11 Thread Theo Buehler
On Tue, Jul 10, 2018 at 11:45:52AM -0600, Theo Buehler wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   t...@cvs.openbsd.org2018/07/10 11:45:52
> 
> Modified files:
>   gnu/usr.bin/cvs/diff: diff3.c side.c 
>   gnu/usr.bin/cvs/lib: getline.c regex.c 
>   gnu/usr.bin/cvs/src: admin.c hash.c 
> 
> Log message:
> Fix a few, but not all, clang warnings: Use "%s" to print modifiable
> strings, add a couple of braces, ansify a few functions, add and remove
> a few extra parens.
> 
> ok jcs
> 

also ok stsp



CVS: cvs.openbsd.org: src

2018-07-11 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/11 01:39:22

Modified files:
bin/chio   : parse.y 
sbin/iked  : parse.y 
sbin/ipsecctl  : parse.y 
sbin/pfctl : parse.y 
usr.bin/doas   : parse.y 
usr.sbin/acme-client: parse.y 
usr.sbin/dvmrpd: parse.y 
usr.sbin/eigrpd: parse.y 
usr.sbin/hostapd: parse.y 
usr.sbin/httpd : parse.y 
usr.sbin/ifstated: parse.y 
usr.sbin/iscsictl: parse.y 
usr.sbin/ldapd : parse.y 
usr.sbin/ldpd  : parse.y 
usr.sbin/lpd   : parse.y 
usr.sbin/ospf6d: parse.y 
usr.sbin/ospfd : parse.y 
usr.sbin/relayd: parse.y 
usr.sbin/ripd  : parse.y 
usr.sbin/smtpd : parse.y 
usr.sbin/snmpd : parse.y 
usr.sbin/switchd: parse.y 
usr.sbin/vmd   : parse.y 
usr.sbin/ypldap: parse.y 

Log message:
Do for most running out of memory err() what was done for most running
out of memory log_warn(). i.e. ("%s", __func__) instead of manual
function names and redundant verbiage about which wrapper detected the
out of memory condition.

ok henning@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/07/11 01:38:00

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

Log message:
Turn yesterday's optimistic ! in an XXX comment into a more cautious ?



CVS: cvs.openbsd.org: src

2018-07-11 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/07/11 01:03:03

Modified files:
sbin/mount_tmpfs: mount_tmpfs.c 

Log message:
Using resolved after realpath(3) has failed is dangerous. Don't do it!

Minor tweak and OK jca@
OK beck@ deraadt@



CVS: cvs.openbsd.org: xenocara

2018-07-11 Thread Mark Kettenis
CVSROOT:/cvs
Module name:xenocara
Changes by: kette...@cvs.openbsd.org2018/07/11 00:59:03

Modified files:
lib/libxshmfence/src: xshmfence_alloc.c 

Log message:
Use __MAP_NOFAULT such that a client cannot use ftruncate and make the
X server crash.

ok deraadt@, matthieu@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/07/11 00:57:18

Modified files:
usr.bin/sed: main.c 

Log message:
Make the output of the list command more sensible for the output device.
We now output $COLUMNS - 8 characters of the string and a newline.
This is similar to the behaviour in ed(1).

Discussed with and OK schwarze@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/07/11 00:51:39

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

Log message:
Helper function to shorten history.



Re: CVS: cvs.openbsd.org: src

2018-07-11 Thread Martijn van Duren
On 07/11/18 08:47, Martijn van Duren wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   mart...@cvs.openbsd.org 2018/07/11 00:47:39
> 
> Modified files:
>   usr.bin/sed: sed.1 
> 
> Log message:
> Rephrase the wording on the replacement string of the substitute command.
> Cover more cases with less wording.
> 
> Joint work with schwarze@
> 
> OK millert@
> 
s/millert/jmc/
Mornings...



CVS: cvs.openbsd.org: src

2018-07-11 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/07/11 00:48:58

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

Log message:
implement media type detection and forcing of link speed, lightly tested
with a variety of 10g optics.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/07/11 00:47:39

Modified files:
usr.bin/sed: sed.1 

Log message:
Rephrase the wording on the replacement string of the substitute command.
Cover more cases with less wording.

Joint work with schwarze@

OK millert@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/07/11 00:43:45

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

Log message:
Add function comments.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/07/11 00:43:30

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

Log message:
move declarations of hwrm message functions up to the top and make them
non-static.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/07/11 00:39:57

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

Log message:
don't bother checking the rx index matches what we expect, it works
properly.



CVS: cvs.openbsd.org: src

2018-07-11 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/07/11 00:39:23

Modified files:
usr.bin/vi/common: util.c 

Log message:
Remove an old and false comment. REALLOC now free(3)s the code if realloc
fails.

OK millert@



CVS: cvs.openbsd.org: src

2018-07-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/07/11 00:16:40

Modified files:
regress/lib/libcrypto/ec: ectest.c 

Log message:
Update EC regression tests.

Part of https://github.com/libressl-portable/openbsd/pull/94
from Billy Brumley and his team.

ok jsing



  1   2   >