From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Aaron Plattner <aplattner@nvidia.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>,
"cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] cpufreq: use cpufreq_cpu_get to avoid cpufreq_get race conditions
Date: Thu, 06 Mar 2014 13:30:57 +0100 [thread overview]
Message-ID: <2112618.kABuM8MuMA@vostro.rjw.lan> (raw)
In-Reply-To: <5317CBF2.40908@nvidia.com>
On Wednesday, March 05, 2014 05:14:26 PM Aaron Plattner wrote:
> On 03/05/14 17:23, Rafael J. Wysocki wrote:
> > On Tuesday, March 04, 2014 12:42:15 PM Aaron Plattner wrote:
> >> If a module calls cpufreq_get while cpufreq is initializing, it's possible for
> >> it to be called after cpufreq_driver is set but before cpufreq_cpu_data is
> >> written during subsys_interface_register. This happens because cpufreq_get
> >> doesn't take the cpufreq_driver_lock around its use of cpufreq_cpu_data.
> >
> > Is this a theoretical race, or can you actually reproduce it? If so, on what
> > system/driver? Or are there any bug reports related to this you can point me
> > to?
>
> It reproduces on my Arch Linux system at home with the nvidia driver,
> and there has been at least one bug report that looks like the same thing:
>
> https://bbs.archlinux.org/viewtopic.php?id=177934
>
> I reproduced the problem with v3.13.5, then applied this change and was
> able to boot successfully 10/10 times. So I guess that means you can add
>
> Tested-by: Aaron Plattner <aplattner@nvidia.com>
Tested-by is not needed if you're the author.
Everybody should test their patches, right? ;-)
I'll mark it for 3.13-stable and add the link above to the changelog.
Thanks!
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
next prev parent reply other threads:[~2014-03-06 12:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 20:42 Aaron Plattner
2014-03-06 1:23 ` Rafael J. Wysocki
2014-03-06 1:14 ` Aaron Plattner
2014-03-06 12:30 ` Rafael J. Wysocki [this message]
2014-03-10 4:26 ` Viresh Kumar
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=2112618.kABuM8MuMA@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=aplattner@nvidia.com \
--cc=cpufreq@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=viresh.kumar@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome