From: Linus Torvalds <torvalds@linux-foundation.org>
To: Arjan van de Ven <arjan@linux.intel.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
NetDev <netdev@vger.kernel.org>, Dmitry Torokhov <dtor@mail.ru>
Subject: Re: Oops/Warning report for the week of March 28th 2008
Date: Fri, 28 Mar 2008 13:51:38 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.1.00.0803281329340.14670@woody.linux-foundation.org> (raw)
In-Reply-To: <alpine.LFD.1.00.0803281310480.14670@woody.linux-foundation.org>
On Fri, 28 Mar 2008, Linus Torvalds wrote:
>
> Is there something obvious that I'm missing? I'd really like to see the
> whole posting that the oops came from. Do you save the originals or even
> just message ID's from the ones you pick from emails?
Hmm. Definitely not from the kernel mailing list. I'm intrigued, where did
that oops #5814 come from (picked a recent one at random)?
The thing is recent, and oopses on "mutex_lock(dev->mutex)" in
input_release_device. In particular, the path *seems* to be this one:
evdev_release ->
evdev_ungrab ->
input_release_device ->
mutex_lock ->
mutex_lock_nested ->
__mutex_lock_common ->
list_add_tail(&waiter.list, &lock->wait_list)
where "lock->wait_list.prev" seems to be 0x6b6b6b6b6b6b6b6b, which is the
use-after-free poison pattern.
(In fact, I think the access that actually oopses is when the
debug version of __list_add() does
if (unlikely(prev->next != next)) {
because that "prev" pointer is crap).
So it seems that when input_release_device() does:
struct input_dev *dev = handle->dev;
mutex_lock(&dev->mutex);
the "dev" it uses has already been released. And this only shows up as a
problem when you have slab debugging turned on (like the Fedora kernels
do, thank you all Fedora guys).
The odd thing is that I don't think any of this code has really changed
recently.
Linus
next prev parent reply other threads:[~2008-03-28 20:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 18:55 Arjan van de Ven
2008-03-28 20:21 ` Linus Torvalds
2008-03-28 20:51 ` Linus Torvalds [this message]
2008-03-28 21:01 ` Johannes Berg
2008-03-28 21:24 ` Linus Torvalds
2008-03-28 21:43 ` Johannes Berg
2008-03-28 22:01 ` Linus Torvalds
2008-03-28 22:14 ` Jiri Kosina
2008-03-28 22:14 ` Johannes Berg
2008-03-28 21:16 ` Dmitry Torokhov
2008-03-29 12:20 ` Björn Steinbrink
2008-03-28 20:57 ` Björn Steinbrink
2008-03-28 22:33 ` Arjan van de Ven
2008-03-28 22:58 ` Arjan van de Ven
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=alpine.LFD.1.00.0803281329340.14670@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=arjan@linux.intel.com \
--cc=dtor@mail.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.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
all inboxes | Powered by JetHome®