CVS: cvs.openbsd.org: src

2017-05-30 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2017/05/31 00:59:13

Modified files:
bin/ksh: vi.c 
regress/bin/ksh/vi: vi.sh 

Log message:
Allow replacement of UTF-8 characters in vi mode.

Reported by Walter Alejandro Iglesias on tech@.

ok schwarze@ tb@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/31 00:46:57

Modified files:
usr.sbin/ikectl: ikeca.c 

Log message:
ca_revoke() gets called two ways.  Directly from ca_opt() with keyname
set to the cert to revoke, and indirectly from ca_create() with a
keyname set to NULL.

ca_create() sets REQ_EXT so avoid setting it in ca_revoke() when keyname
is NULL and the crl database is being initialised.

Avoids "REQ_EXT already set" when creating a CA error introduced
in rev 1.44 which set REQ_EXT unconditionally in ca_revoke().



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/31 00:23:19

Modified files:
usr.sbin/ntpd  : ntpd.conf.5 

Log message:
tweak previous;



CVS: cvs.openbsd.org: src

2017-05-30 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/05/30 23:59:09

Modified files:
sys/net: if.c if_ethersubr.c if_switch.c 
sys/netinet: ip_input.c ip_var.h 
sys/netinet6   : ip6_input.c ip6_var.h 

Log message:
Move IPv4 & IPv6 incoming/forwarding path, PIPEX ppp processing and
IPv4 & IPv6 dispatch functions outside the KERNEL_LOCK().

We currently rely on the NET_LOCK() serializing access to most global
data structures for that.  IP input queues are no longer used in the
forwarding case.  They still exist as boundary between the network and
transport layers because TCP/UDP & friends still need the KERNEL_LOCK().

Since we do not want to grab the NET_LOCK() for every packet, the
softnet thread will do it once before processing a batch.  That means
the L2 processing path, which is currently running without lock, will
now run with the NET_LOCK().

IPsec isn't ready to run without KERNEL_LOCK(), so the softnet thread
will grab the KERNEL_LOCK() as soon as ``ipsec_in_use'' is set.

Tested by Hrvoje Popovski.

ok visa@, bluhm@, henning@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2017/05/30 23:54:06

Modified files:
sys/dev/ata: atascsi.h 

Log message:
add some details relating to SATA device power management
part of a diff from Imre Vadasz via sf@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2017/05/30 23:47:29

Modified files:
sys/dev/ata: atascsi.h 

Log message:
fix SATA_SStatus_DET_OFFLINE value and add newer SStatus bits
from Imre Vadasz via sf@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 23:34:14

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

Log message:
use the ssh_dispatch_run_fatal variant



CVS: cvs.openbsd.org: src

2017-05-30 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 23:25:12

Modified files:
sbin/ifconfig  : ifconfig.c 

Log message:
fold the vnetid and parent lines into a single encap line.

this is a modest attempt to shorten the ifconfig output. encap wont
show up if neither vnetid or parent are supplied by an interface.

whitespace tweaks from benno@
output tweaks from reyk@
ok deraadt@ henning@



CVS: cvs.openbsd.org: src

2017-05-30 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 23:14:51

Modified files:
sys/net: if_vlan.c 

Log message:
make vlan use their parents lladdr all the time, not just when theyre up.

krw@ has been having issues with dhclient on vlan interfaces because
i made them only configure the lladdr when they were brought up.
dhclient likes to read the mac address and then bring them up.

this makes vlan copy the parents lladdr onto the vlan interface
when the parent is configured. this probably helps with v6 addresses
on vlan interfaces too.

the new code still supports configuring a custom lladdr on a vlan
interface. this can be done both before and after a parent is
configured, and if a parent is removed.

while here, if the parent is reconfigured while the vlan is up, dont
error if the new parent is the same as the current one. this should
make running netstart again less noisy.

ok krw@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 23:08:46

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

Log message:
another ctx => ssh conversion (in GSSAPI code)



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 22:52:11

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

Log message:
use strerror; from Edgar Pettijohn



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 22:50:55

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

Log message:
typo; from Edgar Pettijohn



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 22:35:38

Modified files:
sys/dev/ic : dpt.c 

Log message:
avoid going outside array bounds
ok krw@ deraadt@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 22:29:44

Modified files:
usr.bin/ssh: PROTOCOL.certkeys 

Log message:
spell out that custom options/extensions should follow the usual SSH
naming rules, e.g. "extens...@example.com"



CVS: cvs.openbsd.org: src

2017-05-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 22:19:28

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

Log message:
one more void *ctx => struct ssh *ssh conversion



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 22:18:58

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

Log message:
close fd on an exit path



CVS: cvs.openbsd.org: src

2017-05-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 22:17:12

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

Log message:
one more void *ctx => struct ssh *ssh conversion



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 22:14:34

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

Log message:
Fix a memory leak in pkey_add() error path.  All current callers fatal
if pkey_add() fails.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 21:45:15

Modified files:
share/man/man4 : ral.4 
sys/dev/ic : rt2860.c rt2860reg.h 
sys/dev/pci: if_ral_pci.c 

Log message:
Add support for Ralink RT5360.  From Kevin Lo who tested with a
D-Link DWA-525 rev A2.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 21:38:35

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 21:37:54

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add Ralink RT5360.  From Kevin Lo.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Stefan Kempf
CVSROOT:/cvs
Module name:src
Changes by: ste...@cvs.openbsd.org  2017/05/30 21:24:20

Modified files:
gnu/gcc/gcc/config/i386: openbsd64.h 
gnu/usr.bin/cc/cc_tools: auto-host.h 

Log message:
Make gcc move switch tables into .rodata instead of .text on i386/amd64

For C++, gcc has to make use of comdat sections instead
of .gnu.linkonce sections for this because
switch tables and functions would now end up
in different .gnu.linkonce sections. This can cause ld
to sometimes incorrectly discard the switch tables, which causes
linker errors. With comdat sections, making the switch table
and function sections belong together is more reliable.

ok deraadt@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 18:43:04

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

Log message:
fix possible OOB strlen() in SOCKS4A hostname parsing; ok markus@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/05/30 18:34:33

Modified files:
sys/lib/libsa  : aes_xts.c 
sys/crypto : xform.c 

Log message:
make the AES-XTS mode a little more constant-time, though the AES
implementation that it depends on currently isn't.

ok mikeb tom



CVS: cvs.openbsd.org: src

2017-05-30 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2017/05/30 17:30:48

Modified files:
usr.sbin/ntpd  : client.c ntp.c ntpd.conf.5 ntpd.h parse.y 

Log message:
add option "query from " to ntpd.conf, to specify a local IP
address for outgoing ntp queries.
>From Job Snijders, thanks!
with feedback and ok henning@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2017/05/30 16:32:10

Modified files:
sys/arch/amd64/stand: Makefile.inc 
sys/arch/amd64/stand/biosboot: Makefile 
sys/arch/amd64/stand/boot: Makefile 
sys/arch/amd64/stand/cdboot: Makefile 
sys/arch/amd64/stand/pxeboot: Makefile 

Log message:
Allow building the bootstrap with clang:
* skip the integrated assembler for assym.h
* use as(1) to build biosboot.S and the various versions of srt0.S
ok deraadt@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2017/05/30 16:19:36

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

Log message:
sync



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 16:04:46

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

Log message:
Oops, this was RTP_BGP during development to be able to easier spot
the configured route. Should be RTP_DEFAULT.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Vadim Zhukov
CVSROOT:/cvs
Module name:src
Changes by: z...@cvs.openbsd.org2017/05/30 15:59:36

Modified files:
regress/usr.bin/doas: Makefile 

Log message:
Make doas regression tests that involve doas running use a non-nosuid
partition, or skip if it could not find a one.

thanks bluhm@ for valuable input



CVS: cvs.openbsd.org: src

2017-05-30 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2017/05/30 15:57:39

Modified files:
sys/net: if_pflow.c 

Log message:
remove no longer needed splnet/splx.
ok florian@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/05/30 15:44:59

Modified files:
usr.bin/tmux   : Makefile arguments.c cfg.c cmd-choose-tree.c 
 cmd-copy-mode.c cmd-find-window.c cmd-queue.c 
 cmd-run-shell.c cmd-split-window.c cmd.c 
 format.c key-bindings.c options-table.c 
 screen-write.c tmux.1 tmux.h window-clock.c 
 window-copy.c window.c 
Added files:
usr.bin/tmux   : mode-tree.c window-buffer.c window-client.c 
 window-tree.c 
Removed files:
usr.bin/tmux   : cmd-choose-buffer.c cmd-choose-client.c 
 window-choose.c 

