]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Only make kernel text pages of linear mapping executable
authorPaul Mackerras <paulus@samba.org>
Sat, 30 Aug 2008 01:26:27 +0000 (11:26 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 Sep 2008 10:53:22 +0000 (20:53 +1000)
commit1042d21159497fbb206538f94fe5ac417adfee31
treebcd48acbd2420eda4d9018d3c0c697cdb84c44f6
parentf41a9f59454a76745c716342d1db287d3de45860
powerpc: Only make kernel text pages of linear mapping executable

Commit 5655634fc3adf2c918b901e24d02611e2a0ce9d5 ("powerpc/mm: Fix
attribute confusion with htab_bolt_mapping()") moved the check for
whether we should make pages of the linear mapping executable from
htab_bolt_mapping into its callers, including htab_initialize.
A side-effect of this is that the decision is now made once for
each contiguous section in the LMB array rather than for each page
individually.  This can often mean that the whole of the linear
mapping ends up being executable.

This reverts to the previous behaviour, where individual pages are
checked for being part of the kernel text or not, by moving the check
back down into htab_bolt_mapping.

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/hash_utils_64.c