From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] sigaltstack and RBS
Date: Sun, 09 Feb 2003 05:27:54 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590709805825@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590709805824@msgid-missing>
>>>>> On Sun, 9 Feb 2003 16:19:20 +1100, Matt Chapman <matthewc@cse.unsw.edu.au> said:
Matt> I'm having some difficulty "demand paging" register backing
Matt> store from userspace (i.e. using SIGSEGV to map pages in on
Matt> demand).
Matt> The problem is that even when using sigaltstack, the original
Matt> backing store (which caused the fault) is still touched when
Matt> returning to the signal trampoline, before it switches to the
Matt> alternate RBS. Thus I get recursive faulting before it gets
Matt> to the signal handler.
Matt> Ideally, signal handling on an alternate RBS/stack wouldn't
Matt> touch the original RBS/stack at all.
Matt> Any suggestions how to deal with this?
It sounds like you're using an old kernel. I don't recall exactly
when this was fixed, but recent kernels will put the dirty partition
on the _new_ stack, not the old one.
You can check gate.S:ia64_sigtramp(). If it branches to "setup_rbs"
_before_ the first "alloc" instruction, you should be fine.
--david
next prev parent reply other threads:[~2003-02-09 5:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-09 5:19 [Linux-ia64] sigaltstack and RBS Matt Chapman
2003-02-09 5:27 ` David Mosberger [this message]
2003-02-09 5:47 ` Matt Chapman
2003-02-09 7:58 ` Matt Chapman
2003-02-09 8:48 ` David Mosberger
2003-02-09 10:55 ` Matt Chapman
2003-02-09 18:22 ` David Mosberger
2003-02-11 3:06 ` David Mosberger
2003-02-11 7:26 ` Matt Chapman
2003-02-11 19:11 ` David Mosberger
2003-03-07 23:35 ` Bjorn Helgaas
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=marc-linux-ia64-105590709805825@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@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.