CVS: cvs.openbsd.org: src

2016-12-19 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2016/12/20 00:32:18

Modified files:
gnu/usr.bin/clang: Makefile.inc 

Log message:
Compile clang with clang by default instead of egcc.  This allows our
build system to selfhost itself after the initial clang bootstrap
without relying on an external compiler.  Setting BOOTSTRAP_CLANG
allows bootstrapping clang with egcc.

ok kettenis@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2016/12/20 00:05:24

Modified files:
sys/arch/amd64/amd64: vmm_support.S 

Log message:
Fix operand of pushq instruction; clang's integrated assembler is less
forgiving than gas and insists that we use a 64-bit integer.  No binary
change.

ok mlarkin@



CVS: cvs.openbsd.org: www

2016-12-19 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/12/19 21:37:27

Modified files:
faq: faq4.html 

Log message:
add back instructions on fetching the PBR that were lost during some overly
aggressive pruning by me.  while there, remove a reference to the ntloader.

from nick holland



CVS: cvs.openbsd.org: src

2016-12-19 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2016/12/19 16:50:41

Modified files:
lib/libcxxabi  : Makefile 
lib/libcxx : Makefile 

Log message:
Compile libc++ and libc++abi with clang by default instead of egcc.
This allows our build system to selfhost itself after the initial
clang bootstrap without relying on an external compiler.

with input from and ok kettenis@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2016/12/19 15:35:23

Modified files:
regress/usr.bin/ssh: allow-deny-users.sh 

Log message:
use standard /bin/sh equality test; from Mike Frysinger



CVS: cvs.openbsd.org: www

2016-12-19 Thread Damien Miller
CVSROOT:/cvs
Module name:www
Changes by: d...@cvs.openbsd.org2016/12/19 14:26:22

Modified files:
openssh: releasenotes.html 
openssh/txt: release-7.4 

Log message:
typo in release notes: DisableForwaring => DisableForwarding
spotted by espie@ and Jann Horn



CVS: cvs.openbsd.org: src

2016-12-19 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/19 14:08:57

Modified files:
sys/dev/pv : if_xnf.c 

Log message:
Implement interface detaching



CVS: cvs.openbsd.org: src

2016-12-19 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/19 14:07:10

Modified files:
sys/dev/pv : xen.c xenvar.h 

Log message:
Add experimental support for device hot-plugging

We're installing watches on all nodes under "device/" and re-scan
the subtree every time the watch is triggered looking for changes
in the output.  Tested with xnf(4) and xbf(4), helpful hints from
Roger Pau Monne, thanks!



CVS: cvs.openbsd.org: src

2016-12-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 13:53:57

Modified files:
gnu/gcc/gcc/config/m88k: m88k.md 

Log message:
Convert the gcc 3 scheduling information to the gcc 4 model.



CVS: cvs.openbsd.org: src

2016-12-19 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2016/12/19 13:03:15

Modified files:
sys/arch/amd64/amd64: acpi_wakecode.S mptramp.S 

Log message:
Generating mixed 16-bit/32-bit/64-bit code with clang's integrated
assembler is a bit tricky.  It supports the .code16, .code32 and
.code64 directives.  But it doesn't know about the data16/data32 and
addr16/addr32 instruction prefixes.  Instead it tries to determine
those from the instruction opcode.  It mostly succeeds, but there are
a couple of corner cases where clang will generate the "addr32" form
where gas generates the "addr16" form in .code16 segments.  That
should be no problem (and just waste a couple of bytes), but it makes
comparing the generated code a bit difficult.

Allow the trampoline code to be compiled with both.  For clang #define
away the addr32 prefix and avoid using the data32 prefix by using a
mnemonic that explicitly encodes the size of the operand.  Add a few
addr32 prefixes in .code16 blocks to reduce the differences between
code generated by clang and gas.

ok patrick@, deraadt@, mlarkin@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/12/19 12:59:39

Modified files:
distrib/miniroot: install.sub 

Log message:
Revert r1.934 to unbreak autoinstall



CVS: cvs.openbsd.org: src

2016-12-19 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/12/19 11:52:54

Modified files:
distrib/miniroot: install.sub 

Log message:
- no need to export the TERM variable twice
- re-format case-block
- unquote single word default answer
- use 'break' instead of return to leave (same effect here, but
needed later when the function is no function anymore)
- use -q option with kbd to limit output to warnings/errors only

discussed with and OK krw@ tb@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2016/12/19 11:30:50

Modified files:
lib/csu: boot.h 
gnu/lib/libreadline: histfile.c 

Log message:
A couple more unused variables.

tweak & ok kettenis@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 08:57:30

Modified files:
sys/net: ppp_tty.c 

Log message:
Stop mentioning splsoftnet() in comments, it's almost history.



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 08:51:53

Modified files:
sys/net: pipex.c 

Log message:
Kill useless comment about splsoftnet() which is going away.



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 08:50:18

Modified files:
sys/net: if_gre.c 

Log message:
Sending keep alive ends up in ip_output(), so it needs the NET_LOCK().

ok bluhm@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 08:49:28

Modified files:
sys/net: if_bridge.c 

Log message:
Assert that IPL_SOFTNET is needed rather than calling splsoftnet()
recursively.

ok bluhm@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 08:47:19

Modified files:
sys/netinet: udp_usrreq.c 
sys/netinet6   : udp6_output.c 

Log message:
Remove redundant splsoftnet().

ok bluhm@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 08:46:28

Modified files:
sys/net: if_pfsync.c 

Log message:
Timer sending packets need to grab the NET_LOCK().

ok bluhm@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/19 08:37:27

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

Log message:
fix typo, from OpenSSL

commit 0b742f93ea7882a447f6523ac56a6f847d9f8e92
Author: Finn Hakansson 
Date:   Thu Dec 15 12:58:19 2016 -0500



CVS: cvs.openbsd.org: xenocara

2016-12-19 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2016/12/19 07:17:26

Modified files:
app/cwm: client.c 

Log message:
When a window has a user or program specified position, ensure the edge of the
final position is at least viewable and warp'able by the difference of bwidth;
prevents mapping windows completely off the virtual screen.



CVS: cvs.openbsd.org: www

2016-12-19 Thread Damien Miller
CVSROOT:/cvs
Module name:www
Changes by: d...@cvs.openbsd.org2016/12/19 06:42:50

Modified files:
build  : Makefile 
build/mirrors  : openssh-ftp.html.head 
openssh: ftp.html index.html openbsd.html 
 releasenotes.html 

Log message:
openssh-7.4



CVS: cvs.openbsd.org: www

2016-12-19 Thread Damien Miller
CVSROOT:/cvs
Module name:www
Changes by: d...@cvs.openbsd.org2016/12/19 06:40:47

Added files:
openssh/txt: release-7.4 

Log message:
release notes for openssh-7.4



CVS: cvs.openbsd.org: src

2016-12-19 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2016/12/19 05:52:41

Modified files:
sys/netinet: ip_mroute.c ip_mroute.h 

Log message:
Kill unused function.

ok mpi@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 04:30:26

Modified files:
sys/netinet: in.c 

Log message:
Remove a recursive splsoftnet() in in_ioctl() that already asserts that
it is called at IPL_SOFTNET.



CVS: cvs.openbsd.org: src

2016-12-19 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2016/12/19 03:35:12

Modified files:
sys/netinet: in.c 

Log message:
If rt_ifa_addlocal() in in_ifinit() fails, the address has been
added to the interface address list, but the local route is missing.
This inconsistency could result in a "ifa == rt->rt_ifa" assertion
panic later.  So in case of a route add error, remove the interface
address to get a consistent state again.
OK stsp@ mpi@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2016/12/19 02:53:21

Modified files:
sys/arch/arm64/conf: Makefile.arm64 

Log message:
Adjust Makefile to gain improvements that were made in other archs
already.  This means for example dropping -Wno-format or adding -g
by default.

Prompted by jsg@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2016/12/19 02:29:27

Modified files:
sys/arch/arm64/arm64: pmap.c 

Log message:
Fix debug printf format and arguments.

Found by and input from jsg@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2016/12/19 02:22:24

Modified files:
sys/netinet: igmp.c ip_input.c ip_mroute.c ip_mroute.h 
 ip_output.c ip_var.h raw_ip.c 

Log message:
Extend the multicast sockets and multicast hash table support to multiple
domains. This is one step towards supporting to run more than one multicast
socket in different domains at the same time.

ok mpi@



CVS: cvs.openbsd.org: src

2016-12-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/12/19 01:36:50

Modified files:
sys/kern   : sys_socket.c uipc_socket.c uipc_socket2.c 
 uipc_syscalls.c uipc_usrreq.c 
sys/miscfs/fifofs: fifo_vnops.c 
sys/net: if.c if_spppsubr.c raw_usrreq.c route.c 
 rtsock.c 
sys/netinet: if_ether.c ip_carp.c ip_divert.c ip_icmp.c 
 ip_input.c ip_ipsp.c ip_output.c raw_ip.c 
 tcp_input.c tcp_timer.c tcp_usrreq.c 
 udp_usrreq.c 
sys/netinet6   : icmp6.c ip6_divert.c ip6_input.c nd6.c 
 raw_ip6.c 
sys/nfs: nfs_boot.c nfs_socket.c 
sys/sys: socketvar.h systm.h 

Log message:
Introduce the NET_LOCK() a rwlock used to serialize accesses to the parts
of the network stack that are not yet ready to be executed in parallel or
where new sleeping points are not possible.

This first pass replace all the entry points leading to ip_output(). This
is done to not introduce new sleeping points when trying to acquire ART's
write lock, needed when a new L2 entry is created via the RT_RESOLVE.

Inputs from and ok bluhm@, ok dlg@