Messages in this thread | | | Date | Tue, 11 Mar 2008 10:09:47 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH] x86 Fix test_poke for vmalloced pages |
| |
* Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:
> The shadow vmap for DEBUG_RODATA kernel text modification uses > virt_to_page to get the pages from the pointer address. > > However, I think vmalloc_to_page would be required in case the page is > used for modules. > > Since only the core kernel text is marked read-only, use > kernel_text_address() to make sure we only shadow map the core kernel > text, not modules.
actually, i think we should mark module text readonly too.
Ingo
| |