CVS: cvs.openbsd.org: src

2017-06-26 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/06/26 22:22:13

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

Log message:
the illegal instruction is 0x



CVS: cvs.openbsd.org: src

2017-06-26 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/06/26 21:42:00

Modified files:
etc: rc 

Log message:
remove some old cruft.



CVS: cvs.openbsd.org: src

2017-06-26 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/06/26 14:41:37

Modified files:
sys/netinet6   : Tag: OPENBSD_6_1 icmp6.c 

Log message:
When pinging an IPv6 link-local address, the reflected packet had
::1 as source address.  It should be the link-local address of the
attached interface.  The rtalloc() in icmp6_reflect() did not find
the correct local address.  The IPv6 routing table does not use
sin6_scope_id, but the embedded scope.  So do not recover the scope.
bug report Harald Dunkel; OK mpi@
The regression was introduced in rev 1.202 just before 6.1 release.
OK for stable benno@ deraadt@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2017/06/26 14:12:14

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

Log message:
Minor cleanup; when polling delay before calling the interrupt handler



CVS: cvs.openbsd.org: src

2017-06-26 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/06/26 14:11:23

Modified files:
regress/usr.bin/mandoc/eqn: Makefile 
regress/usr.bin/mandoc/eqn/define: Makefile invalid.out_ascii 
regress/usr.bin/mandoc/eqn/fromto: basic.out_ascii 
   basic.out_html 
   noarg.out_ascii 
regress/usr.bin/mandoc/eqn/matrix: basic.in basic.out_ascii 
   basic.out_html 
regress/usr.bin/mandoc/eqn/nullary: Makefile roman.in 
roman.out_ascii 
roman.out_html 
regress/usr.bin/mandoc/eqn/over: precedence.out_ascii 
 precedence.out_html 
regress/usr.bin/mandoc/eqn/size: basic.out_ascii 
regress/usr.bin/mandoc/eqn/subsup: combine.out_ascii 
   combine.out_html 
   noarg.out_ascii 
   noarg.out_html 
   sub_group.out_ascii 
   sub_group.out_html 
regress/usr.bin/mandoc/eqn/unary: Makefile diacrit.out_ascii 
  diacrit.out_html sqrt.in 
  sqrt.out_ascii sqrt.out_html 
Added files:
regress/usr.bin/mandoc/eqn/define: font.in font.out_ascii 
   quoted.in quoted.out_ascii 
regress/usr.bin/mandoc/eqn/delim: Makefile basic.in 
  basic.out_ascii 
regress/usr.bin/mandoc/eqn/nullary: symbol.in symbol.out_ascii 
symbol.out_html 
symbol.out_utf8 
regress/usr.bin/mandoc/eqn/unary: bold.in bold.out_ascii 
  bold.out_html 

Log message:
catch up with the recent eqn(7) improvements



CVS: cvs.openbsd.org: src

2017-06-26 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/06/26 13:53:00

Modified files:
usr.bin/mandoc : eqn.c libroff.h 

Log message:
Complete rewrite of the lexer in a single function with four operation
modes instead of four functions, resulting in considerable
simplification, fifty lines less of code, fifteen fewer automatic
variables, and several bug fixes, for example:

1. The delim control statement consumes exactly two bytes of input,
requires no whitespace after these two bytes, and does not treat
quotes in any special way.
2. If the argument of left, right, gfont, gsize, or size is defined
as an alias, only the first word of the value is used as the
delimiter, font name, or font size.
3. If a back, fwd, down, or up keyword is followed by another keyword
instead of the required number, GNU eqn does nothing useful, but
typically errors out.  So no need to have special handling (with
an ugly goto!) for it in mandoc.

Also getting rid of one pointless static buffer and twelve redundant
calls to strlcpy(3).



CVS: cvs.openbsd.org: src

2017-06-26 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/06/26 13:06:12

Modified files:
sys/netinet: ip_input.c ip_var.h 

Log message:
Convert ip_input() to a pr_input style function.  Goal is to process
IPsec packets without additional enqueueing.
OK mpi@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2017/06/26 12:42:23

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

Log message:
Rework the deferred interrupt loop

By performing a task_add an interrupt handler can rely on the
taskq_thread to invoke it again with an additional benefit of
being able to sched_pause when required. In the long run more
than 99.8% of calls do not require an additional iteration.



CVS: cvs.openbsd.org: src

2017-06-26 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/06/26 12:33:24

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

Log message:
Fragments for a single connection (a combination of proto,src,dst,af)
may easily reuse the fragment id as it is only 16 bit for IPv4.  To
avoid that pf reassembles them into the wrong packet, throw away
stale fragments.  With the default timeout this happens after 12,000
newer fragements have been seen.
from markus@; OK sashan@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/06/26 12:31:57

