Christoph Hellwig 6ab455eeaf [XFS] Fix memory corruption with small buffer reads
When we have multiple buffers in a single page for a blocksize == pagesize
filesystem we might overwrite the page contents if two callers hit it
shortly after each other. To prevent that we need to keep the page locked
until I/O is completed and the page marked uptodate.

Thanks to Eric Sandeen for triaging this bug and finding a reproducible
testcase and Dave Chinner for additional advice.

This should fix kernel.org bz #10421.

Tested-by: Eric Sandeen <sandeen@sandeen.net>

SGI-PV: 981813
SGI-Modid: xfs-linux-melb:xfs-kern:31173a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
2008-05-23 18:12:49 +10:00
..
2008-04-29 15:54:02 +10:00
2008-04-29 16:07:48 +10:00
2008-02-07 18:22:38 +11:00
2008-02-07 16:46:39 +11:00
2007-07-14 15:28:50 +10:00
2008-04-29 15:54:02 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:14:38 +11:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2008-02-07 16:44:23 +11:00
2008-04-29 15:54:02 +10:00
2008-04-29 15:54:02 +10:00
2008-04-18 12:02:30 +10:00
2008-04-29 15:57:38 +10:00
2008-04-29 15:58:00 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 16:47:15 +11:00
2008-04-29 15:54:02 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:24:00 +11:00
2008-05-23 15:25:25 +10:00
2008-05-23 15:25:25 +10:00