From: richard -rw- weinberger <richard.weinberger@gmail.com>
To: "Toralf Förster" <toralf.foerster@gmx.de>
Cc: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: kernel 2.6.39 (user mode linux) crashes (2.6.38 works fine)
Date: Fri, 20 May 2011 18:24:56 +0200 [thread overview]
Message-ID: <BANLkTikfaKJfnDwQoFi9WLX6q+2HHe90HQ@mail.gmail.com> (raw)
In-Reply-To: <201105201042.15410.toralf.foerster@gmx.de>
2011/5/20 Toralf Förster <toralf.foerster@gmx.de>:
>
> richard -rw- weinberger wrote at 09:56:02
>> 2011/5/20 Toralf Förster <toralf.foerster@gmx.de>:
>> > ...
>> > Kernel panic - not syncing: Kernel mode fault at addr 0x0, ip 0x80a9f6b
>>
>> Looks like a NULL-pointer bug.
>> What code is at address 80a9f6b?
>> Use "objdump -d -S | less" to find it.
> if (unlikely(ret != 0))
> 80a9f3a: 85 c0 test %eax,%eax
> 80a9f3c: 75 ca jne 80a9f08 <futex_wake+0x18>
> goto out;
>
> hb = hash_futex(&key);
> 80a9f3e: 8d 45 e8 lea -0x18(%ebp),%eax
> 80a9f41: e8 aa f6 ff ff call 80a95f0 <hash_futex>
> 80a9f46: 89 c2 mov %eax,%edx
> spin_lock(&hb->lock);
> head = &hb->chain;
>
> plist_for_each_entry_safe(this, next, head, list) {
> 80a9f48: 8b 48 08 mov 0x8(%eax),%ecx
> 80a9f4b: 83 c2 08 add $0x8,%edx
> 80a9f4e: 8d 41 f4 lea -0xc(%ecx),%eax
> 80a9f51: 39 ca cmp %ecx,%edx
> 80a9f53: 8b 70 0c mov 0xc(%eax),%esi
> 80a9f56: 74 6a je 80a9fc2 <futex_wake+0xd2>
> 80a9f58: 89 d9 mov %ebx,%ecx
> 80a9f5a: 83 ee 0c sub $0xc,%esi
> 80a9f5d: 89 d3 mov %edx,%ebx
> 80a9f5f: 89 fa mov %edi,%edx
> 80a9f61: 89 cf mov %ecx,%edi
> 80a9f63: eb 12 jmp 80a9f77 <futex_wake+0x87>
> 80a9f65: 8d 76 00 lea 0x0(%esi),%esi
> 80a9f68: 8d 46 0c lea 0xc(%esi),%eax
> 80a9f6b: 8b 4e 0c mov 0xc(%esi),%ecx
Here in futex_wake() happens a NULL pointer dereference.
Steve, any ideas?
--
Thanks,
//richard
WARNING: multiple messages have this Message-ID (diff)
From: richard -rw- weinberger <richard.weinberger@gmail.com>
To: "Toralf Förster" <toralf.foerster@gmx.de>
Cc: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: kernel 2.6.39 (user mode linux) crashes (2.6.38 works fine)
Date: Fri, 20 May 2011 18:24:56 +0200 [thread overview]
Message-ID: <BANLkTikfaKJfnDwQoFi9WLX6q+2HHe90HQ@mail.gmail.com> (raw)
In-Reply-To: <201105201042.15410.toralf.foerster@gmx.de>
2011/5/20 Toralf Förster <toralf.foerster@gmx.de>:
>
> richard -rw- weinberger wrote at 09:56:02
>> 2011/5/20 Toralf Förster <toralf.foerster@gmx.de>:
>> > ...
>> > Kernel panic - not syncing: Kernel mode fault at addr 0x0, ip 0x80a9f6b
>>
>> Looks like a NULL-pointer bug.
>> What code is at address 80a9f6b?
>> Use "objdump -d -S | less" to find it.
> if (unlikely(ret != 0))
> 80a9f3a: 85 c0 test %eax,%eax
> 80a9f3c: 75 ca jne 80a9f08 <futex_wake+0x18>
> goto out;
>
> hb = hash_futex(&key);
> 80a9f3e: 8d 45 e8 lea -0x18(%ebp),%eax
> 80a9f41: e8 aa f6 ff ff call 80a95f0 <hash_futex>
> 80a9f46: 89 c2 mov %eax,%edx
> spin_lock(&hb->lock);
> head = &hb->chain;
>
> plist_for_each_entry_safe(this, next, head, list) {
> 80a9f48: 8b 48 08 mov 0x8(%eax),%ecx
> 80a9f4b: 83 c2 08 add $0x8,%edx
> 80a9f4e: 8d 41 f4 lea -0xc(%ecx),%eax
> 80a9f51: 39 ca cmp %ecx,%edx
> 80a9f53: 8b 70 0c mov 0xc(%eax),%esi
> 80a9f56: 74 6a je 80a9fc2 <futex_wake+0xd2>
> 80a9f58: 89 d9 mov %ebx,%ecx
> 80a9f5a: 83 ee 0c sub $0xc,%esi
> 80a9f5d: 89 d3 mov %edx,%ebx
> 80a9f5f: 89 fa mov %edi,%edx
> 80a9f61: 89 cf mov %ecx,%edi
> 80a9f63: eb 12 jmp 80a9f77 <futex_wake+0x87>
> 80a9f65: 8d 76 00 lea 0x0(%esi),%esi
> 80a9f68: 8d 46 0c lea 0xc(%esi),%eax
> 80a9f6b: 8b 4e 0c mov 0xc(%esi),%ecx
Here in futex_wake() happens a NULL pointer dereference.
Steve, any ideas?
--
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2011-05-20 16:24 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-19 13:26 kernel 2.6.39 (user mode linux) crashes (2.6.38 works fine) Toralf Förster
2011-05-19 16:34 ` Toralf Förster
2011-05-20 6:44 ` richard -rw- weinberger
2011-05-20 6:44 ` richard -rw- weinberger
2011-05-20 7:43 ` Toralf Förster
2011-05-20 7:43 ` Toralf Förster
2011-05-19 17:00 ` richard -rw- weinberger
2011-05-19 17:00 ` richard -rw- weinberger
2011-05-19 17:20 ` Toralf Förster
2011-05-19 17:20 ` Toralf Förster
2011-05-19 17:25 ` richard -rw- weinberger
2011-05-19 17:25 ` richard -rw- weinberger
2011-05-19 20:18 ` Toralf Förster
2011-05-19 20:18 ` Toralf Förster
2011-05-19 20:43 ` Steven Rostedt
2011-05-19 20:43 ` Steven Rostedt
2011-05-20 7:37 ` Toralf Förster
2011-05-20 7:37 ` Toralf Förster
2011-05-20 7:56 ` richard -rw- weinberger
2011-05-20 7:56 ` richard -rw- weinberger
2011-05-20 8:39 ` richard -rw- weinberger
2011-05-20 8:58 ` Toralf Förster
2011-05-20 8:58 ` Toralf Förster
2011-05-20 9:02 ` richard -rw- weinberger
2011-05-20 9:02 ` richard -rw- weinberger
2011-05-20 9:19 ` Toralf Förster
2011-05-20 9:19 ` Toralf Förster
2011-05-20 8:42 ` Toralf Förster
2011-05-20 8:42 ` Toralf Förster
2011-05-20 16:24 ` richard -rw- weinberger [this message]
2011-05-20 16:24 ` richard -rw- weinberger
2011-05-20 17:19 ` Steven Rostedt
2011-05-20 17:19 ` Steven Rostedt
2011-05-20 15:55 ` Darren Hart
2011-05-20 15:55 ` Darren Hart
2011-05-20 16:04 ` Steven Rostedt
2011-05-20 16:11 ` Steven Rostedt
2011-05-20 17:10 ` Toralf Förster
2011-05-20 17:10 ` Toralf Förster
2011-05-20 17:44 ` Steven Rostedt
2011-05-20 17:44 ` Steven Rostedt
2011-05-20 17:46 ` Steven Rostedt
2011-05-20 17:46 ` Steven Rostedt
2011-05-20 22:53 ` Toralf Förster
2011-05-20 22:53 ` Toralf Förster
2011-05-21 8:53 ` Toralf Förster
2011-05-23 19:17 ` richard -rw- weinberger
2011-05-23 19:17 ` richard -rw- weinberger
2011-05-23 19:48 ` Toralf Förster
2011-05-23 19:48 ` Toralf Förster
2011-05-21 10:12 ` richard -rw- weinberger
2011-05-21 10:12 ` richard -rw- weinberger
2011-05-21 22:37 ` Peter Zijlstra
2011-05-21 22:37 ` Peter Zijlstra
2011-05-21 23:06 ` richard -rw- weinberger
2011-05-21 23:06 ` richard -rw- weinberger
2011-05-20 17:35 ` Darren Hart
2011-05-20 17:41 ` Steven Rostedt
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=BANLkTikfaKJfnDwQoFi9WLX6q+2HHe90HQ@mail.gmail.com \
--to=richard.weinberger@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=toralf.foerster@gmx.de \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.