PowerPC: Pstore dump for powerpc is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Undecided
|
Canonical Kernel Team | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Zesty |
Fix Released
|
Medium
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned |
Bug Description
---Problem Description---
Pstore write is broken for PowerPC. On panic, kernel doesn't write mesg to /fs/pstore/dmesg*
(Entry doesn't gets created at all)
Contact Information = Ankit <email address hidden>
---uname output---
Linux seedlp2 4.10.0-15-generic #17-Ubuntu SMP Fri Mar 24 17:50:37 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = lpar
Write to nvram failed
---Debugger---
A debugger is not configured
---Steps to Reproduce---
1. Checked kdump kernel is loaded.
2. Triggered system crash
# echo c > /proc/sysrq-trigger
3. /sys/fs/
This issue can be reproduced after commit c950fd6f201
c950fd6f201 - pstore: Split pstore fragile flags
It introduces PSTORE_FLAGS_DMESG, which is not set for PowerPC.
Please include below commit 041939c1ec5 as this fixes this issue.
commit 041939c1ec54208
Author: Ankit Kumar <email address hidden>
Date: Thu Apr 27 17:03:13 2017 +0530
pstore: Fix flags to enable dumps on powerpc
After commit c950fd6f201a kernel registers pstore write based on flag set.
Pstore write for powerpc is broken as flags(PSTORE_
powerpc architecture. On panic, kernel doesn't write message to
/fs/
This patch enables pstore write for powerpc architecture by setting
PSTORE_
Fixes: c950fd6f201a ("pstore: Split pstore fragile flags")
Cc: <email address hidden> # v4.9+
Signed-off-by: Ankit Kumar <email address hidden>
Signed-off-by: Kees Cook <email address hidden>
CVE References
tags: | added: architecture-ppc64le bugnameltc-153411 severity-high targetmilestone-inin1704 |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → linux (Ubuntu) |
Changed in ubuntu-power-systems: | |
assignee: | nobody → Canonical Kernel Team (canonical-kernel-team) |
tags: | added: kernel-da-key |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Zesty): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu): | |
status: | New → In Progress |
Changed in linux (Ubuntu Zesty): | |
status: | New → In Progress |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu): | |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Joseph Salisbury (jsalisbury) |
tags: | added: ubuntu-17.04 |
Changed in linux (Ubuntu Artful): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Zesty): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Artful): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-power-systems: | |
status: | New → Fix Released |
------- Comment From <email address hidden> 2017-05-16 07:07 EDT-------
Commit c950fd6f20 ("pstore: Split pstore fragile flags") is
available in kernel 4.9 and above, while commit
041939c1ec ("pstore: Fix flags to enable dumps on powerpc")
would get into 4.12, so need to be pulled into kernel version 4.9 and
above.