]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
dm space map common: fix division bug in sm_ll_find_free_block()
authorJoe Thornber <ejt@redhat.com>
Tue, 13 Apr 2021 08:11:53 +0000 (09:11 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 19 May 2021 08:59:51 +0000 (10:59 +0200)
commite17a0fecbf582344b2ef59787e17b0c62dcbe424
treebe5043c2028e2dba1e009b6bc1a481fd0463c2d1
parent87d36a63f326a2bbc89cfce796586a92b4374678
dm space map common: fix division bug in sm_ll_find_free_block()

BugLink: https://bugs.launchpad.net/bugs/1928825
commit 5208692e80a1f3c8ce2063a22b675dd5589d1d80 upstream.

This division bug meant the search for free metadata space could skip
the final allocation bitmap's worth of entries. Fix affects DM thinp,
cache and era targets.

Cc: stable@vger.kernel.org
Signed-off-by: Joe Thornber <ejt@redhat.com>
Tested-by: Ming-Hung Tsai <mtsai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/md/persistent-data/dm-space-map-common.c