Re: 2.6.22.6 + oprofile oops
From: Sami Farin
Date: Mon Oct 01 2007 - 09:22:34 EST
On Mon, Oct 01, 2007 at 12:29:18 +0200, Andi Kleen wrote:
> Sami Farin <safari-kernel@xxxxxxxxxxxxx> writes:
...
> Can you reproduce it with a non tainted kernel without any patches like CFS applied?
I tried without CFS and it Oopsed just as nicely,
the only difference was that in call trace before
:oprofile:wq_sync_buffer there's now cache_reap.
Call Trace:
[<ffffffff80231988>] get_task_mm+0x18/0x50
[<ffffffff88316b64>] :oprofile:sync_buffer+0xf4/0x450
[<ffffffff88316650>] :oprofile:wq_sync_buffer+0x0/0x60
[<ffffffff88316683>] :oprofile:wq_sync_buffer+0x33/0x60
[<ffffffff80289f10>] cache_reap+0x0/0x130
[<ffffffff80243269>] run_workqueue+0x89/0x120
[<ffffffff80243cf7>] worker_thread+0xc7/0x130
[<ffffffff802474d0>] autoremove_wake_function+0x0/0x40
[<ffffffff80243c30>] worker_thread+0x0/0x130
[<ffffffff802470cd>] kthread+0x4d/0x80
[<ffffffff8020aa78>] child_rip+0xa/0x12
[<ffffffff80247080>] kthread+0x0/0x80
[<ffffffff8020aa6e>] child_rip+0x0/0x12
> The oops happens because oprofile tries to reference a NULL task in
> its event buffer for a context switch, which might well be a minor
> merging mistake or similar in the CFS backport.
...
> > 2007-09-22 13:53:32.527385634 <4>[ 3372.390442] Call Trace:
> > 2007-09-22 13:53:32.527390314 <4>[ 3372.390457] [<ffffffff80232b88>] get_task_mm+0x18/0x60
> > 2007-09-22 13:53:32.527391990 <4>[ 3372.390484] [<ffffffff8831abd4>] :oprofile:sync_buffer+0xf4/0x480
> > 2007-09-22 13:53:32.527393666 <4>[ 3372.390544] [<ffffffff8831a6b0>] :oprofile:wq_sync_buffer+0x0/0x60
> > 2007-09-22 13:53:32.527399673 <4>[ 3372.390576] [<ffffffff8831a6e3>] :oprofile:wq_sync_buffer+0x33/0x60
> > 2007-09-22 13:53:32.527401419 <4>[ 3372.390602] [<ffffffff80244bfd>] run_workqueue+0xcd/0x170
> > 2007-09-22 13:53:32.527406238 <4>[ 3372.390635] [<ffffffff802456b3>] worker_thread+0xb3/0x120
> > 2007-09-22 13:53:32.527421324 <4>[ 3372.390652] [<ffffffff80249000>] autoremove_wake_function+0x0/0x40
> > 2007-09-22 13:53:32.527423140 <4>[ 3372.390684] [<ffffffff80245600>] worker_thread+0x0/0x120
> > 2007-09-22 13:53:32.527424816 <4>[ 3372.390697] [<ffffffff80248bfd>] kthread+0x4d/0x80
> > 2007-09-22 13:53:32.527426423 <4>[ 3372.390730] [<ffffffff8020abc8>] child_rip+0xa/0x12
> > 2007-09-22 13:53:32.527428099 <4>[ 3372.390810] [<ffffffff80248bb0>] kthread+0x0/0x80
> > 2007-09-22 13:53:32.527444931 <4>[ 3372.390822] [<ffffffff8020abbe>] child_rip+0x0/0x12
--
Do what you love because life is too short for anything else.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/