From: Bob Copeland Date: Fri, 15 Aug 2008 07:40:47 +0000 (-0700) Subject: omfs: fix oops when file metadata is corrupted X-Git-Tag: v2.6.27-rc4~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9419fc1c957d600093baaea247fef23cca3b4e93;p=pandora-kernel.git omfs: fix oops when file metadata is corrupted A fuzzed fileystem image failed with OMFS when the extent count was used in a loop without being checked against the max number of extents. It also provoked a signed division for an array index that was checked as if unsigned, leading to index by -1. omfsck will be updated to fix these cases, in the meantime bail out gracefully. Reported-by: Eric Sesterhenn Signed-off-by: Bob Copeland Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed