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

Message ID 20190103145954.16942-1-rpenyaev@suse.de
Headers show
  • mm/vmalloc: fix size check and few cleanups
Related show


Roman Penyaev Jan. 3, 2019, 2:59 p.m. UTC
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@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Joe Perches <joe@perches.com>
Cc: "Luis R. Rodriguez" <mcgrof@kernel.org>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org