Commit ece74be2 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Mask off stack ptr in compat_alloc_user_space() for 32-bit.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 84460cf2
......@@ -133,6 +133,8 @@ static __inline__ void __user *compat_alloc_user_space(long len)
if (!(test_thread_flag(TIF_32BIT)))
usp += STACK_BIAS;
else
usp &= 0xffffffffUL;
return (void __user *) (usp - len);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment