Re: [PATCH] ext4: Fix data corruption in data=journal mode
From: Theodore Ts'o <tytso@mit.edu>
Date: 2017-02-01 19:06:57
Also in:
stable
From: Theodore Ts'o <tytso@mit.edu>
Date: 2017-02-01 19:06:57
Also in:
stable
On Tue, Jan 10, 2017 at 01:37:53PM +0100, Jan Kara wrote:
ext4_journalled_write_end() did not propely handle all the cases when generic_perform_write() did not copy all the data into the target page and could mark buffers with uninitialized contents as uptodate and dirty leading to possible data corruption (which would be quickly fixed by generic_perform_write() retrying the write but still). Fix the problem by carefully handling the case when the page that is written to is not uptodate. CC: stable@vger.kernel.org Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Jan Kara <jack@suse.cz>
Thanks, applied. - Ted