diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-13 15:54:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-14 02:18:22 +0200 |
commit | 76e512108935ecdb46792208dae5f59c7ea78e25 (patch) | |
tree | 96ea1468ce3e23c2add86f986948a17d0eaad4ee /fs/omfs/omfs_fs.h | |
parent | 5ef9819234e285abe6b616864e7b1b4607d39b58 (diff) | |
download | op-kernel-dev-76e512108935ecdb46792208dae5f59c7ea78e25.zip op-kernel-dev-76e512108935ecdb46792208dae5f59c7ea78e25.tar.gz |
FS/OMFS: block number sanity check during fill_super operation
This patch defines maximum block number to 2^31. It also converts
bitmap_size and array_size to unsigned int in omfs_get_imap
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Suggested-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Tested-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/omfs/omfs_fs.h')
-rw-r--r-- | fs/omfs/omfs_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/omfs/omfs_fs.h b/fs/omfs/omfs_fs.h index ee5e432..83a9833 100644 --- a/fs/omfs/omfs_fs.h +++ b/fs/omfs/omfs_fs.h @@ -18,6 +18,7 @@ #define OMFS_XOR_COUNT 19 #define OMFS_MAX_BLOCK_SIZE 8192 #define OMFS_MAX_CLUSTER_SIZE 8 +#define OMFS_MAX_BLOCKS (1ul << 31) struct omfs_super_block { char s_fill1[256]; |