path: root/mm/sparse-vmemmap.c
diff options
authorWill Deacon <>2017-11-15 17:36:40 -0800
committerLinus Torvalds <>2017-11-15 18:21:05 -0800
commite17d8025f07e4fd9d73b137a8bcab04548126b83 (patch)
tree742bbc9a8912ee240b29d3bdb2d44ae90fca0b79 /mm/sparse-vmemmap.c
parentd17a1d97dc208d664c91cc387ffb752c7f85dc61 (diff)
arm64/mm/kasan: don't use vmemmap_populate() to initialize shadow
The kasan shadow is currently mapped using vmemmap_populate() since that provides a semi-convenient way to map pages into init_top_pgt. However, since that no longer zeroes the mapped pages, it is not suitable for kasan, which requires zeroed shadow memory. Add kasan_populate_shadow() interface and use it instead of vmemmap_populate(). Besides, this allows us to take advantage of gigantic pages and use them to populate the shadow, which should save us some memory wasted on page tables and reduce TLB pressure. Link: Signed-off-by: Will Deacon <> Signed-off-by: Pavel Tatashin <> Cc: Andrey Ryabinin <> Cc: Steven Sistare <> Cc: Daniel Jordan <> Cc: Bob Picco <> Cc: Michal Hocko <> Cc: Alexander Potapenko <> Cc: Ard Biesheuvel <> Cc: Catalin Marinas <> Cc: Christian Borntraeger <> Cc: David S. Miller <> Cc: Dmitry Vyukov <> Cc: Heiko Carstens <> Cc: "H. Peter Anvin" <> Cc: Ingo Molnar <> Cc: Mark Rutland <> Cc: Matthew Wilcox <> Cc: Mel Gorman <> Cc: Michal Hocko <> Cc: Sam Ravnborg <> Cc: Thomas Gleixner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/sparse-vmemmap.c')
0 files changed, 0 insertions, 0 deletions