aha/fs/omfs
Bob Copeland 9419fc1c95 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 <snakebyte@gmx.de>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-08-15 08:35:44 -07:00
..
bitmap.c omfs: fix oops when file metadata is corrupted 2008-08-15 08:35:44 -07:00
dir.c omfs: sparse annotations 2008-07-30 09:41:46 -07:00
file.c omfs: fix oops when file metadata is corrupted 2008-08-15 08:35:44 -07:00
inode.c omfs: fix potential oops when directory size is corrupted 2008-08-15 08:35:44 -07:00
Makefile omfs: update kbuild to include OMFS 2008-07-26 12:00:05 -07:00
omfs.h omfs: define filesystem structures 2008-07-26 12:00:05 -07:00
omfs_fs.h omfs: define filesystem structures 2008-07-26 12:00:05 -07:00