kmemcheck: don't track page tables
As these are allocated using the page allocator, we need to pass __GFP_NOTRACK before we add page allocator support to kmemcheck. Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
This commit is contained in:
@ -104,7 +104,7 @@ static __ref void *spp_getpage(void)
|
||||
void *ptr;
|
||||
|
||||
if (after_bootmem)
|
||||
ptr = (void *) get_zeroed_page(GFP_ATOMIC);
|
||||
ptr = (void *) get_zeroed_page(GFP_ATOMIC | __GFP_NOTRACK);
|
||||
else
|
||||
ptr = alloc_bootmem_pages(PAGE_SIZE);
|
||||
|
||||
@ -281,7 +281,7 @@ static __ref void *alloc_low_page(unsigned long *phys)
|
||||
void *adr;
|
||||
|
||||
if (after_bootmem) {
|
||||
adr = (void *)get_zeroed_page(GFP_ATOMIC);
|
||||
adr = (void *)get_zeroed_page(GFP_ATOMIC | __GFP_NOTRACK);
|
||||
*phys = __pa(adr);
|
||||
|
||||
return adr;
|
||||
|
Reference in New Issue
Block a user