From: Keith Owens <kaos@ocs.com.au>
To: Andrew Morton <akpm@zip.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Recursive deadlock on die_lock
Date: Sun, 14 Oct 2001 17:13:16 +1000 [thread overview]
Message-ID: <28465.1003043596@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Sat, 13 Oct 2001 23:42:51 MST." <3BC933EA.4636D57C@zip.com.au>
On Sat, 13 Oct 2001 23:42:51 -0700,
Andrew Morton <akpm@zip.com.au> wrote:
>Keith Owens wrote:
>>
>> ...
>> If show_registers() fails (which it does far too often on IA64) then
>> the system deadlocks trying to recursively obtain die_lock. Also
>> die_lock is never used outside die(), it should be proc local.
>> Suggested fix:
>>
>
>Looks to me like it'll work. But why does ia64 show_registers()
>die so easily? Can it be taught to validate addresses before
>dereferencing them somehow?
Unwind code. It is impossible to obtain IA64 saved registers or back
trace the calling sequence without using the unwind API. That API
relies on decent unwind data being associated with each function
prologue, stack adjustment, save of return registers etc. Not an issue
for C code, it is for Assembler where the unwind info has to be hand
coded to match what the asm is doing. IA64 also has PAL code which is
called directly by the kernel, that PAL code has no unwind data so
failures in PAL code result in bad or incomplete back traces.
Unwind is not supposed to fail, it should detect bad input data and
avoid errors. Alas, sometimes it does fail.
next prev parent reply other threads:[~2001-10-14 7:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-14 4:25 Recursive deadlock on die_lock Keith Owens
2001-10-14 6:42 ` Andrew Morton
2001-10-14 7:13 ` Keith Owens [this message]
2001-10-14 23:14 ` Eric W. Biederman
2001-10-15 0:42 ` Keith Owens
[not found] <fa.k3c2fuv.1q26ra4@ifi.uio.no>
[not found] ` <fa.idkv82v.3jcuip@ifi.uio.no>
2001-10-15 1:55 ` Sam Varshavchik
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=28465.1003043596@ocs3.intra.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=akpm@zip.com.au \
--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 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.