Log message:
Rewrite of choose mode, both to simplify and tidy the code and to add
some modern features.

Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.

Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:

- each mode has a preview pane: for buffers this is the buffer content
(very useful), for others it is a preview of the pane;

- items may be sorted in different ways ('O' key);

- multiple items may be tagged and an operation applied to all of them
(for example, to delete multiple buffers at once);

- in tree mode a command may be run on the selected item (session,
window, pane) or on tagged items (key ':');

- displayed items may be filtered in tree mode by using a format (this
is used to implement find-window) (key 'f');

- the custom format (-F) for the display is no longer available;

- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
with keys used for other uses to 0-9, M-a to M-z.

Now that the code is simpler, other improvements will come later.

Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).

Parts written by Thomas Adam.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2017/05/30 15:42:54

Modified files:
sys/dev/ic : pcdisplay_subr.c 

Log message:
Use the CD bit (Cursor Disable) in the cursor start register to properly
disable hardware cursor.

>From NetBSD.

OK deraadt@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Vadim Zhukov
CVSROOT:/cvs
Module name:src
Changes by: z...@cvs.openbsd.org2017/05/30 14:46:03

Modified files:
regress/usr.bin/doas: Makefile t-permit-1.conf 

Log message:
First pass to make bluhm@ happy regarding doas regress conf.

1. Make permit tests use wsrc instead of wobj (because basically, to run
test you need obj being writable, unless you want to pollute /usr/src);
2. Test if current user is in wobj group prior running the test, and skip
the test if he is not.



CVS: cvs.openbsd.org: www

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:www
Changes by: flor...@cvs.openbsd.org 2017/05/30 14:33:38

Modified files:
.  : innovations.html 

Log message:
mention slaacd



CVS: cvs.openbsd.org: src

2017-05-30 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/05/30 14:31:24

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

Log message:
event injection framework, will be used for other features coming shortly

ok deraadt



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 14:20:45

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

Log message:
tweak previous;



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 14:10:45

Modified files:
usr.sbin/tcpdump: print-smb.c smb.h 

Log message:
MIN->MINIMUM, even though smb is currently disabled.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 14:00:48

Modified files:
sys/net: pf_if.c pf_ruleset.c 

Log message:
sizes for free()
ok henning



CVS: cvs.openbsd.org: src

2017-05-30 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2017/05/30 13:40:55

Modified files:
sys/net: pfvar.h 

Log message:
remove XXX from the comments marking "holes" in the ioctls. I see very
very little value in these comments at all, but the XXX is just wrong and
in the way when looking for real XXXs. phessler agrees



CVS: cvs.openbsd.org: src

2017-05-30 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2017/05/30 13:38:47

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

Log message:
remove DIOCCLRRULECTRS here as well, pt out by sashan



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/05/30 13:38:17

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

Log message:
tweak previous;



CVS: cvs.openbsd.org: src

2017-05-30 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2017/05/30 13:37:54

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

Log message:
g/c DIOCCLRRULECTRS
kinda deprecated for a decade now, nothing in base uses it, nothing in
ports uses it (thanks sthen)
ok phessler sashan



CVS: cvs.openbsd.org: src

2017-05-30 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/05/30 13:31:29

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

Log message:
SVM: return EIO to vmd to stop the guest when it HLTs with interrupts
disabled (no NMI support yet)



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/05/30 13:29:31

Modified files:
usr.bin/mandoc : mandoc.1 mandoc.h mdoc_validate.c read.c 
regress/usr.bin/mandoc: Makefile.inc 
regress/usr.bin/mandoc/mdoc/Tn: noarg.out_lint 
regress/usr.bin/mandoc/mdoc/Ud: arg.out_lint 

Log message:
STYLE message about useless macros we don't want (Bt Tn Ud);
not a WARNING because they don't endanger portability



CVS: cvs.openbsd.org: src

2017-05-30 Thread Stefan Fritsch
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/05/30 13:28:09

Modified files:
sys/dev/pv : vioblk.c vioscsi.c virtio.c 

Log message:
More minor virtio tweaks

* add some comments about virtio_enqueue_trim
* include mutex.h explicitly
* make VIRTIO_DEBUG == 1 less verbose in vioblk

ok krw@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 13:27:16

Modified files:
usr.sbin/slaacd: frontend.c 

Log message:
Send a source link-layer address option with our solicitations.
Servers following RFC 7772 may then send us unicast router
advertisments and thus reduce multicast traffic which might
increase the battery life of other devices using the same shared
media.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/05/30 13:13:20

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

Log message:
Add missing KERNEL_LOCKs to a few error paths.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/05/30 12:58:37

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

Log message:
Add RemoteCommand option to specify a command in the ssh config
file instead of giving it on the client's command line.  This command
will be executed on the remote host.  The feature allows to automate
tasks using ssh config.
OK markus@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/05/30 12:37:19

Modified files:
sys/ddb: db_structinfo.c 

Log message:
Header sys/scanio.h has been deleted, do not include it here.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 12:18:08

Modified files:
usr.sbin/slaacctl: slaacctl.c 
usr.sbin/slaacd: engine.c frontend.c slaacd.c 

Log message:
whitespace encountered during review



CVS: cvs.openbsd.org: src

2017-05-30 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2017/05/30 12:08:15

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

Log message:
remove extended communities that have the transitive bit set from
routes announced to an ebgp peer (ref. rfc4360). While here remove the
pratial flag from extended and large communities.
ok claudio@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/05/30 11:56:47

Modified files:
usr.sbin/vmd   : virtio.c vm.c vmd.h 

Log message:
split vioblk read/write functions into start and finish as prep for
async io operations. ok mlarkin



CVS: cvs.openbsd.org: src

2017-05-30 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2017/05/30 11:52:05

Modified files:
usr.sbin/npppd/common: radish.c radish.h 
usr.sbin/npppd/npppd: Makefile 

Log message:
Remove never used ifdefs, define FATAL macro properly and define function
parameters in modern way.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/05/30 11:50:08

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

Log message:
various mdoc(7) fixes, triggered by a smaller diff from Michael Reed on tech@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/05/30 11:49:47

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

Log message:
FPU context save/restore for SVM in vmm(4), matches a previous diff
from a few weeks ago that did the same for Intel/VMX.

ok deraadt



CVS: cvs.openbsd.org: src

2017-05-30 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2017/05/30 11:47:11

Modified files:
sys/dev/pv : if_vio.c vioblk.c viocon.c 

Log message:
Replace nifty DBGPRINT() with a more familiar DPRINTF() and adjust
the formats to add in the __func__ and "\n" being magically added by
DBGPRINT(). Fixes a few botches by certain devs who assumed DBGPRINT()
must be just like DPRINTF.

ok sf@ reyk@ on earlier version



Re: CVS: cvs.openbsd.org: src

2017-05-30 Thread Ingo Schwarze
Hi Ted,

Ted Unangst wrote on Tue, May 30, 2017 at 01:26:04PM -0400:
> Ingo Schwarze wrote:

>> CVSROOT: /cvs
>> Module name: src
>> Changes by:  schwa...@cvs.openbsd.org2017/05/30 11:15:06
>> 
>> Modified files:
>>  sbin/pflogd: pflogd.8 
>> 
>> Log message:
>> Fix escaping: .Nm Op Fl "Dx" turning into "pflogd [-DragonFly]"
>> is funny, but not useful, so say .Nm Op Fl \&Dx as required.

> hmm, i didn't see this. how to repro?

 $ echo '.Nm pflogd Op Fl "Dx"' | nroff -mdoc -c
pflogd [-DragonFly]
 $ echo '.Nm pflogd Op Fl \&Dx' | nroff -mdoc -c 
pflogd [-Dx]

mandoc got a related bugfix today, so you need to be really -current
to see the same problem with:

 $ echo '.Nm pflogd Op Fl "Dx"' | mandoc -mdoc



Re: CVS: cvs.openbsd.org: src

2017-05-30 Thread Ted Unangst
Ingo Schwarze wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   schwa...@cvs.openbsd.org2017/05/30 11:15:06
> 
> Modified files:
>   sbin/pflogd: pflogd.8 
> 
> Log message:
> Fix escaping: .Nm Op Fl "Dx" turning into "pflogd [-DragonFly]"
> is funny, but not useful, so say .Nm Op Fl \&Dx as required.

hmm, i didn't see this. how to repro?



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/05/30 11:28:03

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

Log message:
Don't mention the operator file -- it was moved to the attic.

>From Michael Reed, thanks.



CVS: cvs.openbsd.org: src

2017-05-30 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2017/05/30 11:22:00

Modified files:
usr.sbin/npppd/common: addr_range.c addr_range.h debugutil.c 
   hash.h radish.h 