Modified files:
distrib/sgi/ramdisk: install.md 

Log message:
Add a MDKERNEL variable that contains the name of the boot kernel.
This will be used by the installer in an upcoming change.

OK deraadt@



CVS: cvs.openbsd.org: www

2017-06-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2017/06/26 11:18:58

Modified files:
.  : 27.html 28.html 29.html 30.html 31.html 32.html 
 33.html 34.html 35.html 36.html 37.html 38.html 
 39.html 40.html 41.html 42.html 43.html 44.html 
 45.html 46.html 47.html 48.html 49.html 50.html 
 51.html 52.html 53.html 54.html 55.html 56.html 
 57.html 58.html 59.html 60.html 61.html 
 alpha.html amd64.html announce28.html 
 anoncvs.html arm64.html armv7.html cats.html 
 crypto.html cvsync.html ddb.html errata26.html 
 errata27.html errata28.html errata29.html 
 errata30.html errata31.html errata32.html 
 errata33.html errata34.html errata35.html 
 errata36.html errata37.html errata38.html 
 errata39.html errata40.html errata41.html 
 errata44.html errata45.html errata46.html 
 errata47.html errata48.html errata52.html 
 errata53.html errata54.html errata55.html 
 errata56.html errata57.html errata58.html 
 errata59.html errata60.html errata61.html 
 events.html ftp.html hp300.html hppa.html 
 httpd.conf index.html innovations.html 
 landisk.html luna88k.html lyrics.html 
 mac68k.html macppc.html mail.html mvme68k.html 
 mvme88k.html palm.html plus27.html plus28.html 
 plus29.html plus30.html plus31.html plus32.html 
 plus33.html plus34.html plus35.html plus36.html 
 plus37.html plus38.html plus39.html plus40.html 
 plus41.html plus42.html plus43.html plus44.html 
 plus45.html plus46.html plus47.html plus48.html 
 plus49.html plus50.html plus51.html plus52.html 
 plus53.html plus54.html plus55.html plus56.html 
 plus57.html plus58.html plus59.html plus60.html 
 report.html sgi.html socppc.html solbourne.html 
 sparc.html sparc64.html stable.html sun3.html 
 vax.html zaurus.html 
build/mirrors  : anoncvs.html.end anoncvs.html.head 
 cvsync.html.end cvsync.html.head ftp.html.end 
 openssh-portable.html.head 
faq: faq1.html faq10.html faq11.html faq13.html 
 faq14.html faq15.html faq4.html faq5.html 
 faq6.html faq7.html faq8.html index.html 
 upgrade35.html upgrade36.html upgrade37.html 
 upgrade38.html upgrade39.html upgrade40.html 
 upgrade41.html upgrade42.html upgrade43.html 
 upgrade44.html upgrade45.html upgrade46.html 
 upgrade47.html upgrade48.html upgrade49.html 
 upgrade50.html upgrade51.html upgrade52.html 
 upgrade53.html upgrade54.html upgrade55.html 
 upgrade56.html upgrade57.html upgrade58.html 
 upgrade59.html upgrade60.html upgrade61.html 
faq/pf : anchors.html authpf.html carp.html config.html 
 example1.html filter.html ftp.html index.html 
 logging.html macros.html nat.html options.html 
 perf.html pools.html shortcuts.html tables.html 
 tagging.html 
faq/ports  : differences.html guide.html index.html 
 specialtopics.html testing.html 
libressl   : index.html patches.html signing.html 
openbgpd   : index.html manual.html papers.html 
opencvs: manual.html 
openntpd   : features.html manual.html 
opensmtpd  : manual.html 
opensmtpd/faq  : certificates.html config.html example1.html 
 filters.html index.html options.html rules.html 
openssh: features.html goals.html history.html 
 index.html legacy.html manual.html 
 portable.html specs.html 
spamd  : index.html 

Log message:
move man.openbsd.org links from http:// to https://
reduces the number of http:// links in www/ from >33k to <7k

thanks to schwarze for doing the work



CVS: cvs.openbsd.org: src

2017-06-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/06/26 11:00:50

Modified files:
sys/conf   : makegap.sh 

Log message:
RANDOM1 was subject to rather bad modulus bias. Improve the situation a bit
by implementing an arc4random_uniform(3) clone with beloved jot(1) and
using it.

discussed with and ok deraadt



CVS: cvs.openbsd.org: src

2017-06-26 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2017/06/26 10:54:31

Modified files:
sys/arch/octeon/octeon: cn3xxx.dts cn3xxx_dts.S 

