Re: powerpc: ptrace: tm_reclaim_current() in flush_tmregs_to_thread()

2016-08-10 Thread Michael Ellerman
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

Re: [PATCH] powerpc: ptrace: tm_reclaim_current() in flush_tmregs_to_thread()

2016-08-10 Thread Michael Ellerman
Cyril Bur writes: > 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.

[PATCH] powerpc: ptrace: tm_reclaim_current() in flush_tmregs_to_thread()

2016-08-09 Thread Cyril Bur
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