OpenBSD errata, Jan 31, 2017

2017-02-01 Thread Bob Beck
An issue has been identified whereby httpd(8) could be subject to a denial of service attack. Repeated crafted requests could be made from a client using file-range requests, making the server consume excessive amounts of memory. This issue has been fixed in current. For 5.9 and 6.0 the following

fix xlockmore build with clang

2017-02-01 Thread Jonathan Gray
Sync some xlockmore files with the 5.50 release to fix build errors with clang of the form: c++ -c -DHAVE_CONFIG_H -DDEF_FILESEARCHPATH=\"/usr/X11R6/share/X11/app-defaults/%N%C%S:/usr/X11R6/share/X11/app-defaults/%N%S\" -I. -I.. -I../.. -I/usr/xenocara/app/xlockmore/xlock/

make sosetopt responsible for m_free

2017-02-01 Thread David Hill
Hello - This diff makes sosetopt responsible for m_free which is much simpler. Requested by bluhm@ Index: kern/uipc_socket.c === RCS file: /cvs/src/sys/kern/uipc_socket.c,v retrieving revision 1.176 diff -u -p -r1.176 uipc_socket.c

Re: ip6stat percpu counters

2017-02-01 Thread Alexander Bluhm
On Tue, Jan 31, 2017 at 02:21:46PM +0100, Jeremie Courreges-Anglas wrote: > > Updated diff that addresses Martin's points: > - kill IPv6 mbuf stats; don't change the ip6stat structure yet - there > are already other fields that are useless > - add ip6stat_add() > > Keep the M_COUNTERS change

Re: Help with the NET_LOCK()

2017-02-01 Thread Hrvoje Popovski
On 31.1.2017. 21:35, David Hill wrote: > On Tue, Jan 31, 2017 at 09:11:37PM +0100, Alexander Bluhm wrote: >> On Tue, Jan 31, 2017 at 12:14:35PM -0500, David Hill wrote: >>> with mpi@'s suggestion to pass a struct mbuf * >> We call mbuf variables m and mbuf pointer mp. So you should rename >> *mp

Re: ip6stat percpu counters

2017-02-01 Thread Jeremie Courreges-Anglas
Jeremie Courreges-Anglas writes: > Updated diff that addresses Martin's points: > - kill IPv6 mbuf stats; don't change the ip6stat structure yet - there > are already other fields that are useless > - add ip6stat_add() > > Keep the M_COUNTERS change separate for now, I can

ip6_ours()

2017-02-01 Thread Alexander Bluhm
Hi, I would like to make ip6_input() more like ipv4_input() and introduce ip6_ours(). ok? bluhm Index: netinet6/ip6_input.c === RCS file: /data/mirror/openbsd/cvs/src/sys/netinet6/ip6_input.c,v retrieving revision 1.175 diff -u -p

Re: Help with the NET_LOCK()

2017-02-01 Thread Alexander Bluhm
On Tue, Jan 31, 2017 at 03:35:47PM -0500, David Hill wrote: > Updated diff. OK bluhm@ > > Index: kern/uipc_socket.c > === > RCS file: /cvs/src/sys/kern/uipc_socket.c,v > retrieving revision 1.175 > diff -u -p -r1.175 uipc_socket.c

Re: fix: cy(4) debug format strings

2017-02-01 Thread Alexander Bluhm
On Wed, Feb 01, 2017 at 11:45:52AM +0100, Jan Klemkow wrote: > the kernel does not compile with option CY_DEBUG because of several > format string mistakes. This diff fixes them. It compiles on i386 > and amd64 without any errors. Commited, Thanks > Index: cy.c >

specify curves via ecdhe statement in httpd.conf

2017-02-01 Thread Andreas Bartelt
Hello, after reading the LibreSSL accouncement from today, I assumed that specifying ecdhe "auto" in /etc/httpd.conf would enable X25519, P-256 and P-384 on current. I've noticed that "auto" enables only curves x25519 and P-256 (which is what I'd want to use - but somehow unexpected with

Re: Sync sys/videoio.h with recent Linux kernel

2017-02-01 Thread Ingo Feinerer
On Sun, Jan 29, 2017 at 11:23:06AM +0100, Martin Pieuchot wrote: > On 28/01/17(Sat) 11:55, Ingo Feinerer wrote: > > in a previous commit > > (http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/videoio.h?rev=1.12=text/x-cvsweb-markup) > > we updated our V4L2 API. However, one file (v4l2-common.h)

Re: clang and -Werror vs -Wpointer-sign

2017-02-01 Thread Jonathan Gray
On Mon, Jan 30, 2017 at 07:28:03PM +0100, Stefan Kempf wrote: > Jonathan Gray wrote: > > Base gcc4 changes the defaults to set -Wno-pointer-sign. > > Base clang does not, I'm not sure where in the llvm code to do so. > > Base gcc3 does not handle -Wno-pointer-sign. > > I think this should turn

fix: cy(4) debug format strings

2017-02-01 Thread Jan Klemkow
Hi, the kernel does not compile with option CY_DEBUG because of several format string mistakes. This diff fixes them. It compiles on i386 and amd64 without any errors. bye, Jan Index: cy.c === RCS file: