All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: linux-s390@vger.kernel.org
Subject: Re: [bug-libsigsegv] Re: sigsegv on s390 only giving start address of page in segv handler
Date: Tue, 15 Mar 2011 21:23:17 +0000	[thread overview]
Message-ID: <201103152223.19033.bruno@clisp.org> (raw)
In-Reply-To: <4D7FD266.8050108@redhat.com>

Christian Borntraeger wrote:
> Can you give some insights about the other use cases? Userspace page faults can
> be handled just fine with the page address (I have done that for the s390x
> port of valgrind). Would a "works most of the time but might return the page
> address in 10% of the cases" be ok for your other use cases?

For most applications, that would work, yes. In GNU clisp, the fault handler
needs some changes, because it assumed to be able to detect the region
within the page based on the address, and had some related assertions. But
in the end, the mprotect() call emitted by the fault handler depends only on
the page and not on the address within the page.

Bruno
-- 
In memoriam Diego de Enzinas <http://en.wikipedia.org/wiki/Diego_de_Enzinas>

           reply	other threads:[~2011-03-15 21:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <4D7FD266.8050108@redhat.com>]

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=201103152223.19033.bruno@clisp.org \
    --to=bruno@clisp.org \
    --cc=linux-s390@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.