[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Fix Released Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Invalid Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero - 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE 4.13 HWE-edge 4.15 already has the fix in place. To manage notifications
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Tags removed: targetmilestone-inin16044 ** Tags added: targetmilestone-inin1710 -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Fix Released Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Invalid Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero - 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE 4.13
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Changed in: ubuntu-power-systems 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Fix Released Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Invalid Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero - 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE 4.13 HWE-edge
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
Now that I review this again, I don't think commit c1fa0768a8713b135848f78fd43ffc208d8ded70 is needed in Xenial proper, since it is 4.4 based. Commit c1fa0768a871 fixes the following commit: cd63f3c ("powerpc/tm: Fix saving of TM SPRs in core dump") However, commit cd63f3c was not added to mainline until v4.13-rc4. Can you confirm this? If commit c1fa0768a871 is not needed in Xenial, there is nothing to test and this bug should be resolved since it's specific to Artful and Xenial HWE kerenl(4.13 based). ** Changed in: linux (Ubuntu Xenial) Status: In Progress => Invalid -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: In Progress Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: Invalid Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment:
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Changed in: ubuntu-power-systems Status: Incomplete => 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: In Progress Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: In Progress Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero - 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE 4.13 HWE-edge
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
Is there any update on testing of the test kernel? -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Incomplete Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: In Progress Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero - 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE 4.13 HWE-edge 4.15 already has the fix
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Changed in: ubuntu-power-systems Status: Fix Committed => Incomplete -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Incomplete Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: In Progress Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero - 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE 4.13
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Fix Committed Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: In Progress Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero- 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
The last day for the current SRU cycle was on April 20th, which will release to updates on May 14th. The last day for kernel commits for the next cycle in May 11th, which will release on June 4th, so there should be plenty of time for testing. -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: In Progress Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: In Progress Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero- 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature":
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: In Progress Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: In Progress Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero- 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
Commit c1fa0768a8713b135848f78fd43ffc208d8ded70 is already in Artful as of version: Ubuntu-4.13.0-17.20. It came in with the 4.13.5 upstream stable updates. Commit c1fa0768a8713b135848f78fd43ffc208d8ded70 is not in upstream stable v4.4.y. This is probably because the commit needs a back port for v4.4. I performed a back port to the Xenial 4.4 kernel and built a test kernel with it. The test kernel can be downloaded from: http://kernel.ubuntu.com/~jsalisbury/lp1763685 Can you test this kernel and see if it resolves this bug? Note, to test this kernel, you need to install both the linux-image and linux-image-extra .deb packages. Thanks in advance! ** Changed in: linux (Ubuntu Artful) Status: Triaged => Fix Released ** Changed in: linux (Ubuntu Artful) Assignee: (unassigned) => Joseph Salisbury (jsalisbury) ** Changed in: linux (Ubuntu Xenial) Assignee: (unassigned) => Joseph Salisbury (jsalisbury) ** Changed in: linux (Ubuntu Xenial) Status: Triaged => In Progress ** Changed in: linux (Ubuntu) Assignee: Canonical Kernel Team (canonical-kernel-team) => Joseph Salisbury (jsalisbury) ** Changed in: linux (Ubuntu) Status: Triaged => 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Triaged Status in linux package in Ubuntu: Fix Released Status in linux source package in Xenial: In Progress Status in linux source package in Artful: Fix Released Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19:
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Changed in: linux (Ubuntu) Status: New => Triaged ** Also affects: linux (Ubuntu Artful) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Xenial) Importance: Undecided Status: New ** Changed in: linux (Ubuntu Xenial) Status: New => Triaged ** Changed in: linux (Ubuntu Artful) Status: New => Triaged ** Changed in: linux (Ubuntu Xenial) Importance: Undecided => High ** Changed in: linux (Ubuntu Artful) Importance: Undecided => High -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Triaged Status in linux package in Ubuntu: Triaged Status in linux source package in Xenial: Triaged Status in linux source package in Artful: Triaged Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero- 2018-04-12 17:24:21 == Dear maintainer, please
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Tags added: kernel-da-key -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Triaged Status in linux package in Ubuntu: New Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero- 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to kernel: HWE 4.x HWE 4.13 HWE-edge 4.15 already has the fix in place. To manage notifications about this bug go to:
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Changed in: linux (Ubuntu) Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) => Canonical Kernel Team (canonical-kernel-team) ** Changed in: linux (Ubuntu) Importance: Undecided => High -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Triaged Status in linux package in Ubuntu: New Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero- 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1fa0768a8713b135848f78fd43ffc208d8ded70 Please cherry-pick the pointed out fix and apply it to
[Kernel-packages] [Bug 1763685] Re: Fix for flushing TM on coredump only if CPU has TM feature
** Also affects: ubuntu-power-systems Importance: Undecided Status: New ** Changed in: ubuntu-power-systems Status: New => Triaged ** Changed in: ubuntu-power-systems Importance: Undecided => High ** Changed in: ubuntu-power-systems Assignee: (unassigned) => Canonical Kernel Team (canonical-kernel-team) ** Tags added: triage-g -- 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/1763685 Title: Fix for flushing TM on coredump only if CPU has TM feature Status in The Ubuntu-power-systems project: Triaged Status in linux package in Ubuntu: New Bug description: Problem description == Fix for flushing TM on coredump only if CPU has TM feature ---Additional Hardware Info--- POWER9/POWER8/compat mode Machine Type = P9 baremetal + VM (POWER9, POWER8, Compat mode) ---Steps to Reproduce--- On POWER9 machines it's possible that TM is disabled for use by the VMs and if a coredump is generated in the VM it will crash since it will execute TM instructions when coredumping if a check is not present on the VM's kernel. Since POWER9 can run VM on P8 compatibility mode, it's necessary to patch all kernels that run on compat mode as well. Stack trace output: na Oops output: PID: 16438 TASK: c00272f515e0 CPU: 3 COMMAND: "vma05_vdso" #0 [c002711f7050] crash_kexec at c01a07e4 #1 [c002711f7080] die at c0025278 #2 [c002711f7120] _exception at c0025594 #3 [c002711f72b0] program_check_exception at c0a0e1b8 #4 [c002711f7330] program_check_common at c0006308 Program Check [700] exception frame: R0: R1: c002711f7620R2: c1274700 R3: c00272f51af0R4: 80010280b033R5: R6: 0100R7: R8: R9: 0002R10: R11: R12: c0010720R13: c7b81b00R14: R15: R16: c002711f7db0R17: 00040006 R18: c0002ab95800R19: 0100R20: 0001 R21: 0002R22: c0bfc1c8R23: c002711f79b8 R24: c0a30480R25: c0a30478R26: 0018 R27: R28: c0002ab95800R29: R30: 0100R31: c00272f515e0 NIP: c005b10cMSR: 80010288b033OR3: c00108e0 CTR: c0010720LR: c00108e4XER: 2000 CCR: 28002448MQ: 0001DAR: c00275599748 DSISR: c00274092988 Syscall Result: #5 [c002711f7620] tm_save_sprs at c005b10c [Link Register] [c002711f7620] vsr_get at c00108e4 #6 [c002711f7770] fill_thread_core_info at c03d8b44 #7 [c002711f7820] fill_note_info at c03d8e94 #8 [c002711f78b0] elf_core_dump at c03d94d4 #9 [c002711f7a90] do_coredump at c03dfcf4 #10 [c002711f7c20] get_signal_to_deliver at c01061d4 #11 [c002711f7d10] do_signal at c001beac #12 [c002711f7e00] do_notify_resume at c001c2cc #13 [c002711f7e30] ret_from_except_lite at c000a7b0 System Call [c00] exception frame: R0: 00faR1: 3fffd0470f00R2: 3fffa8af7f00 R3: R4: 4036R5: 000b R6: 3fffd0471428R7: 1770R8: 4036 R9: R10: R11: R12: R13: 3fffa8babb80R14: R15: R16: R17: R18: R19: R20: R21: R22: R23: R24: R25: R26: R27: 3fffa8b9fbb8R28: 3fffa8baR29: 3fffa8b9f550 R30: R31: NIP: 3fffa8ad54c8MSR: 8000d033OR3: 4036 CTR: LR: 155cXER: CCR: 42000442MQ: 0001DAR: 3fffa89b2100 DSISR: 4000 Syscall Result: == Comment: #1 - Gustavo Bueno Romero- 2018-04-12 17:24:21 == Dear maintainer, please cherry-pick the fix alreayd available upstream containing the additional check to avoid the issue here described. It must apply cleanly on stable kernels: "powerpc/tm: Flush TM only if CPU has TM feature":