linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* opp_get_notifier() needs to be under rcu_lock?
@ 2012-11-20 20:08 Kees Cook
  2012-11-21 10:10 ` [PATCH] PM / devfreq: missing rcu_read_lock() added for find_device_opp() MyungJoo Ham
  0 siblings, 1 reply; 6+ messages in thread
From: Kees Cook @ 2012-11-20 20:08 UTC (permalink / raw)
  To: MyungJoo Ham; +Cc: LKML, Serge Hallyn

Hi,

It looks like find_device_opp() (called from opp_get_notifier()) needs
to be under RCU read lock, but this doesn't seem to be happening in
drivers/devfreq/devfreq.c. Doesn't this run the risk of referencing a
freed variable?

Thanks,

-Kees

-- 
Kees Cook
Chrome OS Security

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

end of thread, other threads:[~2012-11-22 18:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-20 20:08 opp_get_notifier() needs to be under rcu_lock? Kees Cook
2012-11-21 10:10 ` [PATCH] PM / devfreq: missing rcu_read_lock() added for find_device_opp() MyungJoo Ham
2012-11-21 13:46   ` Serge E. Hallyn
2012-11-22  6:36     ` MyungJoo Ham
2012-11-22 14:09       ` Serge E. Hallyn
2012-11-22 17:45         ` Serge E. Hallyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).