summaryrefslogtreecommitdiff
path: root/fs/ext4/xattr.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-01-27 14:35:38 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 06:41:46 +0100
commita5a9cf387de6dde4c79b6e7fb6311dbd7ec86f02 (patch)
tree779a3f30e18a688fe8eca820e95a100a38e2ae24 /fs/ext4/xattr.c
parentfc6c2da174edd7a7b760b12c60d432d300e05cca (diff)
ext4: fix data corruption in data=journal mode
commit 3b136499e906460919f0d21a49db1aaccf0ae963 upstream. 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. Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4/xattr.c')
0 files changed, 0 insertions, 0 deletions