+ null-dereference-in-fs-jbd2-journalc.patch added to -mm tree

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

 



The patch titled

     null dereference in fs/jbd2/journal.c

has been added to the -mm tree.  Its filename is

     null-dereference-in-fs-jbd2-journalc.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: null dereference in fs/jbd2/journal.c
From: Dave Kleikamp <shaggy@xxxxxxxxxxxxxx>

This is Eric Sesterhenn's jbd patch applied to jbd2.
Commit: 41716c7c21b15e7ecf14f0caf1eef3980707fb74

His words:

Since commit d1807793e1e7e502e3dc047115e9dbc3b50e4534 we dereference a NULL
pointer.  Coverity id #1432.  We set journal to NULL, and use it directly
afterwards.

Signed-off-by: Dave Kleikamp <shaggy@xxxxxxxxxxxxxx>
Cc: Eric Sesterhenn <snakebyte@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/jbd2/journal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN fs/jbd2/journal.c~null-dereference-in-fs-jbd2-journalc fs/jbd2/journal.c
--- a/fs/jbd2/journal.c~null-dereference-in-fs-jbd2-journalc
+++ a/fs/jbd2/journal.c
@@ -725,6 +725,7 @@ journal_t * jbd2_journal_init_dev(struct
 			__FUNCTION__);
 		kfree(journal);
 		journal = NULL;
+		goto out;
 	}
 	journal->j_dev = bdev;
 	journal->j_fs_dev = fs_dev;
@@ -735,7 +736,7 @@ journal_t * jbd2_journal_init_dev(struct
 	J_ASSERT(bh != NULL);
 	journal->j_sb_buffer = bh;
 	journal->j_superblock = (journal_superblock_t *)bh->b_data;
-
+out:
 	return journal;
 }
 
_

Patches currently in -mm which might be from shaggy@xxxxxxxxxxxxxx are

ext4-copy.patch
ext4-rename.patch
ext4-enable.patch
jbd2-copy.patch
jbd2-rename.patch
jbd2-enable.patch
jbd2-cleanup.patch
ext4-extents.patch
ext4_fsblk_sector_t.patch
ext4-extents-48bit.patch
ext4-unitialized-extent-handling.patch
extents_comment_fix.patch
64bit_jbd2_core.patch
sector_t-jbd2.patch
ext4_48bit_i_file_acl.patch
64bit-metadata.patch
ext4_blk_type_from_sector_t_to_ulonglong.patch
ext4_remove_sector_t_bits_check.patch
jbd2_blks_type_from_sector_t_to_ull.patch
ext4_allow_larger_descriptor_size.patch
ext4_move_block_number_hi_bits.patch
documentation-filesystems-ext4txt.patch
null-dereference-in-fs-jbd2-journalc.patch
git-cifs.patch
airo-suspend-fix.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