linux/fs/jbd2
Jan Kara 4b905671d2 jbd2: Fix oops in jbd2_journal_init_inode() on corrupted fs
On 32-bit system with CONFIG_LBD getblk can fail because provided
block number is too big.  Add error checks so we fail gracefully if
getblk() returns NULL (which can also happen on memory allocation
failures).

Thanks to David Maciejak from Fortinet's FortiGuard Global Security
Research Team for reporting this bug.

http://bugzilla.kernel.org/show_bug.cgi?id=12370

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
cc: stable@kernel.org
2009-01-06 14:53:35 -05:00
..
checkpoint.c jbd2: Call journal commit callback without holding j_list_lock 2008-11-06 17:50:21 -05:00
commit.c jbd2: Submit writes to the journal using WRITE_SYNC 2009-01-04 19:55:57 -05:00
journal.c jbd2: Fix oops in jbd2_journal_init_inode() on corrupted fs 2009-01-06 14:53:35 -05:00
Kconfig fs/Kconfig: move ext2, ext3, ext4, JBD, JBD2 out 2008-10-20 11:43:59 -07:00
Makefile
recovery.c jbd2: fix error handling for checkpoint io 2008-10-10 20:29:13 -04:00
revoke.c jdb2: replace remaining __FUNCTION__ occurrences 2008-04-17 10:38:59 -04:00
transaction.c ext4: add fsync batch tuning knobs 2009-01-03 20:27:38 -05:00