Log message:
Arrange a phandle for the "ciu" node.



CVS: cvs.openbsd.org: src

2017-06-26 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/06/26 10:14:25

Modified files:
sys/conf   : makegap.sh 

Log message:
note.ABI-tag and .MIPS.options are not needed anymore when
we use gapdummy.o



CVS: cvs.openbsd.org: src

2017-06-26 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/06/26 08:12:35

Modified files:
sys/netinet6   : icmp6.c 

Log message:
When pinging an IPv6 link-local address, the reflected packet had
::1 as source address.  It should be the link-local address of the
attached interface.  The rtalloc() in icmp6_reflect() did not find
the correct local address.  The IPv6 routing table does not use
sin6_scope_id, but the embedded scope.  So do not recover the scope.
bug report Harald Dunkel; OK mpi@




CVS: cvs.openbsd.org: src

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

src/regress/usr.bin/mandoc/eqn/delim

Update of /cvs/src/regress/usr.bin/mandoc/eqn/delim
In directory cvs.openbsd.org:/tmp/cvs-serv40093/delim

Log Message:
Directory /cvs/src/regress/usr.bin/mandoc/eqn/delim added to the repository



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/mandoc : eqn.c 

Log message:
when splitting a composite word,
do not forget to close the inserted list box



CVS: cvs.openbsd.org: src

2017-06-26 Thread Peter Hessler
CVSROOT:/cvs
Module name:src
Changes by: phess...@cvs.openbsd.org2017/06/26 04:09:13

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

Log message:
don't print the WELLKNOWN string for unknown well-known communities

from Job Snijders
ok phessler@ benno@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Peter Hessler
CVSROOT:/cvs
Module name:src
Changes by: phess...@cvs.openbsd.org2017/06/26 04:08:06

Modified files:
usr.sbin/bgpd  : parse.y 
usr.sbin/bgpctl: parser.c 

Log message:
let admins set an unknown well-known community

from Job Snijders
ok phessler@ benno@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Peter Hessler
CVSROOT:/cvs
Module name:src
Changes by: phess...@cvs.openbsd.org2017/06/26 04:05:57

Modified files:
usr.sbin/bgpd  : bgpd.conf.5 bgpd.h parse.y 
usr.sbin/bgpctl: bgpctl.c parser.c 

Log message:
add support for the "graceful shutdown" well-known community as described
in draft-ietf-grow-bgp-gshut

from Job Snijders
ok phessler@ benno@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Peter Hessler
CVSROOT:/cvs
Module name:src
Changes by: phess...@cvs.openbsd.org2017/06/26 04:04:21

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

Log message:
allow setting localpref to 0

from Job Snijders
ok phessler@ benno@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/06/26 03:32:32

Modified files:
sys/kern   : uipc_socket.c uipc_usrreq.c uipc_socket2.c 
 sys_generic.c 
sys/miscfs/fifofs: fifo_vnops.c 
sys/net: pfkeyv2.c rtsock.c 
sys/netinet: ip_divert.c ip_mroute.c raw_ip.c tcp_usrreq.c 
 tcp_subr.c tcp_output.c udp_usrreq.c 
 tcp_input.c 
sys/netinet6   : ip6_divert.c ip6_mroute.c raw_ip6.c 
sys/nfs: nfs_socket.c 
sys/sys: socketvar.h event.h 

Log message:
Assert that the corresponding socket is locked when manipulating socket
buffers.

This is one step towards unlocking TCP input path.  Note that all the
functions asserting for the socket lock are not necessarilly MP-safe.
All the fields of 'struct socket' aren't protected.

Introduce a new kernel-only kqueue hint, NOTE_SUBMIT, to be able to
tell when a filter needs to lock the underlying data structures.  Logic
and name taken from NetBSD.

Tested by Hrvoje Popovski.

ok claudio@, bluhm@, mikeb@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/06/26 03:17:55

Modified files:
sys/net: pfkeyv2.c pfkeyv2_parsemessage.c 

Log message:
Allow updating the destination address of an existing TDB.  Since the
destination address is used as an index when looking for a TDB, we need
to supply the new destination address in a different member.  For this,
re-use the proxy address, that so far no one else has been using.  It
would make sense to rename this member in the future.

ok claudio@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/06/26 03:08:00

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

Log message:
Split a part of tdb_delete() into tdb_unlink() so that we can remove
a TDB from the hash table without actually free()ing it.  That way we
can modify the TDB and then put it back in using puttdb().

ok claudio@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2017/06/26 01:02:16

Modified files:
sys/dev: audio.c 

Log message:
Factor a variable assignment in audiopoll().
>From Michael Bombardieri, thanks.