Re: Running out of buffers?

2018-08-11 Thread Andreas Gustafsson
Roy Marples wrote: > Try reading the bind sources: > https://github.com/NetBSD/src/blob/trunk/external/bsd/bind/dist/lib/isc/unix/socket.c#L1923 I have read the BIND sources. In fact, I wrote parts of them (though as far as I can remember, not the socket handling part). > I'll quote it here for

Re: Running out of buffers?

2018-08-11 Thread Roy Marples
On 11/08/2018 16:41, Roy Marples wrote: On 07/08/2018 17:54, Andreas Gustafsson wrote: On April 28, Roy Marples wrote: On 27/04/2018 23:58, Robert Elz wrote: We really need to turn off the error on recv() by default - and allow it to be turned on by applications that actually want to deal wit

Re: Running out of buffers?

2018-08-11 Thread Roy Marples
On 07/08/2018 17:54, Andreas Gustafsson wrote: On April 28, Roy Marples wrote: On 27/04/2018 23:58, Robert Elz wrote: We really need to turn off the error on recv() by default - and allow it to be turned on by applications that actually want to deal with this. Why should we special case repor

Re: Running out of buffers?

2018-08-07 Thread Andreas Gustafsson
On April 28, Roy Marples wrote: > On 27/04/2018 23:58, Robert Elz wrote: > > We really need to turn off the error on recv() by default - and allow it > > to be turned on by applications that actually want to deal with this. > > Why should we special case reporting this error instead of others? > W

Re: Running out of buffers?

2018-05-01 Thread Erik Fair
> On Apr 27, 2018, at 15:58, Robert Elz > wrote: > >Date:Fri, 27 Apr 2018 21:34:49 +0100 >From:Roy Marples mailto:r...@marples.name>> >Message-ID: > > > | Hopefully this fixes the

Re: Running out of buffers?

2018-05-01 Thread Roy Marples
On 01/05/2018 20:21, Roy Marples wrote: Another patch. This time to handle a reported overflow listening to ND6. This one actually works Index: sys/netinet6/in6_proto.c === RCS file: /cvsroot/src/sys/netinet6/in6_proto.c,v retrie

Re: Running out of buffers?

2018-05-01 Thread Roy Marples
On 27/04/2018 21:34, Roy Marples wrote: Hi Paul On 27/04/2018 04:09, Paul Goyette wrote: I've got lots of memory, so I don't understand what buffers are not available.  Ever since upgrading to my current system (sources dated 2018-03-20 11:25:00 UTC), I've been seeing these messages at random i

Re: Running out of buffers?

2018-04-28 Thread Roy Marples
On 27/04/2018 23:58, Robert Elz wrote: Date:Fri, 27 Apr 2018 21:34:49 +0100 From:Roy Marples Message-ID: | Hopefully this fixes the issues and won't impact small memory devices | too much. While those are probably useful changes to make, they don't fix an

Re: Running out of buffers?

2018-04-27 Thread Robert Elz
Date:Fri, 27 Apr 2018 21:34:49 +0100 From:Roy Marples Message-ID: | Hopefully this fixes the issues and won't impact small memory devices | too much. While those are probably useful changes to make, they don't fix anything, merely make it less likely. We reall

Re: Running out of buffers?

2018-04-27 Thread Paul Goyette
On Fri, 27 Apr 2018, Roy Marples wrote: Hi Paul On 27/04/2018 04:09, Paul Goyette wrote: I've got lots of memory, so I don't understand what buffers are not available.?? Ever since upgrading to my current system (sources dated 2018-03-20 11:25:00 UTC), I've been seeing these messages at random

Re: Running out of buffers?

2018-04-27 Thread Roy Marples
Hi Paul On 27/04/2018 04:09, Paul Goyette wrote: I've got lots of memory, so I don't understand what buffers are not available.  Ever since upgrading to my current system (sources dated 2018-03-20 11:25:00 UTC), I've been seeing these messages at random intervals: Can you test the below patche

Re: Running out of buffers?

2018-04-27 Thread Robert Elz
Date:Fri, 27 Apr 2018 15:34:22 +0200 From:Joerg Sonnenberger Message-ID: <20180427133422.gc30...@britannica.bec.de> | Sure, but we also have a history of at least providing a "best effort" | to notify the source when the datagrams are discarded locally. Sure, not

