ChangeSet 1.1539.3.4, 2005/02/07 20:24:13-08:00, [EMAIL PROTECTED]

        [SPARC64]: Mask off stack ptr in alloc_user_space() for 32-bit.
        
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 ioctl32.c     |    2 ++
 sys_sparc32.c |    2 ++
 2 files changed, 4 insertions(+)


diff -Nru a/arch/sparc64/kernel/ioctl32.c b/arch/sparc64/kernel/ioctl32.c
--- a/arch/sparc64/kernel/ioctl32.c     2005-02-09 09:08:32 -08:00
+++ b/arch/sparc64/kernel/ioctl32.c     2005-02-09 09:08:32 -08:00
@@ -562,6 +562,8 @@
 
        if (!(current->thread.flags & SPARC_FLAG_32BIT))
                usp += STACK_BIAS;
+       else
+               usp &= 0xffffffffUL;
 
        return (void *) (usp - len);
 }
diff -Nru a/arch/sparc64/kernel/sys_sparc32.c 
b/arch/sparc64/kernel/sys_sparc32.c
--- a/arch/sparc64/kernel/sys_sparc32.c 2005-02-09 09:08:32 -08:00
+++ b/arch/sparc64/kernel/sys_sparc32.c 2005-02-09 09:08:32 -08:00
@@ -770,6 +770,8 @@
 
        if (!(current->thread.flags & SPARC_FLAG_32BIT))
                usp += STACK_BIAS;
+       else
+               usp &= 0xffffffffUL;
 
        return (void *) (usp - len);
 }
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-24" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to