lkml.org 
[lkml]   [2009]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: get_device_parent() race bug
Greg KH wrote:
>>> BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
>> Ping. This one needs to be fixed in -stable. It can be triggered by
>> other char devices too.
>
> Sorry, been slowly catching up...
>
> This can be triggered by char devices? Huh? How? I don't see the
> failure path that is happening here.

Oooh, s/char/virtual/. The bug is in the path which creates a
directory under the phony parent.

> And char devices shouldn't really be using the kobject at all, except
> for a very basic reference count.
>
> I keep threatening to rip kobject out of a char device and just use a
> kref, as that is all that is really needed. Well, that and the kmap
> stuff, but again, it's not a "real" kobject being used there...
>
> Perhaps now is the time to do this.

Yay!

--
tejun


\
 
 \ /
  Last update: 2009-10-06 03:21    [W:0.208 / U:0.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site