usr.sbin/npppd/npppd: fsm.c fsm.h lcp.c mppe.c npppd_pool.c 
  ppp.h 

Log message:
Stop using __P macro.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/05/30 11:15:06

Modified files:
sbin/pflogd: pflogd.8 

Log message:
Fix escaping: .Nm Op Fl "Dx" turning into "pflogd [-DragonFly]"
is funny, but not useful, so say .Nm Op Fl \&Dx as required.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 10:46:04

Modified files:
lib/libc/sys   : pledge.2 

Log message:
getrlimit is now allowed by "stdio"



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/05/30 10:31:25

Modified files:
usr.bin/mandoc : mdoc_html.c mdoc_man.c mdoc_markdown.c 
 mdoc_term.c 
regress/usr.bin/mandoc/mdoc/Lk: noarg.in 

Log message:
fix formatting of intermediate punctuation in .Lk



CVS: cvs.openbsd.org: src

2017-05-30 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2017/05/30 10:30:22

Modified files:
usr.sbin/radiusd: radiusd_radius.c 

Log message:
Don't call TAILQ_REMOVE twice.  This caused radiusd crash if it has a
pending request when it stops.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/05/30 10:21:55

Modified files:
sys/net80211   : ieee80211.c 
sys/dev/pci: if_iwn.c 

Log message:
Improve the new ieee80211_{min,max}_rates() APIs and fix regressions.

Instead of returning an index into ni_rates, return the RVAL of the
basic rate we want to use. This allows a driver to unambiguously map
the basic rate to the corresponding hardware-specific rate value, and
reduces the possibility of bugs where indices are used with arrays
they weren't intended for.

Adjust iwn(4) accordingly, and use the lowest instead of the highest
basic rate in iwn_tx() to cope better in noisy environments.

Fixes association problems on 5GHz reported by tb@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/05/30 10:21:08

Modified files:
usr.bin/mandoc : libmdoc.h mdoc_argv.c mdoc_macro.c 
regress/usr.bin/mandoc/mdoc/Ad: font.in font.out_ascii 
font.out_markdown 
regress/usr.bin/mandoc/mdoc/An: break.in 
regress/usr.bin/mandoc/mdoc/Ap: middle.in middle.out_ascii 
middle.out_markdown 
regress/usr.bin/mandoc/mdoc/Aq: empty.in empty.out_ascii 
empty.out_markdown 
empty.out_utf8 
regress/usr.bin/mandoc/mdoc/Ar: punct.in punct.out_ascii 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/At: invalid.in invalid.out_ascii 
invalid.out_markdown 
regress/usr.bin/mandoc/mdoc/Brq: empty.in empty.out_ascii 
 empty.out_markdown 
regress/usr.bin/mandoc/mdoc/Bx: args.in args.out_ascii 
args.out_markdown 
regress/usr.bin/mandoc/mdoc/Cd: Makefile 
regress/usr.bin/mandoc/mdoc/Cm: Makefile 
regress/usr.bin/mandoc/mdoc/Dq: empty.in empty.out_ascii 
empty.out_markdown 
regress/usr.bin/mandoc/mdoc/Dv: font.in font.out_ascii 
font.out_markdown 
regress/usr.bin/mandoc/mdoc/Em: punct.in punct.out_ascii 
punct.out_lint 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Eo: empty.in empty.out_ascii 
empty.out_markdown obsolete.in 
obsolete.out_ascii 
obsolete.out_markdown 
regress/usr.bin/mandoc/mdoc/Er: noarg.in noarg.out_ascii 
noarg.out_markdown 
regress/usr.bin/mandoc/mdoc/Ev: font.in font.out_ascii 
font.out_markdown 
regress/usr.bin/mandoc/mdoc/Fl: punct.in punct.out_ascii 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Fo: font.in font.out_ascii 
font.out_markdown punct.in 
punct.out_ascii 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Ic: Makefile 
regress/usr.bin/mandoc/mdoc/In: font.in font.out_ascii 
font.out_markdown 
regress/usr.bin/mandoc/mdoc/Li: punct.in punct.out_ascii 
punct.out_lint 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Ms: font.in font.out_ascii 
font.out_markdown 
regress/usr.bin/mandoc/mdoc/Mt: simple.in simple.out_ascii 
simple.out_markdown 
regress/usr.bin/mandoc/mdoc/No: punct.in punct.out_ascii 
punct.out_lint 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Ns: punct.in 
regress/usr.bin/mandoc/mdoc/Oo: punct.in punct.out_ascii 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Op: punct.in 
regress/usr.bin/mandoc/mdoc/Pa: punct.in punct.out_ascii 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Qq: empty.in empty.out_ascii 
empty.out_markdown 
regress/usr.bin/mandoc/mdoc/Sq: empty.in empty.out_ascii 
empty.out_markdown 
regress/usr.bin/mandoc/mdoc/St: call.in 
regress/usr.bin/mandoc/mdoc/Sx: noarg.in noarg.out_ascii 
noarg.out_markdown 
regress/usr.bin/mandoc/mdoc/Sy: punct.in punct.out_ascii 
punct.out_lint 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Tn: noarg.in noarg.out_ascii 
noarg.out_markdown 
regress/usr.bin/mandoc/mdoc/Va: Makefile 
regress/usr.bin/mandoc/mdoc/Xr: args.in args.out_ascii 
args.out_markdown 
Added files:
regress/usr.bin/mandoc/mdoc/Cd: punct.in punct.out_ascii 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Cm: punct.in punct.out_ascii 
punct.out_markdown 
regress/usr.bin/mandoc/mdoc/Ic: punct.in punct.out_ascii 
   

CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 10:16:47

Modified files:
sys/net: if_mpe.c if_tun.c 

Log message:
sizes for free()



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 10:07:22

Modified files:
sys/netinet: ip_ah.c ip_esp.c 

Log message:
add sizes to free() calls



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 09:57:12

Modified files:
usr.sbin/slaacd: engine.c 

Log message:
delete default route from FIB when we receive advertisement with
router lifetime of 0



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 09:39:49

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

Log message:
delete default route from FIB when it expires



CVS: cvs.openbsd.org: src

2017-05-30 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/05/30 09:39:05

Modified files:
sys/arch/amd64/amd64: db_trace.c 
sys/arch/arm64/arm64: db_trace.c 
sys/arch/hppa/hppa: db_interface.c 
sys/arch/i386/i386: db_trace.c 
sys/arch/m88k/m88k: db_trace.c 
sys/arch/mips64/mips64: trap.c 
sys/arch/powerpc/ddb: db_trace.c 
sys/arch/sh/sh : db_disasm.c db_trace.c 
sys/arch/sparc64/sparc64: openfirm.c 
sys/ddb: db_elf.c db_hangman.c db_sym.c db_sym.h 
 db_ctf.c 
sys/sys: exec_elf.h 

Log message:
Kill db_sym_t.

ok deraadt@, kettenis@, jasper@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/05/30 09:36:13

Modified files:
regress/sbin/iked/parser: Makefile 

Log message:
Organize iked parser regress Makefile similar to mandoc dbm_dump.
When object files from other parts of the tree are needed, build
them there and symlink them into the regress obj directory.
OK markus@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/05/30 09:29:53

Modified files:
usr.bin/id : id.1 id.c 

Log message:
usage and order tweaks from jmc



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 09:11:32

Modified files:
sys/arch/i386/i386: cpu.c locore.s machdep.c 
sys/arch/amd64/amd64: cpu.c identcpu.c 
sys/arch/amd64/include: cpufunc.h 

Log message:
Support for SMAP is pretty small, so don't exclude it from the RAMDISKS.
ok jsg visa



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/05/30 09:10:48

Modified files:
usr.bin/w  : Makefile extern.h w.c 
Removed files:
bin/ps : fmt.c 

Log message:
stop reacharound from w(1) to ps(1); no functional change;
diff from bcallah@; OK tedu@ deraadt@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/05/30 09:07:01

Modified files:
usr.bin/id : id.1 id.c 

Log message:
id -R: make current rdomain more easily accessible to the shell
ok benno deraadt



CVS: cvs.openbsd.org: src

2017-05-30 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/05/30 09:06:00

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

Log message:
Remove FILES section now that /usr/share/misc/ascii is no more.
Noted by jmc@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/05/30 09:04:45

Modified files:
sys/kern   : kern_pledge.c 

Log message:
getrtable() is now permitted in "stdio".  It carries no risk factors.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2017/05/30 09:02:22

Modified files:
sys/arch/amd64/stand: Makefile.inc 

