summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2021-06-21 22:28:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-14 16:55:38 +0200
commit3ae1c663bdeb4cb82c557478358527ddacd516d8 (patch)
tree56d29e656c8d8fd856584f0e69c3f0b5020246c7 /tools
parentb242ae99fac6f57e39d7143d89d996fedb4ed7f6 (diff)
gfs2: Fix underflow in gfs2_page_mkwrite
commit d3c51c55cb9274dd43c156f1f26b5eb4d5f2d58c upstream. On filesystems with a block size smaller than PAGE_SIZE and non-empty files smaller then PAGE_SIZE, gfs2_page_mkwrite could end up allocating excess blocks beyond the end of the file, similar to fallocate. This doesn't make sense; fix it. Reported-by: Bob Peterson <rpeterso@redhat.com> Fixes: 184b4e60853d ("gfs2: Fix end-of-file handling in gfs2_page_mkwrite") Cc: stable@vger.kernel.org # v5.5+ Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions