[PATCH] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

Linux regression tracking (Thorsten Leemhuis) regressions at leemhuis.info
Sun Nov 19 17:08:00 AEDT 2023

On 19.11.23 00:45, Timothy Pearson wrote:
> During floating point and vector save to thread data fr0/vs0 are clobbered
> by the FPSCR/VSCR store routine.  This leads to userspace register corruption
> and application data corruption / crash under the following rare condition:
> [...]
> Tested-by: Timothy Pearson <tpearson at raptorengineering.com>

Many thx for this, good to see you finally found the problem.

FWIW, you might want to add a


here. Yes, I care about those tags because of regression tracking. But
it only relies on Link:/Closes: tags because they were meant to be used
in the first place to link to backstories and details of a change[1].

And you and Jens did such good debugging in that thread, which is why
it's IMHO really worth linking here in case anyone ever needs to look
into the backstory later.

> Signed-off-by: Timothy Pearson <tpearson at raptorengineering.com>
> [..]

Thx again for all your work you put into this.

Ciao, Thorsten

[1] see Documentation/process/submitting-patches.rst
(http://docs.kernel.org/process/submitting-patches.html) and

See also these mails from Linus:

More information about the Linuxppc-dev mailing list