Commit 8dcd7c19 authored by Mike O'Connor's avatar Mike O'Connor Committed by Chris Wright

[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: default avatarChris Wright <chrisw@sous-sol.org>
parent 6cbb463d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment