diff options
author | Jan Kara <[email protected]> | 2017-01-27 14:35:38 -0500 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2017-01-27 14:35:38 -0500 |
commit | 3b136499e906460919f0d21a49db1aaccf0ae963 (patch) | |
tree | 9da71e2dcd4f4d90b21ed5ec7a4c9cb44c0b0194 /scripts/gdb/linux/utils.py | |
parent | cd648b8a8fd5071d232242d5ee7ee3c0815776af (diff) |
ext4: fix data corruption in data=journal mode
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: [email protected]
Reported-by: Al Viro <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions