From: Ingo Molnar <mingo@elte.hu>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] rt-mutex: fixup rt-mutex debug code
Date: Thu, 12 Oct 2006 20:42:44 +0200 [thread overview]
Message-ID: <20061012184244.GA27879@elte.hu> (raw)
In-Reply-To: <1160658511.2006.120.camel@taijtu>
* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> BUG: warning at kernel/rtmutex-debug.c:125/rt_mutex_debug_task_free() (Not tainted)
> [<c04051e3>] show_trace_log_lvl+0x58/0x16a
> [<c04057f0>] show_trace+0xd/0x10
> [<c0405900>] dump_stack+0x19/0x1b
> [<c043f03d>] rt_mutex_debug_task_free+0x35/0x6a
> [<c04224c0>] free_task+0x15/0x24
> [<c042378c>] copy_process+0x12bd/0x1324
> [<c0423835>] do_fork+0x42/0x113
> [<c04021dd>] sys_fork+0x19/0x1b
> [<c0403fb7>] syscall_call+0x7/0xb
>
> In copy_process(), dup_task_struct() also duplicates the ->pi_lock,
> ->pi_waiters and ->pi_blocked_on members. rt_mutex_debug_task_free()
> called from free_task() validates these members. However free_task()
> can be invoked before these members are reset for the new task.
>
> Move the initialization code before the first bail that can hit
> free_task().
>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
thanks for tracking this one down!
Acked-by: Ingo Molnar <mingo@elte.hu>
Ingo
prev parent reply other threads:[~2006-10-12 18:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-12 13:08 Peter Zijlstra
2006-10-12 18:42 ` Ingo Molnar [this message]
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=20061012184244.GA27879@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@osdl.org \
--cc=linux-kernel@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®