inode->i_count security hole

Guest (guest@manjak.knm.org.pl)
Mon, 20 Apr 1998 12:21:03 +0200


Hello,

while browsing through include/linux/fs.h in 2.1.79 I noticed that
i_count is not unsigned long as it's supposed to be (i_count overflow).
Is that a bug or am I missing something ?

regards,
Martin
ps. Small patch in case it is a bug:
--- fs.h-orig Mon Apr 20 12:20:24 1998
+++ fs.h Mon Apr 20 12:20:33 1998
@@ -324,7 +324,7 @@
struct list_head i_dentry;

unsigned long i_ino;
- unsigned int i_count;
+ unsigned long i_count;
kdev_t i_dev;
umode_t i_mode;
nlink_t i_nlink;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu