From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31537 invoked from network); 6 Oct 1998 15:35:19 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 6 Oct 1998 15:35:19 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA20590 for ; Tue, 6 Oct 1998 11:31:17 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id JAA24711 for axp-list@redhat.com; Tue, 6 Oct 1998 09:31:14 -0600 From: Michal Jaegermann Message-Id: <199810061531.JAA24711@ellpspace.math.ualberta.ca> Subject: Re: runaway klogd/syslogd happening now To: axp-list@redhat.com Date: Tue, 6 Oct 1998 09:31:14 -0600 (MDT) In-Reply-To: <199810061315.JAA28686@adder.cs.Virginia.EDU> from "Greg Lindahl" at Oct 6, 98 09:15:28 am Content-Type: text Greg Lindahl wrote: > > It's fine to fix the kernel, which will paper over the other bugs, but > it would be good to fix the other bugs too. We know that syslogd also > has a bug because it is reading a bogus fd. No, actually we don't (unless this is a lack of a guard against a buffer overflow somewhere where there is no way to control input data). If you will trash a stack than any outcome is possible including, obviously, killing a process as reported in another posting. Actually, one would think, that the later is more likely result. I did not analyze the bug in depth; indeed, I was not even struck by an instance of it. Luck of a draw, I guess, or I do not run anything that would cause an avalanche of invocations of unimplemented system calls (if this is indeed a reason). But it **might** be that adding this missing terminator is a proper fix. > As for what buffer size to insert the \n at, how about the length of > the buffer you're reading into minus one? What about it? If some reasonable constraints are violated then problems may show up. This is an abstract discussion. At this stage we need to see some code, I guess. Michal