All of lore.kernel.org
 help / color / mirror / Atom feed
From: "홍신 shin hong" <hongshin@gmail.com>
To: linux-mmc@vger.kernel.org
Subject: BUG? a suspected race bug at sdio_irq_thread()
Date: Mon, 7 Sep 2009 19:15:37 +0900	[thread overview]
Message-ID: <2014bcab0909070315j67c5db31gff6bc70f0b6369a5@mail.gmail.com> (raw)
In-Reply-To: <2014bcab0909022048n2c937af4l5bd38c501469b1c7@mail.gmail.com>

Hello. I am reporting a suspected race bug at sdio_irq_thread()
in drivers/mmc/core/sdio_irq.c of Linux 2.6.30.5.

I hope this report is helpful. I am not certain whether this reports
real bug or not since I do not have much background.
So, please examine the report and let me know your opinion.

sdio_irq_therad() is spawned as a sdio_card_irq_get().
This thread is stopped by sdio_card_irq_put().

sdio_irq_thread() finishes its do-while iteration
when kthread_should_stop() returns true
or a condition is satisfied (break statements at line 106)

For the later case, if sdio_irq_thread() is finished
before kthread_should_stop() returns false.

In that situation, if other thread invokes kthread_stop(),
the caller of kthread_stop() might have a problem (waiting indefinitely).

Could you examine the possibility of this type of errors please?

Thank you

Sincerely
Shin Hong

       reply	other threads:[~2009-09-07 10:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2014bcab0909022048n2c937af4l5bd38c501469b1c7@mail.gmail.com>
2009-09-07 10:15 ` 홍신 shin hong [this message]
2009-09-08  2:30   ` BUG? a suspected race bug at sdio_irq_thread() Nicolas Pitre

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=2014bcab0909070315j67c5db31gff6bc70f0b6369a5@mail.gmail.com \
    --to=hongshin@gmail.com \
    --cc=linux-mmc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.