Re: [PATCH] powerpc/tm: Avoid machine crash on rt_sigreturn

2019-05-03 Thread Michael Ellerman
On Wed, 2019-01-16 at 16:47:44 UTC, Breno Leitao wrote: > There is a kernel crash that happens if rt_sigreturn is called inside a > transactional block. > > This crash happens if the kernel hits an in-kernel page fault when > accessing userspace memory, usually through copy_ckvsx_to_user(). A

Re: [PATCH] powerpc/tm: Avoid machine crash on rt_sigreturn

2019-05-01 Thread Michael Neuling
On Wed, 2019-01-16 at 14:47 -0200, Breno Leitao wrote: > There is a kernel crash that happens if rt_sigreturn is called inside a > transactional block. > > This crash happens if the kernel hits an in-kernel page fault when > accessing userspace memory, usually through copy_ckvsx_to_user(). A

[PATCH] powerpc/tm: Avoid machine crash on rt_sigreturn

2019-01-16 Thread Breno Leitao
There is a kernel crash that happens if rt_sigreturn is called inside a transactional block. This crash happens if the kernel hits an in-kernel page fault when accessing userspace memory, usually through copy_ckvsx_to_user(). A major page fault calls might_sleep() function, which can cause a task