From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:43708 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754998AbdERJcs (ORCPT ); Thu, 18 May 2017 05:32:48 -0400 Subject: Patch "pstore: Fix flags to enable dumps on powerpc" has been added to the 4.10-stable tree To: ankit@linux.vnet.ibm.com, gregkh@linuxfoundation.org, keescook@chromium.org Cc: , From: Date: Thu, 18 May 2017 11:32:33 +0200 Message-ID: <1495099953128200@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: 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.10-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.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 041939c1ec54208b42f5cd819209173d52a29d34 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Thu, 27 Apr 2017 17:03:13 +0530 Subject: pstore: Fix flags to enable dumps on powerpc From: Ankit Kumar 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 Signed-off-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- 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.10/pstore-fix-flags-to-enable-dumps-on-powerpc.patch