diff options
author | Jan Kara <jack@suse.cz> | 2009-01-06 14:53:35 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-06 14:53:35 -0500 |
commit | 4b905671d2ea09fd48fed72c581df17e40823f39 (patch) | |
tree | 62fcc9de092b2161b449f9205d516cba2e82b0b7 /fs/ext3/namei.c | |
parent | 83982b6f47201c4c7767210d24d7d8c99567a0b3 (diff) |
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
Diffstat (limited to 'fs/ext3/namei.c')
0 files changed, 0 insertions, 0 deletions