This is a note to let you know that I've just added the patch titled ext4: fix oops when loading block bitmap failed to the 3.10-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: ext4-fix-oops-when-loading-block-bitmap-failed.patch and it can be found in the queue-3.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 599a9b77ab289d85c2d5c8607624efbe1f552b0f Mon Sep 17 00:00:00 2001 From: Jan Kara <jack@xxxxxxx> Date: Thu, 30 Oct 2014 10:53:16 -0400 Subject: ext4: fix oops when loading block bitmap failed From: Jan Kara <jack@xxxxxxx> commit 599a9b77ab289d85c2d5c8607624efbe1f552b0f upstream. When we fail to load block bitmap in __ext4_new_inode() we will dereference NULL pointer in ext4_journal_get_write_access(). So check for error from ext4_read_block_bitmap(). Coverity-id: 989065 Signed-off-by: Jan Kara <jack@xxxxxxx> Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/ext4/ialloc.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -793,6 +793,10 @@ got: struct buffer_head *block_bitmap_bh; block_bitmap_bh = ext4_read_block_bitmap(sb, group); + if (!block_bitmap_bh) { + err = -EIO; + goto out; + } BUFFER_TRACE(block_bitmap_bh, "get block bitmap access"); err = ext4_journal_get_write_access(handle, block_bitmap_bh); if (err) { Patches currently in stable-queue which might be from jack@xxxxxxx are queue-3.10/evm-check-xattr-value-length-and-type-in-evm_inode_setxattr.patch queue-3.10/ext4-don-t-check-quota-format-when-there-are-no-quota-files.patch queue-3.10/ext4-fix-oops-when-loading-block-bitmap-failed.patch queue-3.10/vfs-fix-data-corruption-when-blocksize-pagesize-for-mmaped-data.patch queue-3.10/ext4-fix-overflow-when-updating-superblock-backups-after-resize.patch queue-3.10/ext4-grab-missed-write_count-for-ext4_ioc_swap_boot.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html