powerpc: ptrace: tm_reclaim_current() in flush_tmregs_to_thread()
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Aug 10 22:46:36 AEST 2016
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 <cyrilbur at gmail.com>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/c7a318ba868c61fc9be710a497
cheers
More information about the Linuxppc-dev
mailing list