]> git.baikalelectronics.ru Git - kernel.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)
committerBob Peterson <rpeterso@redhat.com>
Wed, 7 Mar 2018 18:40:38 +0000 (11:40 -0700)
commitee939c2e5ce41a9a4779f054dd531669f94faf27
tree16d641a9b40682f8a027f6175bc9efe570a9687d
parent4c74915257dc0e44ff72cb57549115c69e912466
gfs2: Fixes to "Implement iomap for block_map" (2)

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>
fs/gfs2/bmap.c