[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2019-07-24 Thread Brad Figg
** Tags added: cscc

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Fix Released
Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Fix Released

Bug description:
  
  == 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:

  c004fcfc: b0 04 03 e8 ld r0,1200(r3)
  -> c004fd00: 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: 800300201033 [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.


  
  This test fails in the same way on a P8 host, so it is nothing to do with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
    ->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames

  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.

  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
    TM Bad Thing Exception [Category: Transactional Memory]
     An attempt is made to execute a mtspr targeting a TM register in
     other than Non-transactional state.

  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08:  b0001033 0001 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-07-19 Thread Joseph Salisbury
** Changed in: linux (Ubuntu)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Fix Released
Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Fix Released

Bug description:
  
  == 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:

  c004fcfc: b0 04 03 e8 ld r0,1200(r3)
  -> c004fd00: 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: 800300201033 [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.


  
  This test fails in the same way on a P8 host, so it is nothing to do with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
    ->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames

  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.

  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
    TM Bad Thing Exception [Category: Transactional Memory]
     An attempt is made to execute a mtspr targeting a TM register in
     other than Non-transactional state.

  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08: 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-06-18 Thread Manoj Iyer
** Changed in: ubuntu-power-systems
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Fix Released
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  Fix Released

Bug description:
  
  == 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:

  c004fcfc: b0 04 03 e8 ld r0,1200(r3)
  -> c004fd00: 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: 800300201033 [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.


  
  This test fails in the same way on a P8 host, so it is nothing to do with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
    ->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames

  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.

  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
    TM Bad Thing Exception [Category: Transactional Memory]
     An attempt is made to execute a mtspr targeting a TM register in
     other than Non-transactional state.

  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08: 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-06-11 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 4.4.0-128.154

---
linux (4.4.0-128.154) xenial; urgency=medium

  * linux: 4.4.0-128.154 -proposed tracker (LP: #1772960)

  * CVE-2018-3639 (x86)
- x86/cpu: Make alternative_msr_write work for 32-bit code
- x86/bugs: Fix the parameters alignment and missing void
- KVM: SVM: Move spec control call after restore of GS
- x86/speculation: Use synthetic bits for IBRS/IBPB/STIBP
- x86/cpufeatures: Disentangle MSR_SPEC_CTRL enumeration from IBRS
- x86/cpufeatures: Disentangle SSBD enumeration
- x86/cpu/AMD: Fix erratum 1076 (CPB bit)
- x86/cpufeatures: Add FEATURE_ZEN
- x86/speculation: Handle HT correctly on AMD
- x86/bugs, KVM: Extend speculation control for VIRT_SPEC_CTRL
- x86/speculation: Add virtualized speculative store bypass disable support
- x86/speculation: Rework speculative_store_bypass_update()
- x86/bugs: Unify x86_spec_ctrl_{set_guest,restore_host}
- x86/bugs: Expose x86_spec_ctrl_base directly
- x86/bugs: Remove x86_spec_ctrl_set()
- x86/bugs: Rework spec_ctrl base and mask logic
- x86/speculation, KVM: Implement support for VIRT_SPEC_CTRL/LS_CFG
- KVM: SVM: Implement VIRT_SPEC_CTRL support for SSBD
- x86/bugs: Rename SSBD_NO to SSB_NO
- KVM: VMX: Expose SSBD properly to guests.

  * [i915_bpo] Fix flickering issue after panel change (LP: #1770565)
- drm/i915: Fix iboost setting for DDI with 4 lanes on SKL
- drm/i915: Name the "iboost bit"
- drm/i915: Program iboost settings for HDMI/DVI on SKL
- drm/i915: Move bxt_ddi_vswing_sequence() call into intel_ddi_pre_enable()
  for HDMI
- drm/i915: Explicitly use ddi buf trans entry 9 for hdmi
- drm/i915: Split DP/eDP/FDI and HDMI/DVI DDI buffer programming apart
- drm/i915: Get the iboost setting based on the port type
- drm/i915: Simplify intel_ddi_get_encoder_port()
- drm/i915: Fix iboost setting for SKL Y/U DP DDI buffer translation entry 2
- drm/i915: KBL - Recommended buffer translation programming for DisplayPort
- drm/i915: Ignore OpRegion panel type except on select machines

  * [SRU][Bionic/Artful] fix false positives in W+X checking (LP: #1769696)
- init: fix false positives in W+X checking

  * [Ubuntu 16.04] kernel: fix rwlock implementation (LP: #1761674)
- SAUCE: (no-up) s390: fix rwlock implementation

  * linux < 4.11: unable to use netfilter logging from non-init namespaces
(LP: #1766573)
- netfilter: allow logging from non-init namespaces

  * [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode 16.04.04
guest (LP: #1771439)
- powerpc: signals: Discard transaction state from signal frames

  * QCA9377 requires more IRAM banks for its new firmware (LP: #1748345)
- ath10k: update the IRAM bank number for QCA9377

  * i915/kbl_dmc_ver1.bin failed with error -2 package 1.157.17 kernel
4.4.0-116-generic (LP: #1752536)
- ubuntu: i915_bpo - Add MODULE_FIRMWARE for Geminilake's DMC

  * Xenial update to 4.4.131 stable release (LP: #1768825)
- ext4: prevent right-shifting extents beyond EXT_MAX_BLOCKS
- ext4: set h_journal if there is a failure starting a reserved handle
- ext4: add validity checks for bitmap block numbers
- ext4: fix bitmap position validation
- usbip: usbip_host: fix to hold parent lock for device_attach() calls
- usbip: vhci_hcd: Fix usb device and sockfd leaks
- USB: serial: simple: add libtransistor console
- USB: serial: ftdi_sio: use jtag quirk for Arrow USB Blaster
- USB: serial: cp210x: add ID for NI USB serial console
- usb: core: Add quirk for HP v222w 16GB Mini
- USB: Increment wakeup count on remote wakeup.
- ALSA: usb-audio: Skip broken EU on Dell dock USB-audio
- virtio: add ability to iterate over vqs
- virtio_console: free buffers after reset
- drm/virtio: fix vq wait_event condition
- tty: Don't call panic() at tty_ldisc_init()
- tty: n_gsm: Fix long delays with control frame timeouts in ADM mode
- tty: n_gsm: Fix DLCI handling for ADM mode if debug & 2 is not set
- tty: Use __GFP_NOFAIL for tty_ldisc_get()
- ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr
- ALSA: seq: oss: Fix unbalanced use lock for synth MIDI device
- ALSA: hda/realtek - Add some fixes for ALC233
- mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.
- mtd: cfi: cmdset_0001: Workaround Micron Erase suspend bug.
- mtd: cfi: cmdset_0002: Do not allow read/write to suspend erase block.
- kobject: don't use WARN for registration failures
- scsi: sd: Defer spinning up drive while SANITIZE is in progress
- ARM: amba: Make driver_override output consistent with other buses
- ARM: amba: Fix race condition with driver_override
- ARM: amba: Don't read past the end of sysfs "driver_override" buffer
- ASoC: fsl_esai: Fix divisor calculation failure at lower ratio
- libceph: 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-28 Thread bugproxy
** Tags removed: verification-needed-xenial
** Tags added: verification-done-xenial

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Fix Committed
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  Fix Committed

Bug description:
  
  == 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:

  c004fcfc: b0 04 03 e8 ld r0,1200(r3)
  -> c004fd00: 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: 800300201033 [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.


  
  This test fails in the same way on a P8 host, so it is nothing to do with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
    ->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames

  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.

  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
    TM Bad Thing Exception [Category: Transactional Memory]
     An attempt is made to execute a mtspr targeting a TM register in
     other than Non-transactional state.

  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033  

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-28 Thread Brad Figg
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
xenial' to 'verification-done-xenial'. If the problem still exists,
change the tag 'verification-needed-xenial' to 'verification-failed-
xenial'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-xenial

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Fix Committed
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  Fix Committed

Bug description:
  
  == 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:

  c004fcfc: b0 04 03 e8 ld r0,1200(r3)
  -> c004fd00: 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: 800300201033 [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.


  
  This test fails in the same way on a P8 host, so it is nothing to do with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
    ->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames

  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.

  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
    TM Bad Thing Exception [Category: Transactional Memory]
     An attempt is made to execute a mtspr targeting a TM register in
     other than Non-transactional state.

  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-23 Thread Frank Heimes
** Changed in: ubuntu-power-systems
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Fix Committed
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  Fix Committed

Bug description:
  
  == 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:

  c004fcfc: b0 04 03 e8 ld r0,1200(r3)
  -> c004fd00: 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: 800300201033 [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.


  
  This test fails in the same way on a P8 host, so it is nothing to do with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
    ->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames

  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.

  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
    TM Bad Thing Exception [Category: Transactional Memory]
     An attempt is made to execute a mtspr targeting a TM register in
     other than Non-transactional state.

  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033  

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-23 Thread Stefan Bader
** Changed in: linux (Ubuntu Xenial)
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  Fix Committed

Bug description:
  
  == 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:

  c004fcfc: b0 04 03 e8 ld r0,1200(r3)
  -> c004fd00: 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: 800300201033 [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.


  
  This test fails in the same way on a P8 host, so it is nothing to do with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
    ->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames

  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.

  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
    TM Bad Thing Exception [Category: Transactional Memory]
     An attempt is made to execute a mtspr targeting a TM register in
     other than Non-transactional state.

  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033  

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-18 Thread Joseph Salisbury
** Description changed:

- This test fails in the same way on a P8 host, so it is nothing to do
- with P9.
+ 
+ == 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:
+ 
+ c004fcfc: b0 04 03 e8 ld r0,1200(r3)
+ -> c004fd00: 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: 800300201033 [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.
+ 
+ 
+ 
+ This test fails in the same way on a P8 host, so it is nothing to do with P9.
  
  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state in
  signal handler", 2017-08-22) and see if that helps.
  
  The bad thing exception is being raised when executing the following
  line:
  
-  c004fcfc:   b0 04 03 e8 ld  r0,1200(r3) 
-   ->   c004fd00:   a6 23 02 7c mtspr   130,r0
+  c004fcfc:   b0 04 03 e8 ld  r0,1200(r3)
+   ->   c004fd00:   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):
+ ISA says "These registers can be written only when in Non-transactional
+ state" and the MSR is set to be transactional (suspended):
  
  MSR: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]
  
  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.
  
  I think we need the following commit to have this fixed:
  
  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000
  
- powerpc: signals: Discard transaction state from signal frames
- 
- Userspace can begin and suspend a transaction within the signal
- handler which means they might enter sys_rt_sigreturn() with the
- processor in suspended state.
- 
- sys_rt_sigreturn() wants to restore process context (which may have
- been in a transaction before signal delivery). To do this it must
- restore TM SPRS. To achieve this, any transaction initiated within the
- signal frame must be discarded in order to be able to restore TM SPRs
- as TM SPRs can only be manipulated non-transactionally..
- >From the PowerPC ISA:
-   TM Bad Thing Exception [Category: Transactional Memory]
-An attempt is made to execute a mtspr targeting a TM register in
-other than Non-transactional state.
- 
- Not doing so results in a TM Bad Thing:
- [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
- [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
- [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
- [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
- [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
-  nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
-  xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
-  ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
-  uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
-  scsi_transport_sas bnx2x ipr mdio libcrc32c
- [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
- [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
- [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

- [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
- [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
- [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
- GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
- GPR04: 90034280f033   
- GPR08:  b0001033 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-18 Thread Joseph Salisbury
SRU request submitted:
https://lists.ubuntu.com/archives/kernel-team/2018-May/092537.html

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  In Progress

Bug description:
  This test fails in the same way on a P8 host, so it is nothing to do
  with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3) 
->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames
  
  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.
  
  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
TM Bad Thing Exception [Category: Transactional Memory]
 An attempt is made to execute a mtspr targeting a TM register in
 other than Non-transactional state.
  
  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08:  b0001033 0001 
  GPR12:  c2926400  
  GPR16:    
  GPR20:    
  GPR24:  398cadd0 398cb470 
  GPR28: 90034280f033 c000fceb7ea0 0001 c000fce390d0
  [12045.223535] NIP [c0050a40] tm_restore_sprs+0xc/0x1c
  [12045.223584] LR [c00163bc] tm_recheckpoint+0x5c/0xa0
  [12045.223630] Call Trace:
  [12045.223655] [c000fceb7d80] [c0026e74] 
sys_rt_sigreturn+0x494/0x6c0
  [12045.223738] [c000fceb7e30] [c00092e0] 
system_call+0x38/0x108
  [12045.223806] Instruction dump:
  [12045.223841] 7c800164 4e800020 7c0022a6 f80304a8 7c0222a6 f80304b0 
7c0122a6 f80304b8
  [12045.223955] 4e800020 e80304a8 7c0023a6 e80304b0 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-16 Thread Frank Heimes
** Changed in: ubuntu-power-systems
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  In Progress

Bug description:
  This test fails in the same way on a P8 host, so it is nothing to do
  with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3) 
->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames
  
  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.
  
  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
TM Bad Thing Exception [Category: Transactional Memory]
 An attempt is made to execute a mtspr targeting a TM register in
 other than Non-transactional state.
  
  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08:  b0001033 0001 
  GPR12:  c2926400  
  GPR16:    
  GPR20:    
  GPR24:  398cadd0 398cb470 
  GPR28: 90034280f033 c000fceb7ea0 0001 c000fce390d0
  [12045.223535] NIP [c0050a40] tm_restore_sprs+0xc/0x1c
  [12045.223584] LR [c00163bc] tm_recheckpoint+0x5c/0xa0
  [12045.223630] Call Trace:
  [12045.223655] [c000fceb7d80] [c0026e74] 
sys_rt_sigreturn+0x494/0x6c0
  [12045.223738] [c000fceb7e30] [c00092e0] 
system_call+0x38/0x108
  [12045.223806] Instruction dump:
  [12045.223841] 7c800164 4e800020 7c0022a6 f80304a8 7c0222a6 f80304b0 
7c0122a6 f80304b8
  [12045.223955] 4e800020 e80304a8 7c0023a6 e80304b0 <7c0223a6> e80304b8 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-16 Thread Joseph Salisbury
I built a test kernel with commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b.  
The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1771439

Can you test this kernel and see if it resolves this bug?

Note about installing test kernels:
• If the test kernel is prior to 4.15(Bionic) you need to install the 
linux-image and linux-image-extra .deb packages.
• If the test kernel is 4.15(Bionic) or newer, you need to install the 
linux-image-unsigned, linux-modules and linux-modules-extra .deb packages.

Thanks in advance!


** Changed in: linux (Ubuntu)
 Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) => 
Joseph Salisbury (jsalisbury)

** Changed in: linux (Ubuntu)
   Status: Triaged => In Progress

** Also affects: linux (Ubuntu Xenial)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu Xenial)
   Status: New => In Progress

** Changed in: linux (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Xenial)
 Assignee: (unassigned) => Joseph Salisbury (jsalisbury)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Triaged
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  In Progress

Bug description:
  This test fails in the same way on a P8 host, so it is nothing to do
  with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3) 
->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames
  
  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.
  
  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
TM Bad Thing Exception [Category: Transactional Memory]
 An attempt is made to execute a mtspr targeting a TM register in
 other than Non-transactional state.
  
  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08:  

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-16 Thread Joseph Salisbury
** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu)
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Triaged
Status in linux package in Ubuntu:
  Triaged

Bug description:
  This test fails in the same way on a P8 host, so it is nothing to do
  with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3) 
->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames
  
  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.
  
  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
TM Bad Thing Exception [Category: Transactional Memory]
 An attempt is made to execute a mtspr targeting a TM register in
 other than Non-transactional state.
  
  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08:  b0001033 0001 
  GPR12:  c2926400  
  GPR16:    
  GPR20:    
  GPR24:  398cadd0 398cb470 
  GPR28: 90034280f033 c000fceb7ea0 0001 c000fce390d0
  [12045.223535] NIP [c0050a40] tm_restore_sprs+0xc/0x1c
  [12045.223584] LR [c00163bc] tm_recheckpoint+0x5c/0xa0
  [12045.223630] Call Trace:
  [12045.223655] [c000fceb7d80] [c0026e74] 
sys_rt_sigreturn+0x494/0x6c0
  [12045.223738] [c000fceb7e30] [c00092e0] 
system_call+0x38/0x108
  [12045.223806] Instruction dump:
  [12045.223841] 7c800164 4e800020 7c0022a6 f80304a8 7c0222a6 f80304b0 
7c0122a6 f80304b8
  [12045.223955] 4e800020 e80304a8 7c0023a6 e80304b0 <7c0223a6> e80304b8 
7c0123a6 

[Kernel-packages] [Bug 1771439] Re: [LTC Test] Ubuntu 18.04: tm_sigreturn failed on P8 compat mode 16.04.04 guest

2018-05-15 Thread Frank Heimes
** Tags added: triage-g

** Also affects: ubuntu-power-systems
   Importance: Undecided
   Status: New

** Changed in: ubuntu-power-systems
   Status: New => Triaged

** Changed in: ubuntu-power-systems
   Importance: Undecided => Medium

** Changed in: ubuntu-power-systems
 Assignee: (unassigned) => Canonical Kernel Team (canonical-kernel-team)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1771439

Title:
  [LTC Test] Ubuntu 18.04:  tm_sigreturn failed on P8 compat mode
  16.04.04 guest

Status in The Ubuntu-power-systems project:
  Triaged
Status in linux package in Ubuntu:
  New

Bug description:
  This test fails in the same way on a P8 host, so it is nothing to do
  with P9.

  There have been many TM bugs fixed upstream since 4.4. I would suggest
  starting with commit 044215d145a7 ("powerpc/tm: Fix illegal TM state
  in signal handler", 2017-08-22) and see if that helps.

  The bad thing exception is being raised when executing the following
  line:

   c004fcfc:   b0 04 03 e8 ld  r0,1200(r3) 
->   c004fd00:   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: 800300201033 [ME][RI][IR][DR][LE][SF][HTM][TSU]

  That explains why we are getting the "bad thing exception". A mtspr is
  being called with a transaction suspended.

  I think we need the following commit to have this fixed:

  commit 78a3e8889b4b6b99775ed954696ff3e017f5d19b
  Author: Cyril Bur 
  Date:   Tue Aug 23 10:46:17 2016 +1000

  powerpc: signals: Discard transaction state from signal frames
  
  Userspace can begin and suspend a transaction within the signal
  handler which means they might enter sys_rt_sigreturn() with the
  processor in suspended state.
  
  sys_rt_sigreturn() wants to restore process context (which may have
  been in a transaction before signal delivery). To do this it must
  restore TM SPRS. To achieve this, any transaction initiated within the
  signal frame must be discarded in order to be able to restore TM SPRs
  as TM SPRs can only be manipulated non-transactionally..
  >From the PowerPC ISA:
TM Bad Thing Exception [Category: Transactional Memory]
 An attempt is made to execute a mtspr targeting a TM register in
 other than Non-transactional state.
  
  Not doing so results in a TM Bad Thing:
  [12045.221359] Kernel BUG at c0050a40 [verbose debug info 
unavailable]
  [12045.221470] Unexpected TM Bad Thing exception at c0050a40 (msr 
0x201033)
  [12045.221540] Oops: Unrecoverable exception, sig: 6 [#1]
  [12045.221586] SMP NR_CPUS=2048 NUMA PowerNV
  [12045.221634] Modules linked in: xt_CHECKSUM iptable_mangle 
ipt_MASQUERADE
   nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4
   xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp 
llc ebtable_filter
   ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables 
kvm_hv kvm
   uio_pdrv_genirq ipmi_powernv uio powernv_rng ipmi_msghandler autofs4 ses 
enclosure
   scsi_transport_sas bnx2x ipr mdio libcrc32c
  [12045.222167] CPU: 68 PID: 6178 Comm: sigreturnpanic Not tainted 4.7.0 
#34
  [12045.24] task: c000fce38600 ti: c000fceb4000 task.ti: 
c000fceb4000
  [12045.93] NIP: c0050a40 LR: c00163bc CTR: 

  [12045.222361] REGS: c000fceb7ac0 TRAP: 0700   Not tainted (4.7.0)
  [12045.222418] MSR: 900300201033  CR: 
28444280  XER: 2000
  [12045.222625] CFAR: c00163b8 SOFTE: 0 PACATMSCRATCH: 
90014280f033
  GPR00: 0110b801 c000fceb7d40 c139c100 c000fce390d0
  GPR04: 90034280f033   
  GPR08:  b0001033 0001 
  GPR12:  c2926400  
  GPR16:    
  GPR20:    
  GPR24:  398cadd0 398cb470 
  GPR28: 90034280f033 c000fceb7ea0 0001 c000fce390d0
  [12045.223535] NIP [c0050a40] tm_restore_sprs+0xc/0x1c
  [12045.223584] LR [c00163bc] tm_recheckpoint+0x5c/0xa0
  [12045.223630] Call Trace:
  [12045.223655] [c000fceb7d80] [c0026e74] 
sys_rt_sigreturn+0x494/0x6c0
  [12045.223738] [c000fceb7e30] [c00092e0]