Skip to content
  • Paul Mackerras's avatar
    powerpc: Fix oops when loading modules · 11b55da7
    Paul Mackerras authored
    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 8d1cf34e
    
     ("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: default avatarSean MacLennan <smaclennan@pikatech.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    11b55da7