From: Ingo Molnar <mingo@elte.hu>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Manfred Spraul <manfred@colorfullife.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] SMP races in the timer code, timer-fix-2.6.0-test7-A0
Date: Tue, 14 Oct 2003 13:43:53 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.56.0310141339220.17642@earth> (raw)
In-Reply-To: <Pine.LNX.4.44.0310132122160.2156-100000@home.osdl.org>
On Mon, 13 Oct 2003, Linus Torvalds wrote:
> since the timer may not even _exist_ any more - the act of running the
> timer may well have free'd the timer structure, and you're now zeroing
> memory that may have been re-allocated for something else.
doh, indeed.
i'm happy with the timer->base write ordering fix that addresses the first
race, it fixes the bug that was actually triggered in RL. The other two
races are present too but were present in previous incarnations of the
timer code too. I'll think about them - both rely on racing with timer
expiry itself - which is more likely to trigger these days because the
tick is now 1 msec, and kernel virtualization is more common too, which
can introduce almost arbitrary 'CPU delays' at any point in the kernel.
Ingo
next prev parent reply other threads:[~2003-10-15 18:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-11 15:01 Manfred Spraul
2003-10-11 15:49 ` Ingo Molnar
2003-10-11 16:08 ` Ingo Molnar
2003-10-11 16:17 ` Manfred Spraul
2003-10-13 10:12 ` Andrew Morton
2003-10-11 16:40 ` Ingo Molnar
2003-10-14 4:24 ` Linus Torvalds
2003-10-14 11:43 ` Ingo Molnar [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-11 8:55 Ingo Molnar
2003-10-16 17:17 ` Andrea Arcangeli
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=Pine.LNX.4.56.0310141339220.17642@earth \
--to=mingo@elte.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.com \
--cc=torvalds@osdl.org \
/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®