mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shuah Khan <shuahkh@osg.samsung.com>
To: Linus Torvalds <torvalds@linux-foundation.org>,
	Ming Lei <ming.lei@canonical.com>
Cc: Shuah Khan <shuahkhan@gmail.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 4.2-rc1
Date: Thu, 09 Jul 2015 07:10:09 -0600	[thread overview]
Message-ID: <559E72B1.2050903@osg.samsung.com> (raw)
In-Reply-To: <CA+55aFxc6Dg40L1CvNkxWopaO1_WQUu9L5ncv=8VgsGgB8ZgFQ@mail.gmail.com>

On 07/08/2015 09:17 PM, Linus Torvalds wrote:
> On Wed, Jul 8, 2015 at 5:58 PM, Ming Lei <ming.lei@canonical.com> wrote:
>> On Thu, Jul 9, 2015 at 1:29 AM, Linus Torvalds
>> <torvalds@linux-foundation.org> wrote:
>>> Also, it looks like you need to hold the "fw_lock" to even look at
>>> that pointer, since the buffer can get reallocated etc.
>>
>> Yes, the above code with holding 'fw_lock' is right fix for the issue since
>> sysfs read can happen anytime, and there is one race between firmware
>> request abort and reading uevent of sysfs.
> 
> So if fw_priv->buf is NULL, what should we do?
> 
> Should we skip the TIMEOUT= and ASYNC= fields too?
> 
> Something like the attached, perhaps?
> 
> Shuah, how reproducible is this? Does this (completely untested) patch
> make any difference?
> 

Happened both times I booted 4.2-rc1 up, so I would say 100% so far.
I will test with your patch and report results.

-- Shuah


-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978

  parent reply	other threads:[~2015-07-09 13:10 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-05 20:22 Linus Torvalds
2015-07-05 23:01 ` Guenter Roeck
2015-07-07  5:50 ` linux-next: stats (Was: Linux 4.2-rc1) Stephen Rothwell
2015-07-07 12:56 ` Build failure on ARM64 for Linux 4.2-rc1 was: Linux 4.2-rc1 Mark Langsdorf
2015-07-09 16:46   ` Mark Langsdorf
2015-07-09 16:59     ` Peter Zijlstra
2015-07-13 16:55       ` Mark Langsdorf
2015-07-08 16:32 ` Shuah Khan
2015-07-08 17:05   ` Casey Schaufler
2015-07-08 17:33     ` Shuah Khan
2015-07-08 17:55       ` Casey Schaufler
2015-07-08 17:17   ` Linus Torvalds
2015-07-08 17:29     ` Linus Torvalds
2015-07-08 17:47       ` Casey Schaufler
2015-07-08 18:03         ` Stephen Smalley
2015-07-09  0:58       ` Ming Lei
2015-07-09  3:17         ` Linus Torvalds
2015-07-09  5:00           ` Ming Lei
2015-07-09 13:10           ` Shuah Khan [this message]
2015-07-09 13:44             ` Shuah Khan
2015-07-09 13:47               ` Shuah Khan
2015-07-09 14:45               ` Greg Kroah-Hartman
2015-07-09 17:40                 ` Shuah Khan
2015-07-10 16:58                   ` Shuah Khan
2015-07-10 17:11                     ` Linus Torvalds
     [not found]                       ` <55A03A33.8060405@osg.samsung.com>
     [not found]                         ` <CA+55aFzDu9acMKHJFkxzg+1jeHNpGRhmM=pu2z-so5QYTMbvcA@mail.gmail.com>
2015-07-10 21:57                           ` Shuah Khan
2015-07-10 22:36                           ` Ming Lei
2015-07-08 19:00     ` Ingo Molnar

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=559E72B1.2050903@osg.samsung.com \
    --to=shuahkh@osg.samsung.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.lei@canonical.com \
    --cc=shuahkhan@gmail.com \
    --cc=torvalds@linux-foundation.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