From: Josh Boyer <jdub@us.ibm.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Wim Van Sebroeck <wim@iguana.be>,
Linus Torvalds <torvalds@osdl.org>,
linux-kernel@vger.kernel.org,
Chuck Ebbert <76306.1226@compuserve.com>,
"P @ Draig Brady" <P@draigBrady.com>,
Ben Dooks <ben-linux@fluff.org>,
Dimitry Andric <dimitry.andric@tomtom.com>,
Olaf Hering <olh@suse.de>, Deepak Saxena <dsaxena@plexity.net>,
Christer Weinigel <wingel@nano-system.com>
Subject: Re: [WATCHDOG] v2.6.13 watchdog-patches
Date: Tue, 06 Sep 2005 12:06:25 -0500 [thread overview]
Message-ID: <1126026385.6930.3.camel@windu.rchland.ibm.com> (raw)
In-Reply-To: <1125778302.3223.29.camel@laptopd505.fenrus.org>
On Sat, 2005-09-03 at 22:11 +0200, Arjan van de Ven wrote:
> On Sat, 2005-09-03 at 22:04 +0200, Wim Van Sebroeck wrote:
> > Author: Chuck Ebbert <76306.1226@compuserve.com>
> > Date: Fri Aug 19 14:14:07 2005 +0200
> >
> > [WATCHDOG] softdog-timer-running-oops.patch
> >
> > The softdog watchdog timer has a bug that can create an oops:
> >
> > 1. Load the module without the nowayout option.
> > 2. Open the driver and close it without writing 'V' before close.
> > 3. Unload the module. The timer will continue to run...
> > 4. Oops happens when timer fires.
> >
> > Reported Sun, 10 Oct 2004, by Michael Schierl <schierlm@gmx.de>
> >
> > Fix is easy: always take a reference on the module on open.
> > Release it only when the device is closed and no timer is running.
> > Tested on 2.6.13-rc6 using the soft_noboot option. While the
> > timer is running and the device is closed, the module use count
> > stays at 1. After the timer fires, it drops to 0. Repeatedly
> > opening and closing the driver caused no problems. Please apply.
>
>
> this looks ENTIRELY like the wrong solution!
> Isn't it a LOT easier to just del_timer_sync() the timer from the module
> exit code? Mucking with module refcounts in a driver is almost always a
> sign of a bug or at least really bad design, and I think that is the
> case here.....
>
But that defeats the purpose of the nowayout option doesn't it?
josh
next prev parent reply other threads:[~2005-09-06 17:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-03 20:04 Wim Van Sebroeck
2005-09-03 20:11 ` Arjan van de Ven
2005-09-06 17:06 ` Josh Boyer [this message]
2005-09-06 21:41 ` Wim Van Sebroeck
2005-09-10 10:08 ` Arjan van de Ven
2005-09-12 17:28 ` Bill Davidsen
2005-09-03 22:44 Chuck Ebbert
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=1126026385.6930.3.camel@windu.rchland.ibm.com \
--to=jdub@us.ibm.com \
--cc=76306.1226@compuserve.com \
--cc=P@draigBrady.com \
--cc=arjan@infradead.org \
--cc=ben-linux@fluff.org \
--cc=dimitry.andric@tomtom.com \
--cc=dsaxena@plexity.net \
--cc=linux-kernel@vger.kernel.org \
--cc=olh@suse.de \
--cc=torvalds@osdl.org \
--cc=wim@iguana.be \
--cc=wingel@nano-system.com \
/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®