CVS: cvs.openbsd.org: xenocara

2015-07-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:xenocara
Changes by: m...@cvs.openbsd.org2015/07/28 23:49:16

Modified files:
lib/libGL/dri  : Makefile 
lib/libGL/gallium/winsys: Makefile 

Log message:
Build r300g and r600g on macppc and sparc64.

ok jsg@



CVS: cvs.openbsd.org: xenocara

2015-07-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:xenocara
Changes by: m...@cvs.openbsd.org2015/07/28 23:47:25

Modified files:
dist/Mesa/src/gallium/drivers/r300: r300_blit.c r300_context.h 
r300_state.c 
r300_state_derived.c 
r300_texture.c 
r300_texture.h 
r300_transfer.c 
dist/Mesa/src/gallium/state_trackers/dri/common: dri_drawable.c 
dist/Mesa/src/gallium/state_trackers/dri/drm: dri2.c 

Log message:
Make the Gallium r300 works on big-endian architectures.

Diff provided by Michel Daenzer [0] as a possible solution for a
regression introduced in Mesa 9 [1].  This diff allows macppc
users to use OpenGL accelerated appplications (i.e. GNOME3).

As disucssed during c2k15 we won't try to keep this patch during
the next Mesa update.

[0] https://bugs.freedesktop.org/show_bug.cgi?id=71789
[1] http://lists.freedesktop.org/archives/mesa-dev/2013-December/050218.html

Tested by myself and ajacoutot@, regression test and ok jsg@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/07/28 22:43:06

Modified files:
usr.bin/ssh: kex.c kex.h packet.c 

Log message:
include the peer's offer when logging a failure to negotiate a
mutual set of algorithms (kex, pubkey, ciphers, etc.)
ok markus@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2015/07/28 18:15:36

Modified files:
sys/kern   : subr_disk.c 

Log message:
Zap a couple of extra blank lines that keep showing up in diffs I'm
trying to build.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2015/07/28 18:04:03

Modified files:
sys/net: if.c if_ethersubr.c if_loop.c 
sys/netinet: ip_ether.c ip_gre.c 
sys/netmpls: mpls.h mpls_input.c 

Log message:
Don't use mpls_input() as input handler anymore and instead call it
directly. Also protect non mp-safe functions while at it.

ok mpi@.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/07/28 18:00:31

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

Log message:
refine a comment



CVS: cvs.openbsd.org: src

2015-07-28 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/07/28 17:20:42

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

Log message:
add Cisco to the list of clients that choke on the hostkeys update
extension. Pointed out by Howard Kash



CVS: cvs.openbsd.org: src

2015-07-28 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2015/07/28 17:10:13

Modified files:
sys/kern   : subr_disk.c 

Log message:
Convert sectors to DEV_BSIZE block values were necessary to find,
read and validate disklabels on GPT partitioned disks. Makes it much
more likely GPT partitioned disks with non-512-byte sectors will
work.

Part of the larger reverted GPT work.

ok deraadt@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/07/28 16:48:31

Modified files:
lib/libc/sys   : execve.2 intro.2 

Log message:
ARG_MAX is the standard name (not NCARGS); probab[l]y guenther



CVS: cvs.openbsd.org: src

2015-07-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/07/28 15:36:03

Modified files:
usr.bin/doas   : doas.c parse.y 

Log message:
wrap some exceedingly long lines



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2015/07/28 15:04:28

Modified files:
sys/dev: audio.c 

Log message:
add missing space, from Donovan Watteau 
thanks!



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2015/07/28 14:57:35

Modified files:
sys/dev: audio.c 

Log message:
In case the system misses enough audio interrupts for DMA
pointers to wrap, recover by detecting and compensating
for the missed interrupts. Fixes certain audio hangs on
MP machines.

with help from armani@, typos fixed by Alexey Suslikov



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2015/07/28 14:51:10

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

Log message:
Use new AUDIO_GETPOS ioctl() to ensure "bytes" and "errors" counters
are consistent.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2015/07/28 14:48:49

Modified files:
lib/libsndio   : sio_sun.c 

Log message:
Use new AUDIO_GETPOS ioctl instead of AUDIO_GETxOFFS and
AUDIO_xERROR. It returns a snapshot of the counters we need
and avoids inconsistencies.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2015/07/28 14:45:02

