/[linux-patches]/genpatches-2.6/trunk/2.6.14/1462_15.5_xfs-ftruncate-stale-data.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1462_15.5_xfs-ftruncate-stale-data.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 942 byte(s)
2.6.14-11, rebase against local tree
1 From: Mike O'Connor <mjo@dojo.mi.org>
2 Date: Wed, 15 Feb 2006 05:17:24 +0000 (-0500)
3 Subject: [PATCH] XFS ftruncate() bug could expose stale data (CVE-2006-0554)
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=8dcd7c19f2624b7150edd60da336da0bb5291bef
5
6 [PATCH] XFS ftruncate() bug could expose stale data (CVE-2006-0554)
7
8 This is CVE-2006-0554 and SGI bug 942658. With certain types of
9 ftruncate() activity on 2.6 kernels, XFS can end up exposing stale
10 data off disk to a user, putting extents where holes should be.
11
12 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
13 ---
14
15 --- a/fs/xfs/linux-2.6/xfs_aops.c
16 +++ b/fs/xfs/linux-2.6/xfs_aops.c
17 @@ -385,7 +385,7 @@ xfs_probe_unmapped_cluster(
18
19 /* First sum forwards in this page */
20 do {
21 - if (buffer_mapped(bh))
22 + if (buffer_mapped(bh) || !buffer_uptodate(bh))
23 break;
24 total += bh->b_size;
25 } while ((bh = bh->b_this_page) != head);

  ViewVC Help
Powered by ViewVC 1.1.20