Re: better free checking

2014-05-15 Thread Otto Moerbeek
On Wed, May 14, 2014 at 03:28:02PM -0400, Ted Unangst wrote: > As I learned the hard way not long ago, free() doesn't detect all > errors because of the delay mechanism. We can make two improvements. > > 1. Perform the sanity checking from free_bytes before we insert > something into the delay ar

Re: NOINET6 by default

2014-05-15 Thread Claudio Jeker
On Fri, May 16, 2014 at 12:43:52AM -0500, Todd T. Fries wrote: > Penned by Henning Brauer on 20140516 0:26.37, we have: > | * Claudio Jeker [2014-05-15 09:33]: > | > On Wed, May 14, 2014 at 11:29:20PM +0200, Henning Brauer wrote: > | > > so as discussed recently having the inet6 link-local addrs

Re: NOINET6 by default

2014-05-15 Thread Todd T. Fries
Penned by Henning Brauer on 20140516 0:26.37, we have: | * Claudio Jeker [2014-05-15 09:33]: | > On Wed, May 14, 2014 at 11:29:20PM +0200, Henning Brauer wrote: | > > so as discussed recently having the inet6 link-local addrs on every | > > interface by default is stupid and a security risk. | >

Re: NOINET6 by default

2014-05-15 Thread Henning Brauer
* Claudio Jeker [2014-05-15 09:33]: > On Wed, May 14, 2014 at 11:29:20PM +0200, Henning Brauer wrote: > > so as discussed recently having the inet6 link-local addrs on every > > interface by default is stupid and a security risk. > > > > this diff fixes that. well, really two independent parts. >

Re: NOINET6 by default

2014-05-15 Thread Henning Brauer
* Claudio Jeker [2014-05-15 09:42]: > On Thu, May 15, 2014 at 05:48:16AM +0200, Henning Brauer wrote: > > * Reyk Flöter [2014-05-15 01:04]: > > > > On 15.05.2014, at 00:46, Henning Brauer > > > > wrote: > > > > * Mark Kettenis [2014-05-15 00:15]: > > > >> I don't think this is a good idea; did

Re: NOINET6 by default

2014-05-15 Thread Henning Brauer
* Todd T. Fries [2014-05-15 06:29]: > Penned by Henning Brauer on 20140514 22:48.16, we have: > | * Reyk Flöter [2014-05-15 01:04]: > | > > On 15.05.2014, at 00:46, Henning Brauer > wrote: > | > > * Mark Kettenis [2014-05-15 00:15]: > | > >> I don't think this is a good idea; didn't we establi

proposed speedup for diff -q

2014-05-15 Thread gwes
Proposed enhancement to diff: diff of two very different files can take a very long time and a lot of memory. diff -q uses the same algorithm even though the status is known at the first difference. I propose ending the comparison at the first difference if diff is invoked with -q diff is not

Re: got me a 16-core octeon donated.

2014-05-15 Thread Jasper Lievisse Adriaanse
On Thu, May 15, 2014 at 11:03:10PM +0200, Mark Kettenis wrote: > > Date: Thu, 15 May 2014 22:04:16 +0200 > > From: Janne Johansson > > > > After some insight from jasper, I stripped away the randomdata section and > > voila: > > > > Copyright (c) 1982, 1986, 1989, 1991, 1993 > > The Rege

Re: libcrypto: stop some ASN.1 bleeding

2014-05-15 Thread Miod Vallat
> OK, the latest diff looks good to me. > Commited. Thanks for your help!

Re: got me a 16-core octeon donated.

2014-05-15 Thread Mark Kettenis
> Date: Thu, 15 May 2014 22:04:16 +0200 > From: Janne Johansson > > After some insight from jasper, I stripped away the randomdata section and > voila: > > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > Copyright (c) 1995

Re: fun with smtpd, (two bugs)

