Re: Invalid SIGSEGV from sparc64_set_context ()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 17, 2016 at 11:51 PM, David Miller <davem@xxxxxxxxxxxxx> wrote:
. . .
> Does the obvious patch below fix the problem for you?
>
> diff --git a/arch/sparc/kernel/signal_64.c b/arch/sparc/kernel/signal_64.c
> index d88beff4..39aaec1 100644
> --- a/arch/sparc/kernel/signal_64.c
> +++ b/arch/sparc/kernel/signal_64.c
> @@ -52,7 +52,7 @@ asmlinkage void sparc64_set_context(struct pt_regs *regs)
>         unsigned char fenab;
>         int err;
>
> -       flush_user_windows();
> +       synchronize_user_stack();
>         if (get_thread_wsaved()                                 ||
>             (((unsigned long)ucp) & (sizeof(unsigned long)-1))  ||
>             (!__access_ok(ucp, sizeof(*ucp))))
. . .

 It does.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux