dm space map common: add bounds check to sm_ll_lookup_bitmap()
authorJoe Thornber <ejt@redhat.com>
Fri, 10 Dec 2021 13:49:53 +0000 (13:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 07:46:18 +0000 (08:46 +0100)
commit7eed11c26a8a66e5e8fbef1abcbc2918212db503
treefb21a282d5a9a73085eef7b7def9724dc509d558
parent6da82c0ae3feee6207d7dcbbf22aa79db75383b2
dm space map common: add bounds check to sm_ll_lookup_bitmap()

[ Upstream commit cba23ac158db7f3cd48a923d6861bee2eb7a2978 ]

Corrupted metadata could warrant returning error from sm_ll_lookup_bitmap().

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/persistent-data/dm-space-map-common.c