[PATCH v9 14/17] mm: vmalloc: pass additional vm_flags to __vmalloc_node_range()

2015-01-21 Thread Andrey Ryabinin
For instrumenting global variables KASan will shadow memory backing memory for modules. So on module loading we will need to allocate shadow memory and map it at exact virtual address. __vmalloc_node_range() seems like the best fit for that purpose, except it puts a guard hole after allocated

[PATCH v9 14/17] mm: vmalloc: pass additional vm_flags to __vmalloc_node_range()

2015-01-21 Thread Andrey Ryabinin
For instrumenting global variables KASan will shadow memory backing memory for modules. So on module loading we will need to allocate shadow memory and map it at exact virtual address. __vmalloc_node_range() seems like the best fit for that purpose, except it puts a guard hole after allocated