]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix oops when loading modules
authorPaul Mackerras <paulus@samba.org>
Mon, 6 Apr 2009 17:21:10 +0000 (17:21 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 7 Apr 2009 05:19:01 +0000 (15:19 +1000)
commitac700b5e203c20f70d3c1ed407b4592200ec267f
treea99df58800151b3503a24424550fad55c160b6e1
parent5bdb80674f6d07079d4dbec268292a47f1e6490c
powerpc: Fix oops when loading modules

This fixes a problem reported by Sean MacLennan where loading any
module would cause an oops.  We weren't marking the pages containing
the module text as having hardware execute permission, due to a bug
introduced in commit 68d93aa8 ("powerpc/mm: Tweak PTE bit combination
definitions"), hence trying to execute the module text caused an
exception on processors that support hardware execute permission.

This adds _PAGE_HWEXEC to the definitions of PAGE_KERNEL_X and
PAGE_KERNEL_ROX to fix this problem.

Reported-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/pte-common.h