From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25906 invoked from network); 21 Jul 1998 22:33:48 -0000 Received: from mail12.voicenet.com (HELO voicenet.com) (207.103.0.6) by mail2.redhat.com with SMTP; 21 Jul 1998 22:33:48 -0000 Received: (qmail 14078 invoked from network); 21 Jul 1998 22:33:46 -0000 Received: from rotary911-pri.voicenet.com (HELO voicenet.com) (209.71.52.11) by mail12.voicenet.com with SMTP; 21 Jul 1998 22:33:46 -0000 Message-ID: <35B51901.501AF154@voicenet.com> Date: Tue, 21 Jul 1998 18:41:06 -0400 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: axp-list@redhat.com, greg@wind.rmcc.com CC: furio ercolessi , "B. James Phillippe" Subject: Re: Inducing the syslogd/klogd syndrome References: <199807192112.XAA20145@mail.spin.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit It was the poll() system call in 2.0.33 kernel that causes a cryptic ( but familiar ) message to be printed by the kernel. Unfortunately this error message, from an unimplimented system service, does not have a '\n' at the tail end of its message. Along comes ntpdate, which really doesnt understand that the poll() function doesn't really work at all in either glibc, or the kernel. BUT it tries really hard, at least 300,000 times, and fails at each attempt. The kernel, on the other hand is trying to log some 300,000 attempts to this invalid system service. This is all fine, with the exception that there are no newlines between each of the messages! - some run on sentence. Then along comes klogd, which will try to log each of these messages ( via syslogd ). But there are no newlines, and klogd really hasn't been tested to handle a 4000 character message with no 'cr' of 'lf' in them. this is evident when it tries to move the 4000 character message into a 1024 character line buffer. rerally trashes the stack, and also trashes the kmsg channel, so it cant get any more info from the kernel. Klogd gets a read error, syslogd gets the report from klogd, and it cycles forever. so whats to fix: 1) put a '\n' in the kernel message in traps.c:do_entSys(), is printk("msg ... \n"); this should keep klogd happy. This is simple to do, and appears to keep klogd happy. If there are any other like-wise type-o's, then u will still get that forever spin problem in klogd/syslogd. 2) fix klogd so that longer than 1024 character kernel messages that dont have ( any ) terminating cr or lf, to not overwrite the stack, and static variables. If u do get one of these messages that u cant handle, or are improbable in nature - then a message should be written into the system log saying that something strange has happened. I dont have a perm fix, and this is being reported to the klogd/syslogd folks via greg@wind.rmcc.com