mm: LKSM: bug fix for KASAN out-of-bound access error on accessing a filter
authorSung-hun Kim <sfoon.kim@samsung.com>
Wed, 28 Oct 2020 10:26:31 +0000 (19:26 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 30 Mar 2021 01:40:01 +0000 (10:40 +0900)
commit370dc88a686b8618165d44295597a57b64cd3f54
tree8a17808666c8973599c4c956027a5bf2454b6980
parent605d95e7f01e011d40d61a7f8277d9c237047a33
mm: LKSM: bug fix for KASAN out-of-bound access error on accessing a filter

KASAN reports out-of-bound accesses (reported by Jaehoon Chung)
on slab which is performed for obtaining a next filtered
address to find a sharable page.

LKSM exploits bitmap-based filters to find sharable pages in
an efficient way. A buggy code is a kind of miscalculation for
boundary of the allocated bitmap. This patch takes care of it.

Change-Id: If45c5ce175db067523b60f11e69e12d2bc798659
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
mm/lksm.c