From: Andrew Morton <andrewm@uow.edu.au>
To: pdoru@kappa.ro
Cc: linux-kernel@vger.kernel.org, Mircea Damian <dmircea@kappa.ro>
Subject: Re: problem with the timers ?!? (was: No one wants to help me)
Date: Fri, 13 Apr 2001 14:02:35 -0700 [thread overview]
Message-ID: <3AD7696B.FB80F2B6@uow.edu.au> (raw)
In-Reply-To: <20010413222334.B3758@linux.kappa.ro> <Pine.LNX.4.21.0104132243060.6025-100000@bigD.kappa.ro>
Doru Petrescu wrote:
>
> also I don't understand how a race condition can occour since all
> functions that play with the lists has a spin_lock() arround them.
> Maybe is not someting wrong in the timers, maybe some other part of the
> kernel is doing the bad thing.
Yes. All it takes is this:
handler(foo)
{
stuff();
mod_timer(&foo->timer, whenever);
}
mainline()
{
del_timer(&foo->timer);
kfree(foo);
}
If the handler and mainline run at the same time
we will add a timer which is in freed memory. Later,
someone reuses that memory and changes it. The timer
list is corrupted.
Problem is, it seems that your machine is using
IPV4, TCP, IDE, netfilter and nothing else. Those
parts of the kernel don't have the above bug (well,
they didn't mid last year).
One really, really useful piece of information would
be the value of the `function' member of the corrupted
timer. Your debug code prints this out. Do you still
have the logs?
Was it ever non-zero?
If so, what function was it pointing at?
-
next prev parent reply other threads:[~2001-04-13 21:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20010413222334.B3758@linux.kappa.ro>
2001-04-13 20:15 ` Doru Petrescu
2001-04-13 21:02 ` Andrew Morton [this message]
2001-04-14 7:40 ` Doru Petrescu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3AD7696B.FB80F2B6@uow.edu.au \
--to=andrewm@uow.edu.au \
--cc=dmircea@kappa.ro \
--cc=linux-kernel@vger.kernel.org \
--cc=pdoru@kappa.ro \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®