From: Manfred Spraul <manfred@colorfullife.com>
To: "Mika Penttilä" <mika.penttila@kolumbus.fi>
Cc: Zwane Mwaikambo <zwane@linuxpower.ca>,
Ingo Molnar <mingo@elte.hu>,
Linux Kernel <linux-kernel@vger.kernel.org>,
William Lee Irwin III <wli@holomorphy.com>
Subject: Re: [RFC][PATCH][2.5] Possible race in wait_task_zombie and finish_task_switch
Date: Sun, 25 May 2003 13:23:59 +0200 [thread overview]
Message-ID: <3ED0A7CF.9040803@colorfullife.com> (raw)
In-Reply-To: <3ED0A248.10308@kolumbus.fi>
Do we have an idea which reference is miscounted? It seems that there
are 4 different kinds of references to a task structure:
- the reference for the stack itself, acquired by setting usage to 2,
dropped by schedule_tail.
- the reference for wait4, acquired by setting usage to 2, dropped by
wait_task_zombie.
- references for the pid structures, maintained by pid.c
- temporary references for looking at tsk->{fs,mm,files,tty}, used by
/proc, ptrace, tty.
>kernel BUG at kernel/sched.c:746!
>
>
Hmm. What is schedule.c:746? There is no BUG in that area in the bk tree.
Zwane, is it easy to reproduce the crash? I could write a patch that
adds 4 refcounters, then we could find out in which area we must look.
--
Manfred
next prev parent reply other threads:[~2003-05-25 11:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-25 10:11 [RFC][PATCH][2.5] Possible race in wait_task_zombie and finish_task_switch Zwane Mwaikambo
2003-05-25 10:27 ` Ingo Molnar
2003-05-25 10:29 ` Zwane Mwaikambo
2003-05-25 11:00 ` Mika Penttilä
2003-05-25 11:23 ` Manfred Spraul [this message]
2003-05-25 11:29 ` Zwane Mwaikambo
2003-05-25 20:31 ` William Lee Irwin III
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=3ED0A7CF.9040803@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.penttila@kolumbus.fi \
--cc=mingo@elte.hu \
--cc=wli@holomorphy.com \
--cc=zwane@linuxpower.ca \
/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