From: Suresh Siddha Date: Thu, 29 Oct 2009 02:46:58 +0000 (-0800) Subject: x86_64, cpa: Use only text section in set_kernel_text_rw/ro X-Git-Tag: v2.6.33-rc1~374^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7d23dde9b7ebb575e2bcee2abefc9ec1e4adde9;p=pandora-kernel.git x86_64, cpa: Use only text section in set_kernel_text_rw/ro set_kernel_text_rw()/set_kernel_text_ro() are marking pages starting from _text to __start_rodata as RW or RO. With CONFIG_DEBUG_RODATA, there might be free pages (associated with padding the sections to 2MB large page boundary) between text and rodata sections that are given back to page allocator. So we should use only use the start (__text) and end (__stop___ex_table) of the text section in set_kernel_text_rw()/set_kernel_text_ro(). Signed-off-by: Suresh Siddha Acked-by: Steven Rostedt Tested-by: Steven Rostedt LKML-Reference: <20091029024821.164525222@sbs-t61.sc.intel.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed