All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "lightnvm: initialize ppa_addr in dev_to_generic_addr()" has been added to the 4.4-stable tree
@ 2017-08-31  4:41 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-08-31  4:41 UTC (permalink / raw)
  To: javier, axboe, gregkh, m; +Cc: stable, stable-commits


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

    lightnvm: initialize ppa_addr in dev_to_generic_addr()

to the 4.4-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:
     lightnvm-initialize-ppa_addr-in-dev_to_generic_addr.patch
and it can be found in the queue-4.4 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 5389a1dfb39786df08d4f6a482bd2734b1b50e33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= <javier@cnexlabs.com>
Date: Thu, 7 Jul 2016 09:54:09 +0200
Subject: lightnvm: initialize ppa_addr in dev_to_generic_addr()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Javier González <javier@cnexlabs.com>

commit 5389a1dfb39786df08d4f6a482bd2734b1b50e33 upstream.

The ->reserved bit is not initialized when allocated on stack.
This may lead targets to misinterpret the PPA as cached.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 include/linux/lightnvm.h |    1 +
 1 file changed, 1 insertion(+)

--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -310,6 +310,7 @@ static inline struct ppa_addr dev_to_gen
 {
 	struct ppa_addr l;
 
+	l.ppa = 0;
 	/*
 	 * (r.ppa << X offset) & X len bitmask. X eq. blk, pg, etc.
 	 */


Patches currently in stable-queue which might be from javier@cnexlabs.com are

queue-4.4/lightnvm-initialize-ppa_addr-in-dev_to_generic_addr.patch

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

only message in thread, other threads:[~2017-08-31  4:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-31  4:41 Patch "lightnvm: initialize ppa_addr in dev_to_generic_addr()" has been added to the 4.4-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.