mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: marcelo.tosatti@cyclades.com,
	ppc64-dev <linuxppc64-dev@ozlabs.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Signal hadnling fix for 2.4
Date: Tue, 28 Feb 2006 15:01:34 +1100	[thread overview]
Message-ID: <17411.51998.642468.642351@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20060227160337.65610906.sfr@canb.auug.org.au>

Stephen Rothwell writes:

> While investigating a bug report about a 64bit application that crashed in
> malloc, Paul Mackerras noticed that sys_rt_sigreturn's return value was
> "int".  It needs to be "long" or else the return value of a syscall that
> is interrupted by a signal will be truncated to 32 bits and then sign
> extended.  This causes .e.g mmap's return value to be corrupted if it is
> returning an address above 2^31 (which is what caused a SEGV in malloc).
> This problem obviously only affects 64 bit processes.
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>

Acked-by: Paul Mackerras <paulus@samba.org>

      reply	other threads:[~2006-02-28  4:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-27  5:03 Stephen Rothwell
2006-02-28  4:01 ` Paul Mackerras [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=17411.51998.642468.642351@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc64-dev@ozlabs.org \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=sfr@canb.auug.org.au \
    /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®