summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMike O'Connor <mjo@dojo.mi.org>2006-02-15 00:17:24 -0500
committerChris Wright <chrisw@sous-sol.org>2006-03-01 14:36:38 -0800
commit8dcd7c19f2624b7150edd60da336da0bb5291bef (patch)
tree0a85c63e8e7d00b1bf0f1a2f5b5f4cfbc8f244f2 /fs
parent6cbb463db05210e83ddc18cbd92e295f1fefa111 (diff)
[PATCH] XFS ftruncate() bug could expose stale data (CVE-2006-0554)
This is CVE-2006-0554 and SGI bug 942658. With certain types of ftruncate() activity on 2.6 kernels, XFS can end up exposing stale data off disk to a user, putting extents where holes should be. Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 94d3cdfbf9b8..c4ac008a5201 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -385,7 +385,7 @@ xfs_probe_unmapped_cluster(
/* First sum forwards in this page */
do {
- if (buffer_mapped(bh))
+ if (buffer_mapped(bh) || !buffer_uptodate(bh))
break;
total += bh->b_size;
} while ((bh = bh->b_this_page) != head);