summaryrefslogtreecommitdiff
path: root/drivers/md/dm-cache-policy-internal.h
diff options
context:
space:
mode:
authorJohn Pittman <jpittman@redhat.com>2019-11-11 16:43:20 -0800
committerSong Liu <songliubraving@fb.com>2019-11-11 16:47:39 -0800
commit45422b704db392a6d79d07ee3e3670b11048bd53 (patch)
tree9016082f0c4aa548924d50b9d749e30a5ee08fee /drivers/md/dm-cache-policy-internal.h
parent228fc7d76db68732677230a3c64337908fd298e3 (diff)
md/raid10: prevent access of uninitialized resync_pages offset
Due to unneeded multiplication in the out_free_pages portion of r10buf_pool_alloc(), when using a 3-copy raid10 layout, it is possible to access a resync_pages offset that has not been initialized. This access translates into a crash of the system within resync_free_pages() while passing a bad pointer to put_page(). Remove the multiplication, preventing access to the uninitialized area. Fixes: f0250618361db ("md: raid10: don't use bio's vec table to manage resync pages") Cc: stable@vger.kernel.org # 4.12+ Signed-off-by: John Pittman <jpittman@redhat.com> Suggested-by: David Jeffery <djeffery@redhat.com> Reviewed-by: Laurence Oberman <loberman@redhat.com> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/dm-cache-policy-internal.h')
0 files changed, 0 insertions, 0 deletions