- fix-for-ext2-reservation.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Fix for ext2 reservation
has been removed from the -mm tree.  Its filename was
     fix-for-ext2-reservation.patch

This patch was dropped because it was folded into ext2-reservations.patch

------------------------------------------------------
Subject: Fix for ext2 reservation
From: Badari Pulavarty <pbadari@xxxxxxxxxx>

Alexey Dobriyan reported ext2 discard reservation panic while ago
(http://lkml.org/lkml/2007/3/2/138).  If ext2_new_inode() fails for any
reason it would end up calling ext2_discard_reservation() (due to last
iput).  Normally, it does nothing since we don't have a reservation window
structure allocated.  But the NULL pointer check wouldn't work with slab
poisioning, and causes oops.

Fix is to initialize i_block_alloc_info to NULL in ext2_alloc_inode()
code instead of assuming that it would be NULL. Same fix already
exists in ext3 and ext4.

Signed-off-by: Badari Pulavarty <pbadari@xxxxxxxxxx>
Cc: "Martin J. Bligh" <mbligh@xxxxxxxxxx>
Cc: Valerie Henson <val@xxxxxxx>
Cc: Mingming Cao <cmm@xxxxxxxxxx>
Cc: Hugh Dickins <hugh@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/ext2/super.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN fs/ext2/super.c~fix-for-ext2-reservation fs/ext2/super.c
--- a/fs/ext2/super.c~fix-for-ext2-reservation
+++ a/fs/ext2/super.c
@@ -149,6 +149,7 @@ static struct inode *ext2_alloc_inode(st
 	ei->i_acl = EXT2_ACL_NOT_CACHED;
 	ei->i_default_acl = EXT2_ACL_NOT_CACHED;
 #endif
+	ei->i_block_alloc_info = NULL;
 	ei->vfs_inode.i_version = 1;
 	return &ei->vfs_inode;
 }
_

Patches currently in -mm which might be from pbadari@xxxxxxxxxx are

origin.patch
aio-account-i-o-wait-time-properly.patch
ext2-reservations.patch
fix-for-ext2-reservation.patch
sysctl-remove-the-binary-interface-for-aio-nr-aio-max-nr-acpi_video_flags.patch
mem-controller-gfp-mask-fix.patch
powerpc-add-scaled-time-accounting-speedup.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux