From: Jan Kara Date: Tue, 6 Jan 2009 19:53:35 +0000 (-0500) Subject: jbd2: Fix oops in jbd2_journal_init_inode() on corrupted fs X-Git-Tag: v2.6.29-rc1~40^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b905671d2ea09fd48fed72c581df17e40823f39;p=pandora-kernel.git 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 Signed-off-by: "Theodore Ts'o" cc: stable@kernel.org --- Reading git-diff-tree failed