Skip to content
Commit f3837ab7 authored by Ira Weiny's avatar Ira Weiny Committed by Jens Wiklander
Browse files

highmem: Enhance is_kmap_addr() to check kmap_local_page() mappings



is_kmap_addr() is only looking at the kmap() address range which may
cause check_heap_object() to miss checking an overflow on a
kmap_local_page() page.

Add a check for the kmap_local_page() address range to is_kmap_addr().

Cc: Matthew Wilcox <willy@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Acked-by: default avatarAndrew Morton <akpm@linux-foudation.org>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent ceaa837f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment