All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "pstore: Fix flags to enable dumps on powerpc" has been added to the 4.9-stable tree
@ 2017-05-18  9:33 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-05-18  9:33 UTC (permalink / raw)
  To: ankit, gregkh, keescook; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    pstore: Fix flags to enable dumps on powerpc

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pstore-fix-flags-to-enable-dumps-on-powerpc.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 041939c1ec54208b42f5cd819209173d52a29d34 Mon Sep 17 00:00:00 2001
From: Ankit Kumar <ankit@linux.vnet.ibm.com>
Date: Thu, 27 Apr 2017 17:03:13 +0530
Subject: pstore: Fix flags to enable dumps on powerpc

From: Ankit Kumar <ankit@linux.vnet.ibm.com>

commit 041939c1ec54208b42f5cd819209173d52a29d34 upstream.

After commit c950fd6f201a kernel registers pstore write based on flag set.
Pstore write for powerpc is broken as flags(PSTORE_FLAGS_DMESG) is not set for
powerpc architecture. On panic, kernel doesn't write message to
/fs/pstore/dmesg*(Entry doesn't gets created at all).

This patch enables pstore write for powerpc architecture by setting
PSTORE_FLAGS_DMESG flag.

Fixes: c950fd6f201a ("pstore: Split pstore fragile flags")
Signed-off-by: Ankit Kumar <ankit@linux.vnet.ibm.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 arch/powerpc/kernel/nvram_64.c |    1 +
 1 file changed, 1 insertion(+)

--- a/arch/powerpc/kernel/nvram_64.c
+++ b/arch/powerpc/kernel/nvram_64.c
@@ -561,6 +561,7 @@ static ssize_t nvram_pstore_read(u64 *id
 static struct pstore_info nvram_pstore_info = {
 	.owner = THIS_MODULE,
 	.name = "nvram",
+	.flags = PSTORE_FLAGS_DMESG,
 	.open = nvram_pstore_open,
 	.read = nvram_pstore_read,
 	.write = nvram_pstore_write,


Patches currently in stable-queue which might be from ankit@linux.vnet.ibm.com are

queue-4.9/pstore-fix-flags-to-enable-dumps-on-powerpc.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-18  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-18  9:33 Patch "pstore: Fix flags to enable dumps on powerpc" has been added to the 4.9-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.