On Wed, 2016-10-08 at 05:44:46 UTC, Cyril Bur wrote: > There was an assumption that flush_tmregs_to_thread() would only be > called for a task which is not current. And a warning could be shown > to indicate that current is being ptraced. > > In the event of a core dump the current threads state is needed. This > means that flush_tmregs_to_thread() must do its best to flush even for > current. > > This patch also moves flush_tmregs_to_thread() into ptrace.c as it is > only called from that file. > > Signed-off-by: Cyril Bur <cyril...@gmail.com>
Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/c7a318ba868c61fc9be710a497 cheers