Skip to content

Commit

Permalink
[PATCH] minix v3: fix superblock definition
Browse files Browse the repository at this point in the history
Somehow we got the layout of the v3 superblock wrong, which causes crashes due
to overindexing of the buffer_head array in statfs on large fielsystems.

Cc: "Cedric Augonnet" <cedric.augonnet@gmail.com>
Cc: "Daniel Aragones" <danarag@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andries Brouwer authored and Linus Torvalds committed Feb 21, 2007
1 parent 5085b60 commit f4fa27c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/linux/minix_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ struct minix_super_block {
* V3 minix super-block data on disk
*/
struct minix3_super_block {
__u16 s_ninodes;
__u16 s_nzones;
__u32 s_ninodes;
__u16 s_pad0;
__u16 s_imap_blocks;
__u16 s_zmap_blocks;
Expand Down

0 comments on commit f4fa27c

Please sign in to comment.