]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 17:36:40 +0000 (10:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 17:36:40 +0000 (10:36 -0700)
added patches:
ext4-avoid-kmemcheck-complaint-from-reading-uninitialized-memory.patch

queue-3.0/ext4-avoid-kmemcheck-complaint-from-reading-uninitialized-memory.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/ext4-avoid-kmemcheck-complaint-from-reading-uninitialized-memory.patch b/queue-3.0/ext4-avoid-kmemcheck-complaint-from-reading-uninitialized-memory.patch
new file mode 100644 (file)
index 0000000..f9c7dca
--- /dev/null
@@ -0,0 +1,37 @@
+From 7e731bc9a12339f344cddf82166b82633d99dd86 Mon Sep 17 00:00:00 2001
+From: Theodore Ts'o <tytso@mit.edu>
+Date: Sun, 5 Aug 2012 23:28:16 -0400
+Subject: ext4: avoid kmemcheck complaint from reading uninitialized memory
+
+From: Theodore Ts'o <tytso@mit.edu>
+
+commit 7e731bc9a12339f344cddf82166b82633d99dd86 upstream.
+
+Commit 03179fe923 introduced a kmemcheck complaint in
+ext4_da_get_block_prep() because we save and restore
+ei->i_da_metadata_calc_last_lblock even though it is left
+uninitialized in the case where i_da_metadata_calc_len is zero.
+
+This doesn't hurt anything, but silencing the kmemcheck complaint
+makes it easier for people to find real bugs.
+
+Addresses https://bugzilla.kernel.org/show_bug.cgi?id=45631
+(which is marked as a regression).
+
+Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/ext4/super.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/fs/ext4/super.c
++++ b/fs/ext4/super.c
+@@ -860,6 +860,7 @@ static struct inode *ext4_alloc_inode(st
+       ei->i_reserved_meta_blocks = 0;
+       ei->i_allocated_meta_blocks = 0;
+       ei->i_da_metadata_calc_len = 0;
++      ei->i_da_metadata_calc_last_lblock = 0;
+       spin_lock_init(&(ei->i_block_reservation_lock));
+ #ifdef CONFIG_QUOTA
+       ei->i_reserved_quota = 0;
index 5ddef9c341613ea78f162c442ebe070c27217be2..e874be58fefed1b14794c0481c81f8bff382856a 100644 (file)
@@ -3,3 +3,4 @@ fuse-verify-all-ioctl-retry-iov-elements.patch
 xen-mark-local-pages-as-foreign-in-the-m2p_override.patch
 drm-i915-correctly-order-the-ring-init-sequence.patch
 drm-radeon-do-not-reenable-crtc-after-moving-vram-start-address.patch
+ext4-avoid-kmemcheck-complaint-from-reading-uninitialized-memory.patch