Merge "kasan: Zero shadow memory on memory hotplug"

This commit is contained in:
qctecmdr 2020-01-03 00:06:33 -08:00 • committed by Gerrit - the friendly Code Review server
commit a7004306b1

View file

@ -700,7 +700,7 @@ static int __meminit kasan_mem_notifier(struct notifier_block *nb,
return NOTIFY_OK;
ret = __vmalloc_node_range(shadow_size, PAGE_SIZE, shadow_start,
shadow_end, GFP_KERNEL,
shadow_end, GFP_KERNEL | __GFP_ZERO,
PAGE_KERNEL, VM_NO_GUARD,
pfn_to_nid(mem_data->start_pfn),
__builtin_return_address(0));