diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-06-22 08:26:58 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-06-24 20:56:36 +0200 |
commit | e53c4b598372001a13901b77649dc1b4afec3e85 (patch) | |
tree | 53c14ed955b01e8966afdf4c2ee41f76d2b73427 /usr | |
parent | xfs: fix off-by-one error in xfs_rtalloc_query_range (diff) | |
download | linux-e53c4b598372001a13901b77649dc1b4afec3e85.tar.xz linux-e53c4b598372001a13901b77649dc1b4afec3e85.zip |
xfs: ensure post-EOF zeroing happens after zeroing part of a file
If a user asks us to zero_range part of a file, the end of the range is
EOF, and not aligned to a page boundary, invoke writeback of the EOF
page to ensure that the post-EOF part of the page is zeroed. This
ensures that we don't expose stale memory contents via mmap, if in a
clumsy manner.
Found by running generic/127 when it runs zero_range and mapread at EOF
one after the other.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions