1
0
Fork 0
alistair23-linux/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
..
Kconfig fs/Kconfig: move minix out 2009-01-22 13:15:58 +03:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -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 [PATCH] Minix V3 support 2007-02-12 09:48:31 -08:00
itree_v1.c limit minixfs printks on corrupted dir i_size 2007-10-17 08:42:53 -07:00
itree_v2.c limit minixfs printks on corrupted dir i_size 2007-10-17 08:42:53 -07:00
minix.h Making fs/minix/minix.h double including safe 2009-06-22 11:34:42 -07:00
namei.c minix: remove !NO_TRUNCATE code 2008-07-25 10:53:30 -07:00