From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Michael Buesch <mb@bu3sch.de>
Cc: Greg KH <gregkh@suse.de>,
linux-kernel@vger.kernel.org, Dave Jones <davej@redhat.com>
Subject: Re: NULL pointer dereference in sysfs_readdir
Date: Sun, 22 Oct 2006 11:08:58 +0200 [thread overview]
Message-ID: <453B352A.5050700@s5r6.in-berlin.de> (raw)
In-Reply-To: <200610212325.18976.mb@bu3sch.de>
Michael Buesch wrote:
> On Saturday 21 October 2006 23:09, Stefan Richter wrote:
...
>>>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=188140
[hard lockups, also one oops: 'Unable to handle kernel NULL pointer
dereference at virtual address 00000020', 'EIP is at sysfs_readdir',
'Process hald']
...
>>> Maybe FC changed some of the structures. I couldn't find
>>> a used structure with an interresting member at offset 00000020, at least.
>> Could be struct sysfs_dirent.s_dentry if I'm counting correctly in
>> http://www.linux-m32r.org/lxr/http/source/include/linux/sysfs.h?v=2.6.16#L68
>> The trace was from 2.6.16.
>
> Yeah, I found that offset, too, but:
>
> There is only one usage of s_dentry
> if (next->s_dentry)
>
> But _before_ that there already comes
> if (!next->s_element)
>
> So, if "next" was NULL, it would already oops there.
What if "next" became NULL afterwards? I know it's unlikely (but so is
the whole bug, given that we have just one reporter despite the bug's
age), but is it impossible? IOW does sysfs_readdir have any indirect
mutex protection?
Dave, do you patch sysfs datatypes in FC's kernel, or types they include?
--
Stefan Richter
-=====-=-==- =-=- =-==-
http://arcgraph.de/sr/
next prev parent reply other threads:[~2006-10-22 9:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-21 8:43 Stefan Richter
2006-10-21 20:04 ` Michael Buesch
2006-10-21 21:09 ` Stefan Richter
2006-10-21 21:25 ` Michael Buesch
2006-10-22 9:08 ` Stefan Richter [this message]
2006-10-22 10:40 ` Michael Buesch
2006-10-22 18:11 ` Dave Jones
2006-10-30 12:36 ` Maneesh Soni
2006-10-31 8:36 ` Stefan Richter
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=453B352A.5050700@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=davej@redhat.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mb@bu3sch.de \
/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
all inboxes | Powered by JetHome®