Log message:
Build amd64 bootstrap with -ffreestanding.
"totally makes sense" kettenis@
ok deraadt@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 08:56:34

Modified files:
usr.sbin/slaacd: engine.c 

Log message:
no need to pass the slaacd_iface around, the proposal has the if_index



CVS: cvs.openbsd.org: src

2017-05-30 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/05/30 08:54:09

Modified files:
lib/libc/stdlib: qsort.c 

Log message:
Don't fall back to heapsort() if we would otherwise switch to
insertion sort (when the number of elements is < 7).



CVS: cvs.openbsd.org: src

2017-05-30 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/05/30 08:52:38

Modified files:
share/misc : Makefile 
Removed files:
share/misc : ascii 

Log message:
Remove /usr/share/misc/ascii since we have ascii(7).
OK schwarze@ deraadt@ sthen@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 08:45:22

Modified files:
usr.sbin/slaacd: engine.c 

Log message:
fix previous; actually free the memory



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:29:59

Modified files:
usr.bin/ssh: auth.h auth2-chall.c auth2-gss.c 
 auth2-hostbased.c auth2-kbdint.c auth2-none.c 
 auth2-passwd.c auth2-pubkey.c auth2.c 

Log message:
switch auth2 to ssh_dispatch API; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:27:22

Modified files:
usr.bin/ssh: auth2-none.c 

Log message:
switch auth2-none.c to modern APIs; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:26:49

Modified files:
usr.bin/ssh: auth2-passwd.c 

Log message:
switch auth2-passwd.c to modern APIs; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:25:42

Modified files:
usr.bin/ssh: auth2-hostbased.c 

Log message:
switch auth2-hostbased.c to modern APIs; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:23:52

Modified files:
usr.bin/ssh: auth2-chall.c auth2-gss.c auth2.c channels.c 
 channels.h clientloop.c dispatch.c dispatch.h 
 kex.c kex.h kexdhc.c kexdhs.c kexecdhc.c 
 kexecdhs.c kexgexc.c kexgexs.c serverloop.c 
 sshconnect2.c 

Log message:
protocol handlers all get struct ssh passed; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 08:23:10

Modified files:
usr.sbin/slaacd: engine.c 

Log message:
Remove default router proposals and address_proposals
when their lifetime reaches zero.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/05/30 08:21:33

Modified files:
usr.sbin/slaacd: engine.c 

Log message:
Update default router states; pointed out by naddy



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:19:15

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

Log message:
ssh: pass struct ssh to auth functions, too; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:18:15

Modified files:
usr.bin/ssh: auth2-chall.c auth2-gss.c auth2.c packet.h 

Log message:
sshd: pass struct ssh to auth functions; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:16:41

Modified files:
usr.bin/ssh: key.c key.h ssh-add.c ssh-keygen.c 

Log message:
remove unused wrapper functions from key.[ch]; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:15:17

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

Log message:
sshkey_new() might return NULL (pkcs#11 code only); ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:13:40

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

Log message:
switch sshconnect.c to modern APIs; ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2017/05/30 08:10:53

Modified files:
usr.bin/ssh: auth2-hostbased.c auth2-pubkey.c monitor.c 
 monitor_wrap.c monitor_wrap.h 

Log message:
switch auth2-pubkey.c to modern APIs; with & ok djm@



CVS: cvs.openbsd.org: src

2017-05-30 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2017/05/30 08:04:02

Modified files:
sys/dev/ic : ahci.c 

Log message:
Remove comments about implementing FIS-based switching with port multipliers,
which we can safely assume isn't going to happen now.  No code changes.



CVS: cvs.openbsd.org: src

2017-05-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/05/30 07:56:07

Modified files:
usr.sbin/pkg_add: pkg_add.1 

Log message:
waive signature check waving

ok jmc espie



CVS: cvs.openbsd.org: src

2017-05-30 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2017/05/30 07:16:09

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

Log message:
sync



CVS: cvs.openbsd.org: src

2017-05-30 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2017/05/30 07:14:44

Modified files:
sys/dev/wsfont : wsfont.c 
Removed files:
sys/dev/wsfont : qvss8x15.h vt220l8x10.h vt220l8x8.h 

Log message:
Remove qvss8x15, vt220l8x8, and vt220l8x10 fonts.

Those fonts are not compiled in by default, and are smaller than the
smallest font (bold8x16_iso1) we currently include.

OK mpi@, deraadt@



  1   2   >