[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130222065345.GA30816@core.coreip.homeip.net>
Date: Thu, 21 Feb 2013 22:53:45 -0800
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Jingoo Han <jg1.han@...sung.com>,
Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Dangerous devm_request_irq() conversions
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists