* Re: runaway klogd/syslogd happening now
@ 1998-10-06 15:47 Greg Lindahl
1998-10-06 16:05 ` Michal Jaegermann
1998-10-06 19:53 ` Quant-X Alpha Linux Support
0 siblings, 2 replies; 4+ messages in thread
From: Greg Lindahl @ 1998-10-06 15:47 UTC (permalink / raw)
To: axp-list
> > 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 syslogd doesn't have a bug, why is it reading from a fd which is
too large? It must have a bug.
> I did not analyze the bug in depth; indeed, I was not even struck by an
> instance of it.
You can probably generate it by just intentionally making a lot of
unimplemented system calls. Remember that folks are reporting that
under unknown circumstances, normal binaries start producing lots of
those messages about unimplemented system calls.
-- g
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: runaway klogd/syslogd happening now
1998-10-06 15:47 runaway klogd/syslogd happening now Greg Lindahl
@ 1998-10-06 16:05 ` Michal Jaegermann
1998-10-06 19:53 ` Quant-X Alpha Linux Support
1 sibling, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1998-10-06 16:05 UTC (permalink / raw)
To: axp-list
Greg Lindahl wrote:
>
> >
> > 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 syslogd doesn't have a bug, why is it reading from a fd which is
> too large? It must have a bug.
Most likely local variables on stack were clobbered with a garbage
because of a buffer overflow. This will create all kind of funny values
and side-effects. This is a guess, but educated one. :-)
If something assumes that its input satisfies some constraints, and
this input cannot be influenced by a user, then this assumption
is reasonable. When "producers" stop conforming then all bets are off.
Of course this is a bug but you are free to interpret on which side
of an interface and what is the simplest fix.
--mj
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: runaway klogd/syslogd happening now
1998-10-06 15:47 runaway klogd/syslogd happening now Greg Lindahl
1998-10-06 16:05 ` Michal Jaegermann
@ 1998-10-06 19:53 ` Quant-X Alpha Linux Support
1998-10-06 21:03 ` unimplemented syscalls (was: runaway klogd/syslogd ...) Matti Aarnio
1 sibling, 1 reply; 4+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-10-06 19:53 UTC (permalink / raw)
To: axp-list
Hi Greg !
> If syslogd doesn't have a bug, why is it reading from a fd which is
> too large? It must have a bug.
>
> > I did not analyze the bug in depth; indeed, I was not even struck by an
> > instance of it.
>
> You can probably generate it by just intentionally making a lot of
> unimplemented system calls. Remember that folks are reporting that
> under unknown circumstances, normal binaries start producing lots of
> those messages about unimplemented system calls.
I bet you mean only the locale bug. Here related stuff out of my
.bashrc
# to avoid "unimplemented OSF mmap flags 0402" for AXP/Linux
if ! uname -m|grep -q alpha ; then
LANG=de_DE.ISO8859-1
LC_NUMERIC=de_DE.ISO8859-1
LC_MONETARY=de_DE.ISO8859-1
LC_TIME=de_DE.ISO8859-1
LC_MESSAGES=de_DE.ISO8859-1
LC_COLLATE=de_DE.ISO8859-1
LC_CTYPE=de_DE.ISO8859-1
LC_ALL=
export LANG LC_NUMERIC LC_MONETARY LC_TIME LC_MESSAGES
export LC_COLLATE LC_TYPE LC_ALL
else
unset LANG LC_NUMERIC LC_MONETARY LC_TIME LC_MESSAGES
unset LC_COLLATE LC_TYPE LC_ALL
fi
ciao -
Stefan
--
Quant-X Service & Ph: (+43) 4212 6004-0
Consulting Ges.m.b.H. Fax: (+43) 4212 600420
http://www.quant-x.com Email: support@quant-x.com
^ permalink raw reply [flat|nested] 4+ messages in thread* unimplemented syscalls (was: runaway klogd/syslogd ...)
1998-10-06 19:53 ` Quant-X Alpha Linux Support
@ 1998-10-06 21:03 ` Matti Aarnio
0 siblings, 0 replies; 4+ messages in thread
From: Matti Aarnio @ 1998-10-06 21:03 UTC (permalink / raw)
To: support; +Cc: axp-list
(attribution truncated away)
...
> > You can probably generate it by just intentionally making a lot of
> > unimplemented system calls. Remember that folks are reporting that
> > under unknown circumstances, normal binaries start producing lots of
> > those messages about unimplemented system calls.
>
> I bet you mean only the locale bug. Here related stuff out of my
> .bashrc
Yeah sure... In my opinnion of not having locale datas is not any
solution, fixing the nuisance reports is.
Glibc seems to have humongous problems at this, and it insists on using
_MAP_INHERIT flags at Locale code. Linus finally accepted following
(a bit oversized in retrospect) change recently:
diff -u --recursive --new-file v2.1.121/linux/arch/alpha/kernel/osf_sys.c linux/arch/alpha/kernel/osf_sys.c
@@ -253,9 +253,11 @@
unsigned long ret = -EBADF;
lock_kernel();
+#if 0
if (flags & (_MAP_HASSEMAPHORE | _MAP_INHERIT | _MAP_UNALIGNED))
printk("%s: unimplemented OSF mmap flags %04lx\n",
current->comm, flags);
+#endif
if (!(flags & MAP_ANONYMOUS)) {
file = fget(fd);
if (!file)
I really haven't looked at glibc that deeply to know why compiling
it at 2.1 kernel STILL uses (_)MAP_INHERIT flag.
(... rpm -bb begun ... joys of having a lot of diskspace ...)
Hmm... Ok, linux-include-2.1.76.tar.gz supplies the 'MAP_INHERIT'
flag instead of the current '_MAP_INHERIT' of 2.1.90+something.
Blaah...
Which is easier way to silence this "bug", fix the headers which
glibc 2.0 uses, or to patch your kernel to be silent about it ?
> ciao -
> Stefan
> --
> http://www.quant-x.com Email: support@quant-x.com
/Matti Aarnio <matti.aarnio@sonera.fi>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-10-06 21:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-06 15:47 runaway klogd/syslogd happening now Greg Lindahl
1998-10-06 16:05 ` Michal Jaegermann
1998-10-06 19:53 ` Quant-X Alpha Linux Support
1998-10-06 21:03 ` unimplemented syscalls (was: runaway klogd/syslogd ...) Matti Aarnio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox