Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] minix v3: fix superblock definition

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>

authored by

Andries Brouwer and committed by
Linus Torvalds
f4fa27c1 5085b607

+1 -2
+1 -2
include/linux/minix_fs.h
··· 78 78 * V3 minix super-block data on disk 79 79 */ 80 80 struct minix3_super_block { 81 - __u16 s_ninodes; 82 - __u16 s_nzones; 81 + __u32 s_ninodes; 83 82 __u16 s_pad0; 84 83 __u16 s_imap_blocks; 85 84 __u16 s_zmap_blocks;