2014-05-15 Thread Jason McIntyre
On Thu, May 15, 2014 at 10:40:27PM +0200, Frank Brodbeck wrote: > Hi Jason, > > On Wed, May 14, 2014 at 11:16:59PM +0059, Jason McIntyre wrote: > > it's still missing some <>. also i think we can wholly simplify the > > auth/auth-optional line. > > Heh. Thought I found all, thanks for fixing the

Re: fun with smtpd, (two bugs)

2014-05-15 Thread Frank Brodbeck
Hi Jason, On Wed, May 14, 2014 at 11:16:59PM +0059, Jason McIntyre wrote: > it's still missing some <>. also i think we can wholly simplify the > auth/auth-optional line. Heh. Thought I found all, thanks for fixing the rest. > -.Op Ic auth | auth-optional | auth Ar authtable | Ic auth-optional A

Re: libcrypto: stop some ASN.1 bleeding

2014-05-15 Thread Brendan MacDonell
OK, the latest diff looks good to me.

Re: got me a 16-core octeon donated.

2014-05-15 Thread Janne Johansson
After some insight from jasper, I stripped away the randomdata section and voila: Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2014 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 5.5 (RAMDISK

Re: libcrypto: stop some ASN.1 bleeding

2014-05-15 Thread Miod Vallat
> > Index: a_time.c > > +ASN1_GENERALIZEDTIME * > > +ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZEDTIME **out) > > +{ > > + ASN1_GENERALIZEDTIME *tmp = NULL, *ret; > > + > > + if (!out || !*out) { > > + if (!(tmp = ASN1_GENERALIZEDTIME_new())) > > + ret

Re: libcrypto: stop some ASN.1 bleeding

2014-05-15 Thread Brendan MacDonell
Miod Vallat writes: > As promised, here is a new diff. Bob Beck suggested introducing wrappers > to the time-related functions, so that the error path becomes easier to > understand; this makes the diff to these functions much simpler > indeed. That's helpful. It definitely makes it easier to re

got me a 16-core octeon donated.

2014-05-15 Thread Janne Johansson
Its made by Movidis, and it has some linux on it now which boots. Of course, getting openbsd-octeon on it was the next step, but it won't load the bsd.rd correctly: Movidis X16 U-Boot version 1.6.1 (Build time: Nov 23 2007 - 18:27:52) CUST_WSX16 board revision major:1, minor:1, serial #: F1203261

Re: libcrypto: stop some ASN.1 bleeding

2014-05-15 Thread Miod Vallat
As promised, here is a new diff. Bob Beck suggested introducing wrappers to the time-related functions, so that the error path becomes easier to understand; this makes the diff to these functions much simpler indeed. Index: a_gentm.c

Re: run(4) firmware update; please test

2014-05-15 Thread Fred
On 05/15/14 10:35, Stefan Sperling wrote: This firmware update to version 0.33 is a prequisite for newer run(4) devices which are not yet supported. Can active users of run(4) devices please test this update to make sure no regressions are introduced for already working devices? I don't have a s

Re: libedit patch

2014-05-15 Thread Eitan Adler
On 15 May 2014 01:40, Nicholas Marriott wrote: > Hi > > This reads fine to me, did you take the NetBSD version of this diff? > > Our libedit comes from NetBSD and we'll probably want to update from > there again some time. This is the NetBSD patch ported to OpenBSD (only minor changes were needed

ftp.fr mirror is going down

2014-05-15 Thread Antoine Jacoutot
Hi. The ftp.fr mirror is going down for an undefined period of time (could be forever). Please migrate to another mirror for the time being. Thank you and sorry for the inconvenience. -- Antoine

Re: run(4) firmware update; please test

2014-05-15 Thread Stefan Sperling
On Thu, May 15, 2014 at 11:35:32AM +0200, Stefan Sperling wrote: > cd /usr/src/sys/dev/microcode/rum # yes, rum with m > patch < this-patch > make obj > make depend > sudo make install This should have said 'make' instead of 'make depend'.

Remove lladdrs from the RB-tree

2014-05-15 Thread Martin Pieuchot
Here's an updated diff to remove the link-layer address of every interface from the RB-tree and the per-ifp lists. ok? Index: net/if.c === RCS file: /home/ncvs/src/sys/net/if.c,v retrieving revision 1.288 diff -u -p -r1.288 if.c ---

Re: libedit patch

2014-05-15 Thread Nicholas Marriott
Hi This reads fine to me, did you take the NetBSD version of this diff? Our libedit comes from NetBSD and we'll probably want to update from there again some time. On Wed, May 14, 2014 at 10:25:10PM -0700, Eitan Adler wrote: > Hi all, > > The following patch has been committed in various form

Re: NOINET6 by default

2014-05-15 Thread Creamy
On Thu, May 15, 2014 at 10:24:57AM +0200, Claudio Jeker wrote: > On Thu, May 15, 2014 at 06:58:53AM +0200, J?r?mie Courr?ges-Anglas wrote: > > Paul de Weerd writes: > > > > [...] > > > > > This makes a whole lot of sense to me. Please make OpenBSD the first > > > OS to do (this part of) v6 in a

Re: IFT_L2VLAN is unused

2014-05-15 Thread Creamy
On Thu, May 15, 2014 at 12:14:37AM +0200, Alexander Bluhm wrote: > On Wed, May 14, 2014 at 11:29:20PM +0200, Henning Brauer wrote: > > so as discussed recently having the inet6 link-local addrs on every > > interface by default is stupid and a security risk. > > Connecting a computer to the intern

Re: NOINET6 by default

2014-05-15 Thread Claudio Jeker
On Thu, May 15, 2014 at 06:58:53AM +0200, Jérémie Courrèges-Anglas wrote: > Paul de Weerd writes: > > [...] > > > This makes a whole lot of sense to me. Please make OpenBSD the first > > OS to do (this part of) v6 in a sensible way. > > Actually that makes me laugh. Sensible, weeeh. Let's pr

Re: NOINET6 by default

2014-05-15 Thread Stuart Henderson
On 2014/05/15 09:41, Claudio Jeker wrote: > On Thu, May 15, 2014 at 05:48:16AM +0200, Henning Brauer wrote: > > * Reyk Flöter [2014-05-15 01:04]: > > > > On 15.05.2014, at 00:46, Henning Brauer > > > > wrote: > > > > * Mark Kettenis [2014-05-15 00:15]: > > > >> I don't think this is a good idea

Re: recvmsg, fd passing and soreceive

2014-05-15 Thread Claudio Jeker
On Wed, May 14, 2014 at 10:03:35PM -0700, Philip Guenther wrote: > On Wed, May 14, 2014 at 10:02 PM, Philip Guenther wrote: > > > On Wed, May 14, 2014 at 4:58 AM, Jérémie Courrèges-Anglas > > wrote: > > ... > > > >> So here's the diff I came up with: > >> - set MSG_TRUNC for atomic protocols only

Re: NOINET6 by default

2014-05-15 Thread Claudio Jeker
On Thu, May 15, 2014 at 05:48:16AM +0200, Henning Brauer wrote: > * Reyk Flöter [2014-05-15 01:04]: > > > On 15.05.2014, at 00:46, Henning Brauer wrote: > > > * Mark Kettenis [2014-05-15 00:15]: > > >> I don't think this is a good idea; didn't we establish the other day > > >> that "ifconfig eu

Re: NOINET6 by default

2014-05-15 Thread Claudio Jeker
On Wed, May 14, 2014 at 11:29:20PM +0200, Henning Brauer wrote: > so as discussed recently having the inet6 link-local addrs on every > interface by default is stupid and a security risk. > > this diff fixes that. well, really two independent parts. > one: set the NOINET6 flag by default on each a