mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Dangerous devm_request_irq() conversions
@ 2013-02-22  6:53 Dmitry Torokhov
  2013-02-22  7:12 ` Jingoo Han
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Torokhov @ 2013-02-22  6:53 UTC (permalink / raw)
  To: Jingoo Han, Linus Torvalds; +Cc: linux-kernel, Andrew Morton

Hi,

It looks like a whole slew of devm_request_irq() conversions just got
applied to mainline and many of them are quite broken.

Consider fd5231ce336e038037b4f0190a6838bdd6e17c6d or
c1879fe80c61f3be6f2ddb82509c2e7f92a484fe: the drivers udsed first to
free IRQ and then unregister the corresponding device ensuring that IRQ
handler, while it runs, has the device available. The mechanic
conversion to devm_request_irq() reverses the order of these operations
opening the race window where IRQ can reference device (or other
resource) that is already gone.

It would be nice if these could be reverted and revioewed again for
correctness.

In general any conversion to devm_request_irq() needs double and triple
checking.

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-22 18:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22  6:53 Dangerous devm_request_irq() conversions Dmitry Torokhov
2013-02-22  7:12 ` Jingoo Han
2013-02-22  7:26   ` Dmitry Torokhov
2013-02-22  7:57     ` Jingoo Han
2013-02-22  8:05       ` Dmitry Torokhov
2013-02-22 18:24         ` 'Tejun Heo'

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®