Date: Sun, 17 Jun 2018 22:04:22 +0200 From: Michael Grimm <trashcan@ellael.org> To: Ed Schouten <ed@nuxi.nl> Cc: "ed@FreeBSD.org" <ed@freebsd.org>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: syslogd became silent between 11.2-PRERELEASE r334874 and r335282 Message-ID: <A30E1362-A530-460A-8764-AEB6FD6B1BD4@ellael.org> In-Reply-To: <CABh_MK=x7x=2RX52abzV4Vktk5Y55%2Bc5UB1uVY5OgWuq-QZwSg@mail.gmail.com> References: <BDE2979C-728D-4B29-B105-03FFC9A31EF1@ellael.org> <D835142B-2ACC-4EEA-938F-FA760C82AFFC@ellael.org> <CABh_MK=x7x=2RX52abzV4Vktk5Y55%2Bc5UB1uVY5OgWuq-QZwSg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ed -- > On 17. Jun 2018, at 19:27, Ed Schouten <ed@nuxi.nl> wrote: >=20 > Hi Michael, >=20 > 2018-06-17 17:52 GMT+02:00 Michael Grimm <trashcan@ellael.org>: >> I do believe that this commit might be the cause: >> = https://svnweb.freebsd.org/base/stable/11/usr.sbin/syslogd/Makefile?revisi= on=3D335059&view=3Dmarkup&sortby=3Dfile >=20 > Thanks for reporting this issue. I just did some debugging on my > system and I think I was able to reproduce this issue. It seems as if > I made a tiny mistake in how I implemented the RFC 5426 UDP message > size limiting. Could you please give the following patch for syslogd a > try? >=20 > Index: usr.sbin/syslogd/syslogd.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- usr.sbin/syslogd/syslogd.c (revision 334706) > +++ usr.sbin/syslogd/syslogd.c (working copy) > @@ -1613,8 +1613,8 @@ > struct iovec *last; > size_t diff; >=20 > - while (size > il->totalsize) { > - diff =3D size - il->totalsize; > + while (il->totalsize > size) { > + diff =3D il->totalsize - size; > last =3D &il->iov[il->iovcnt - 1]; > if (diff >=3D last->iov_len) { > /* Remove the last iovec entirely. */ >=20 > It should be sufficient to apply this to just the 'client' syslogd. > There is no need to patch the central (storage) server. Sorry for my late response, and:=20 Thanks, your patch fixed it! I am not that much experienced, but that's what I did: #) svn update -r 335059 #) applied your patch #) recompiled world and kernel #) reinstalled world and kernel #) reinstalled my jail's basejail (ezjail technology) #) reboot -> return of syslogd clients being able to send syslog messages from = jails to host's syslogd I hope that this is sufficient prove that your patch will work? Thank you very much and with kind regards, Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A30E1362-A530-460A-8764-AEB6FD6B1BD4>