Paul Mackerras <[EMAIL PROTECTED]> writes:
> Andreas Schwab writes:
>
>> Paul Mackerras <[EMAIL PROTECTED]> writes:
>>
>> > we need to use get_user, not __get_user, since we haven't done an
>> > access_ok() check on the address.
>>
>> The address is always ok since its a compat pointer, see do_s
Andreas Schwab writes:
> Paul Mackerras <[EMAIL PROTECTED]> writes:
>
> > we need to use get_user, not __get_user, since we haven't done an
> > access_ok() check on the address.
>
> The address is always ok since its a compat pointer, see do_setcontext.
OK, since it's inside a CONFIG_PPC64 bloc
Paul Mackerras <[EMAIL PROTECTED]> writes:
> we need to use get_user, not __get_user, since we haven't done an
> access_ok() check on the address.
The address is always ok since its a compat pointer, see do_setcontext.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Product
Andreas Schwab writes:
> The new context may not be 16-byte aligned, so the real address of the
> mcontext structure should be read from the uc_regs pointer instead of
> directly using the (unaligned) uc_mcontext field.
Good catch, but...
> @@ -941,9 +941,17 @@ long sys_swapcontext(struct uconte
The new context may not be 16-byte aligned, so the real address of the
mcontext structure should be read from the uc_regs pointer instead of
directly using the (unaligned) uc_mcontext field.
Signed-off-by: Andreas Schwab <[EMAIL PROTECTED]>
---
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/