aha/fs/minix
Doug Graham 9f6c133393 V3 minixfs: add missing directory type checking
There are a few places in the Minix FS code where the "inode" field of a
minix_dir_entry is used without checking first to see if the dirent is
really a minix3_dir_entry.  The inode number in a V1/V2 dirent is 16 bits,
whereas that in a V3 dirent is 32 bits.

Accessing it as a 16 bit field when it really should be accessed as a 32
bit field probably kinda sorta works on a little-endian machine, but leads
to some rather odd behaviour on big-endian machines.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Doug Graham <dgraham@nortel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-23 07:39:57 -07:00
..
bitmap.c get rid of BKL in fs/minix 2009-06-17 00:36:37 -04:00
dir.c V3 minixfs: add missing directory type checking 2009-09-23 07:39:57 -07:00
file.c switch minix to simple_fsync() 2009-06-11 21:36:12 -04:00
inode.c get rid of BKL in fs/minix 2009-06-17 00:36:37 -04:00
itree_common.c
itree_v1.c
itree_v2.c
Kconfig fs/Kconfig: move minix out 2009-01-22 13:15:58 +03:00
Makefile
minix.h Making fs/minix/minix.h double including safe 2009-06-22 11:34:42 -07:00
namei.c