ocfs2: Fix system inodes cache overflow.
PATCH 1/1 ocfs2: Fix system inodes cache overflow.
From: Tao Ma <[email protected]>
When we store system inodes cache in ocfs2_super, we use a array for global system inodes. But unfortunately, the range is calculated wrongly which makes it overflow and pollute ocfs2_super->local_system_inodes.
This patch fix it by setting the range properly.
The corresponding bug is ossbug1303.
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1303
--- fs/ocfs2/ocfs2_fs.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/ocfs2_fs.h +1 -1
@@ -350,7 +350,7 @@ enum {#define OCFS2_LAST_LOCAL_SYSTEM_INODE LOCAL_GROUP_QUOTA_SYSTEM_INODE NUM_SYSTEM_INODES }; -#define NUM_GLOBAL_SYSTEM_INODES OCFS2_LAST_GLOBAL_SYSTEM_INODE +#define NUM_GLOBAL_SYSTEM_INODES OCFS2_FIRST_LOCAL_SYSTEM_INODE#define NUM_LOCAL_SYSTEM_INODES \ (NUM_SYSTEM_INODES - OCFS2_FIRST_LOCAL_SYSTEM_INODE)
Signature · 1 line
1.6.3.GIT
PATCH 1/1 ocfs2: Fix system inodes cache overflow.
Quoted 8 lines · Tao Ma
From: Tao Ma <[email protected]>
When we store system inodes cache in
ocfs2_super, we use a array for global system inodes. But unfortunately, the range is calculated wrongly which makes it overflow and polluteocfs2_super->local_system_inodes.
This patch fix it by setting the range properly.
Quoted 5 lines
The corresponding bug is ossbug1303.
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1303Cc stable at kernel.orgSigned-off-by Tao Ma <[email protected]>
This patch is now in the fixes branch of ocfs2.git.
Joel
Signature · 9 lines
Viro's Razor: Any race condition, no matter how unlikely, will occur just often enough to bite you. Joel Becker Senior Development Manager Oracle E-mail: joel.becker at oracle.com Phone: (650) 506-8127