Re: [v2] powerpc/signal32: Use fault_in_pages_readable() to prefault user context

2018-06-04 Thread Michael Ellerman
On Tue, 2018-04-24 at 16:04:25 UTC, Christophe Leroy wrote: > Use fault_in_pages_readable() to prefault user context > instead of open coding > > Signed-off-by: Christophe Leroy > Reviewed-by: Mathieu Malaterre Applied to powerpc next, thanks.

Re: [PATCH v2] powerpc/signal32: Use fault_in_pages_readable() to prefault user context

2018-04-24 Thread Mathieu Malaterre
On Tue, Apr 24, 2018 at 6:04 PM, Christophe Leroy wrote: > Use fault_in_pages_readable() to prefault user context > instead of open coding > > Signed-off-by: Christophe Leroy > --- > v2: using sizeof(*ctx) as size of ctx instead of 1 > >

[PATCH v2] powerpc/signal32: Use fault_in_pages_readable() to prefault user context

2018-04-24 Thread Christophe Leroy
Use fault_in_pages_readable() to prefault user context instead of open coding Signed-off-by: Christophe Leroy --- v2: using sizeof(*ctx) as size of ctx instead of 1 arch/powerpc/kernel/signal_32.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-)