]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: Fixes to "Implement iomap for block_map" (2)
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 5 Mar 2018 13:18:25 +0000 (06:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 08:09:49 +0000 (09:09 +0100)
commitae53e57f59115cc5f08031e7e5b14e6b057e4323
treefbe819f4bfdc79fe994e17a1a817177bf1204aee
parent105cd2ef03beb0017af8e8de349e494d06b75ee3
gfs2: Fixes to "Implement iomap for block_map" (2)

commit 3b5da96e4585a2788da6a07619bda3518d76eb30 upstream.

It turns out that commit 3229c18c0d6b2 'Fixes to "Implement iomap for
block_map"' introduced another bug in gfs2_iomap_begin that can cause
gfs2_block_map to set bh->b_size of an actual buffer to 0.  This can
lead to arbitrary incorrect behavior including crashes or disk
corruption.  Revert the incorrect part of that commit.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/bmap.c