Files
linux/fs/udf
Jan Kara 31147bc619 udf: Fix data corruption for files in ICB
commit 9c2fc0de1a upstream.

When a file is stored in ICB (inode), we overwrite part of the file, and
the page containing file's data is not in page cache, we end up corrupting
file's data by overwriting them with zeros. The problem is we use
simple_write_begin() which simply zeroes parts of the page which are not
written to. The problem has been introduced by be021ee4 (udf: convert to
new aops).

Fix the problem by providing a ->write_begin function which makes the page
properly uptodate.

Reported-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-14 10:00:50 -07:00
..
2011-03-23 19:46:19 -07:00
2011-01-06 17:03:57 +01:00
2009-09-14 19:13:00 +02:00
2009-09-14 19:13:00 +02:00
2009-06-11 21:36:13 -04:00
2012-07-16 08:47:38 -07:00