APLPIED[X]: [SRU][Xenial][PATCH 0/1] powerpc: signals: Discard transaction state from signal frames

Stefan Bader stefan.bader at canonical.com
Wed May 23 15:07:10 UTC 2018


On 18.05.2018 15:04, Joseph Salisbury wrote:
> BugLink: http://bugs.launchpad.net/bugs/1771439
> 
> == SRU Justification ==
> IBM is seeing tm_sigreturn test failures on P8 and P9 hosts.  The bad thing 
> exception is being raised when executing the following line:
> 
> c00000000004fcfc: b0 04 03 e8 ld r0,1200(r3)
> -> c00000000004fd00: a6 23 02 7c mtspr 130,r0
> 
> Which is basically restoring TEXASR in the thread.
> 
> ISA says "These registers can be written only when in Non-transactional 
> state" and the MSR is set to be transactional (suspended):
> 
> MSR: 8000000300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]
> 
> That explains why they are getting the "bad thing exception". A mtspr is 
> being called with a transaction suspended.  
> 
> This test failure is fixed by upstream commit 78a3e8889b4b.  
> Upstream commit 78a3e8889b4b is in mainline as of 4.8-rc5. 
> 
> == Fix ==
> 78a3e8889b4b ("powerpc: signals: Discard transaction state from signal frames")
> 
> == Regression Potential ==
> Low.  Specific to powerpc.
> 
> == Test Case ==
> A test kernel was built with this patch and tested by the original bug reporter.
> The bug reporter states the test kernel resolved the bug.
> 
> Cyril Bur (1):
>   powerpc: signals: Discard transaction state from signal frames
> 
>  Documentation/powerpc/transactional_memory.txt |  2 ++
>  arch/powerpc/kernel/signal_32.c                | 14 ++++++++++++++
>  arch/powerpc/kernel/signal_64.c                | 14 ++++++++++++++
>  3 files changed, 30 insertions(+)
> 
Applied to xenial master-next.

-Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20180523/6ab32124/attachment.sig>


More information about the kernel-team mailing list