Modified files:
sys/sys: audioio.h 
sys/dev: audio.c 
share/man/man4 : audio.4 

Log message:
Add the AUDIO_GETPOS ioctl() to fetch a snapshot of the 4 counters
returned by AUDIO_GETxOFFS and AUDIO_xERROR ioctls.

ok deraadt



CVS: cvs.openbsd.org: src

2015-07-28 Thread Vadim Zhukov
CVSROOT:/cvs
Module name:src
Changes by: z...@cvs.openbsd.org2015/07/28 13:49:04

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

Log message:
Rename some variables and add few comments in keepenv handling code.
Makes the code more readable.

okay tedu@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2015/07/28 12:59:20

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

Log message:
kv_executable was removed



CVS: cvs.openbsd.org: src

2015-07-28 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2015/07/28 12:38:05

Modified files:
usr.bin/mandoc : main.c tag.c tag.h 

Log message:
Remove the hack of scrolling forward and backward with +G1G that
many (jmc@, millert@, espie@, deraadt@) considered revolting.
Instead, when using a pager, since we are using a temporary file
for tags anyway, use another temporary file for the formatted
page(s), as suggested by millert@ and similar to what the traditional
BSD man(1) did, except that we use only one single temporary output
file rather than one for each formatted manual page, such that
searching (both with / and :t) works across all the displayed files.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/07/28 12:20:41

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

Log message:
describe CPATH before TMPPATH



CVS: cvs.openbsd.org: src

2015-07-28 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2015/07/28 12:12:57

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

Log message:
unsort: requested by deraadt



CVS: cvs.openbsd.org: src

2015-07-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/07/28 11:46:53

Modified files:
bin/ed : buf.c main.c re.c 

Log message:
remove gratuitous casts



CVS: cvs.openbsd.org: src

2015-07-28 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2015/07/28 09:42:23

Modified files:
sys/dev: softraid.c 

Log message:
Tweak a couple of [SLIST|TAILQ]_REMOVE() usages in loops to a more
obvious idiom.

ok bluhm@ jsing@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/07/28 09:22:25

Modified files:
sys/kern   : kern_tame.c 
sys/sys: tame.h 

Log message:
normalize disclaimer to license.template; noted by reyk



CVS: cvs.openbsd.org: src

2015-07-28 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2015/07/28 09:18:10

Modified files:
usr.bin/tmux   : cmd-show-messages.c status.c tmux.h tty-term.c 

Log message:
Tidy up the way terminals are described and move some structs out of tmux.h.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2015/07/28 08:31:50

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

Log message:
Add a note to ppp(4)'s BUGS section where it talks about lack of IPv6
support to make it clear that pppoe(4) does work with IPv6. Problem noted
by Simon Farnsworth. Add xrefs to pppoe(4) and pppx(4) to show that this
isn't the only PPP implementation on OpenBSD. ok/tweak stsp@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2015/07/28 08:22:26

Modified files:
usr.bin/make   : job.c 

Log message:
let the hack that lets make kill jobs after sudo also work with doas.
okay tedu@, millert@, tweaks by millert@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2015/07/28 08:20:10

Modified files:
sys/kern   : uipc_usrreq.c 

Log message:
For unix domain sequenced packet socket pairs the ruby regression
tests reported an EMSGSIZE error although the sent message was not
too large.  The way backpressure was implemented for unix domain
sockets confused the check in sosend().

Unix domain sockets append data only to the recv buffer.  To report
the amount of content to the sender, the high watermark of the send
buffer was reduced.  This happend for SOCK_STREAM and SOCK_SEQPACKET.
Sosend checks wether atomic chunks could ever fit into the send
buffer which is limited by the high watermark.  This happens for
SOCK_DGRAM and SOCK_SEQPACKET.  For SOCK_SEQPACKET the combination
of these mechanisms resulted in an EMSGSIZE error when the buffer
got filled.  This also happened when space could be created by
reading from the other end in contradiction to the semantics of
EMSGSIZE.

Do not emulate a send buffer that has no space.  It is better to
fill the buffer with fake data than to reduce its size.  Thus the
high watermark always contains the real value.  When disconnecting,
reset the counters.  Otherwise the socket layer would try to flush
non existing data in the send buffer.

Tested by jeremy@ with a C program and the ruby tests.
OK markus@ jeremy@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Vadim Zhukov
CVSROOT:/cvs
Module name:src
Changes by: z...@cvs.openbsd.org2015/07/28 08:08:52

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

Log message:
Fix keepenv handling. Initially reported by Ze Loff on misc@.

tedu@ agrees.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2015/07/28 07:22:07

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

Log message:
make -B with bad checksums cope. Reported by millert@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2015/07/28 06:31:29

Modified files:
regress/sys/net/pf_divert: LICENSE Makefile args-icmp-to.pl 
   args-rip-reply.pl args-rip-to.pl 
   args-tcp-reply.pl args-tcp-to.pl 
   args-udp-reply.pl args-udp-to.pl 
   funcs.pl remote.pl 
Added files:
regress/sys/net/pf_divert: README args-icmp-reply-reuse.pl 
   args-icmp-reply-to.pl 
   args-rip-reply-to.pl 
   args-udp-reply-to.pl 

Log message:
Add more and deeper tests for pf divert-reply rules.  Especially
the combination of sending and receiving multiple packets over one
socket is tested for UDP, raw IP and ICMP.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Vadim Zhukov
CVSROOT:/cvs
Module name:src
Changes by: z...@cvs.openbsd.org2015/07/28 06:25:27

Modified files:
regress/usr.bin/doas: Makefile 
Added files:
regress/usr.bin/doas: master.passwd t-run-keepenv-path.conf 

Log message:
Add (currently failing) test for passing PATH via keepenv in doas.

Initial report by Ze Loff on misc@.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2015/07/28 06:22:07

Modified files:
sys/netinet: raw_ip.c 
sys/netinet6   : icmp6.c raw_ip6.c 

Log message:
Implement pf divert-reply for raw sockets.  Note that an empty
divert->addr means that the rule has a divert-reply option.  With
divert-to the divert->addr is always set.  The divert-reply rules
should compare the original packet with the socket addresses.  So
skip the step that compares the inp->inp_laddr with the empty
divert->addr.
OK mikeb@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2015/07/28 05:44:51

Modified files:
sys/netinet6   : raw_ip6.c 

Log message:
iDo not link an ICMP6 socket to the pf state.  When multiple ICMP
packets with a different ICMP ID are sent over the same raw socket,
multiple states should be created.  Put a similar check into
rip6_output() like in the IPv4 case.
OK mikeb@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/07/28 04:24:26

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

Log message:
spacing



CVS: cvs.openbsd.org: src

2015-07-28 Thread Sebastien Marie
CVSROOT:/cvs
Module name:src
Changes by: sema...@cvs.openbsd.org 2015/07/28 04:17:10

Added files:
regress/sys/kern/tame/sys_exit: Makefile sys_exit.c 

Log message:
check that flags value of 0 restricts the process to the _exit(2) system call.
note that it isn't the case currently.



CVS: cvs.openbsd.org: src

2015-07-28 Thread Sebastien Marie
CVSROOT:/cvs
Module name:src
Changes by: sema...@cvs.openbsd.org 2015/07/28 04:15:33

src/regress/sys/kern/tame/sys_exit

Update of /cvs/src/regress/sys/kern/tame/sys_exit
In directory cvs.openbsd.org:/tmp/cvs-serv17122/sys_exit

Log Message:
Directory /cvs/src/regress/sys/kern/tame/sys_exit added to the repository



CVS: cvs.openbsd.org: src

2015-07-28 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2015/07/28 04:13:42

Modified files:
usr.sbin/httpd : server_fcgi.c 

Log message:
add HSTS to fcgi responses
OK reyk



CVS: cvs.openbsd.org: src

2015-07-28 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/07/28 03:48:52

Modified files:
sys/dev/pv : pvbus.c pvreg.h pvvar.h vmt.c 

Log message:
Add callbacks for supported hypervisors in pvbus(4) to print more
information and for some generic CPUID/MSR-level initialization.  This
changes the attach/match path a bit.

Hypervisor informatiom may include a version number, for example:
pvbus0 at mainbus0: Hyper-V 6.3.9600

OK mlarkin@



CVS: cvs.openbsd.org: src

2015-07-28 Thread Igor Sobrado
CVSROOT:/cvs
Module name:src
Changes by: sobr...@cvs.openbsd.org 2015/07/28 02:41:30

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

Log message:
add a FILES section to make clear where RADIUS configuration file
is placed by default.

ok yasuoka@