lkml.org 
[lkml]   [2006]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Signal hadnling fix for 2.4
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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-28 05:04    [W:0.045 / U:0.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site