BUG? a suspected race bug at sdio_irq_thread()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux