]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: fix mmap data corruption when blocksize < pagesize
authorJan Kara <jack@suse.cz>
Thu, 2 Oct 2014 01:49:46 +0000 (21:49 -0400)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:34 +0000 (19:02 +0100)
commit97f94c2e2fe51803a074d4e50de0049a243391eb
tree102760e4d9de68007a97bd3b3c346305c2620fb2
parent0dce193f3456fe009fc3c588f4ac39f33446df61
ext4: fix mmap data corruption when blocksize < pagesize

commit d6320cbfc92910a3e5f10c42d98c231c98db4f60 upstream.

Use truncate_isize_extended() when hole is being created in a file so that
->page_mkwrite() will get called for the partial tail page if it is
mmaped (see the first patch in the series for details).

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/ext4/inode.c