lkml.org 
[lkml]   [2008]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-03-11 10:13    [W:0.050 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site