Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-17 Thread Michael Ellerman
On Tue, 8 Jun 2021 23:46:05 +1000, Michael Ellerman wrote: > In commit 96d7a4e06fab ("powerpc/signal64: Rewrite handle_rt_signal64() > to minimise uaccess switches") the 64-bit signal code was rearranged to > use user_write_access_begin/end(). > > As part of that change the call to

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-14 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of June 14, 2021 5:22 pm: > > > Le 14/06/2021 à 07:55, Nicholas Piggin a écrit : >> Excerpts from Christophe Leroy's message of June 14, 2021 3:31 pm: >>> >>> >>> Le 14/06/2021 à 03:29, Nicholas Piggin a écrit : Excerpts from Nicholas Piggin's

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-14 Thread Michael Ellerman
Nicholas Piggin writes: > Excerpts from Nicholas Piggin's message of June 14, 2021 10:47 am: >> Excerpts from Michael Ellerman's message of June 8, 2021 11:46 pm: >>> In commit 96d7a4e06fab ("powerpc/signal64: Rewrite handle_rt_signal64() >>> to minimise uaccess switches") the 64-bit signal code

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-14 Thread Michael Ellerman
Nicholas Piggin writes: > Excerpts from Michael Ellerman's message of June 8, 2021 11:46 pm: >> In commit 96d7a4e06fab ("powerpc/signal64: Rewrite handle_rt_signal64() >> to minimise uaccess switches") the 64-bit signal code was rearranged to >> use user_write_access_begin/end(). >> >> As part

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-14 Thread Christophe Leroy
Le 14/06/2021 à 07:55, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of June 14, 2021 3:31 pm: Le 14/06/2021 à 03:29, Nicholas Piggin a écrit : Excerpts from Nicholas Piggin's message of June 14, 2021 10:47 am: Excerpts from Michael Ellerman's message of June 8, 2021

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-13 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of June 14, 2021 3:31 pm: > > > Le 14/06/2021 à 03:29, Nicholas Piggin a écrit : >> Excerpts from Nicholas Piggin's message of June 14, 2021 10:47 am: >>> Excerpts from Michael Ellerman's message of June 8, 2021 11:46 pm: In commit 96d7a4e06fab

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-13 Thread Christophe Leroy
Le 14/06/2021 à 03:29, Nicholas Piggin a écrit : Excerpts from Nicholas Piggin's message of June 14, 2021 10:47 am: Excerpts from Michael Ellerman's message of June 8, 2021 11:46 pm: In commit 96d7a4e06fab ("powerpc/signal64: Rewrite handle_rt_signal64() to minimise uaccess switches") the

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-13 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of June 14, 2021 10:47 am: > Excerpts from Michael Ellerman's message of June 8, 2021 11:46 pm: >> In commit 96d7a4e06fab ("powerpc/signal64: Rewrite handle_rt_signal64() >> to minimise uaccess switches") the 64-bit signal code was rearranged to >> use

Re: [PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-13 Thread Nicholas Piggin
Excerpts from Michael Ellerman's message of June 8, 2021 11:46 pm: > In commit 96d7a4e06fab ("powerpc/signal64: Rewrite handle_rt_signal64() > to minimise uaccess switches") the 64-bit signal code was rearranged to > use user_write_access_begin/end(). > > As part of that change the call to

[PATCH] powerpc/signal64: Copy siginfo before changing regs->nip

2021-06-08 Thread Michael Ellerman
In commit 96d7a4e06fab ("powerpc/signal64: Rewrite handle_rt_signal64() to minimise uaccess switches") the 64-bit signal code was rearranged to use user_write_access_begin/end(). As part of that change the call to copy_siginfo_to_user() was moved later in the function, so that it could be done