[PATCH 0/3] mm/vmalloc: fix size check and few cleanups

From: Roman Penyaev
Date: Thu Jan 03 2019 - 10:00:21 EST


The first patch in series fixes size check for remap_vmalloc_range_partial()
which can lead to kernel crash by unfaithful userspace mapping. Others two
are minor cleanups.

Roman Penyaev (3):
mm/vmalloc: fix size check for remap_vmalloc_range_partial()
mm/vmalloc: do not call kmemleak_free() on not yet accounted memory
mm/vmalloc: pass VM_USERMAP flags directly to __vmalloc_node_range()

mm/vmalloc.c | 48 ++++++++++++++++++++----------------------------
1 file changed, 20 insertions(+), 28 deletions(-)

Signed-off-by: Roman Penyaev <rpenyaev@xxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>
Cc: Joe Perches <joe@xxxxxxxxxxx>
Cc: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxx>
Cc: linux-mm@xxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
--
2.19.1