Skip to contentSkip to conversation

Patch "lightnvm: initialize ppa_addr in dev_to_generic_addr()" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Aug 31, 2017 Stable branch

lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

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 <[email protected]> know about it.

Quoted 1 line

From 5389a1dfb39786df08d4f6a482bd2734b1b50e33 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= <[email protected]>
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 <[email protected]>

commit 5389a1dfb39786df08d4f6a482bd2734b1b50e33 upstream.

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

---
 include/linux/lightnvm.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/lightnvm.h +1 -0
@@ -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 [email protected] are

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