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

    bql: Fix POSDIFF() to integer overflow aware.

to the 3.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:
     bql-fix-posdiff-to-integer-overflow-aware.patch
and it can be found in the queue-3.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 910573d82ca9be8638b92c644544ba6f92772103 Mon Sep 17 00:00:00 2001
From: Hiroaki SHIMODA <[email protected]>
Date: Wed, 30 May 2012 12:24:39 +0000
Subject: bql: Fix POSDIFF() to integer overflow aware.


From: Hiroaki SHIMODA <[email protected]>

[ Upstream commit 0cfd32b736ae0c36b42697584811042726c07cba ]

POSDIFF() fails to take into account integer overflow case.

Signed-off-by: Hiroaki SHIMODA <[email protected]>
Cc: Tom Herbert <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Denys Fedoryshchenko <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 lib/dynamic_queue_limits.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/lib/dynamic_queue_limits.c
+++ b/lib/dynamic_queue_limits.c
@@ -10,7 +10,7 @@
 #include <linux/jiffies.h>
 #include <linux/dynamic_queue_limits.h>
 
-#define POSDIFF(A, B) ((A) > (B) ? (A) - (B) : 0)
+#define POSDIFF(A, B) ((int)((A) - (B)) > 0 ? (A) - (B) : 0)
 
 /* Records completed count and recalculates the queue limit */
 void dql_completed(struct dql *dql, unsigned int count)


Patches currently in stable-queue which might be from [email protected] 
are

queue-3.4/bql-avoid-possible-inconsistent-calculation.patch
queue-3.4/bql-avoid-unneeded-limit-decrement.patch
queue-3.4/bql-fix-posdiff-to-integer-overflow-aware.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to