Re: Running out of buffers?

2018-04-27 Thread Joerg Sonnenberger
On Fri, Apr 27, 2018 at 01:05:33PM +0700, Robert Elz wrote: > Date:Fri, 27 Apr 2018 05:18:16 +0100 > From:Roy Marples > Message-ID: <58598dae-238e-44a5-e74f-bbb2fdd7b...@marples.name> > > | No-one has yet weighed in on how this should be resolved. > > Go back to si

Re: Running out of buffers?

2018-04-27 Thread Robert Elz
Date:Fri, 27 Apr 2018 12:36:31 +0200 From:Martin Husemann Message-ID: <20180427103631.gh21...@mail.duskware.de> | Syslogd could catch it and log a better error message, How? All it can ever discover is that some datagram (on its unix domain socket) lost a message

Re: Running out of buffers?

2018-04-27 Thread Martin Husemann
On Fri, Apr 27, 2018 at 11:25:32AM +0100, Patrick Welche wrote: > syslogd[316]: recvfrom() unix `/var/run/log': No buffer space available Syslogd could catch it and log a better error message, but it IS an important error and should not be silently ignored, IMHO. Martin

Re: Running out of buffers?

2018-04-27 Thread Patrick Welche
On Fri, Apr 27, 2018 at 11:14:12AM +0100, Roy Marples wrote: > Which application logged the error? Both wpa_supplicant and dhcpcd look at > route(4). > dhcpcd will note it and call getifaddrs(3) to resync the state of affairs. > wpa_supplicant will just log the error and continue. There's a questi

Re: Running out of buffers?

2018-04-27 Thread Roy Marples
On 27/04/2018 09:45, Patrick Welche wrote: The very odd situation in which I saw those buffer overflows, is simply on a home machine, so flaky home broadband, running a pkg_rolling-replace. The machine has 32G of memory, but from your message that is irrelevant. The urtwmn0 was struggling (that's

Re: Running out of buffers?

2018-04-27 Thread Patrick Welche
On Fri, Apr 27, 2018 at 08:52:35AM +0100, Roy Marples wrote: > Since NetBSD-5, I've modified the kernel to announce IPv6 address state > changes, introduced IPv4 address state changes which are also announced AND > added a layer of compat to the more generic RTM messages so that interface > address

Re: Running out of buffers?

2018-04-27 Thread Roy Marples
On 27/04/2018 07:05, Robert Elz wrote: Date:Fri, 27 Apr 2018 05:18:16 +0100 From:Roy Marples Message-ID: <58598dae-238e-44a5-e74f-bbb2fdd7b...@marples.name> | No-one has yet weighed in on how this should be resolved. Go back to silently discarding the error

Re: Running out of buffers?

2018-04-26 Thread Robert Elz
Date:Fri, 27 Apr 2018 05:18:16 +0100 From:Roy Marples Message-ID: <58598dae-238e-44a5-e74f-bbb2fdd7b...@marples.name> | No-one has yet weighed in on how this should be resolved. Go back to silently discarding the error (at least, by default). Datagram type services

Re: Running out of buffers?

2018-04-26 Thread Ryota Ozaki
On Fri, Apr 27, 2018 at 1:18 PM Roy Marples wrote: > On 27/04/2018 04:09, Paul Goyette wrote: > > I've got lots of memory, so I don't understand what buffers are not > > available. Ever since upgrading to my current system (sources dated > > 2018-03-20 11:25:00 UTC), I've been seeing these messa

Re: Running out of buffers?

2018-04-26 Thread Roy Marples
On 27/04/2018 04:09, Paul Goyette wrote: I've got lots of memory, so I don't understand what buffers are not available. Ever since upgrading to my current system (sources dated 2018-03-20 11:25:00 UTC), I've been seeing these messages at random intervals: Apr 23 05:51:33 speedy ntpd[526]: ro

Running out of buffers?

2018-04-26 Thread Paul Goyette
I've got lots of memory, so I don't understand what buffers are not available. Ever since upgrading to my current system (sources dated 2018-03-20 11:25:00 UTC), I've been seeing these messages at random intervals: Apr 23 05:51:33 speedy ntpd[526]: routing socket reports: No buffer space availa