Skip to content

Commit

Permalink
mark protection_map as __ro_after_init
Browse files Browse the repository at this point in the history
This change was extracted from PaX where it's part of KERNEXEC.

Signed-off-by: Daniel Micay <[email protected]>
  • Loading branch information
thestinger committed May 7, 2017
1 parent 89aeb52 commit d8dabe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void unmap_region(struct mm_struct *mm,
* w: (no) no
* x: (yes) yes
*/
pgprot_t protection_map[16] = {
pgprot_t protection_map[16] __ro_after_init = {
__P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
__S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
};
Expand Down

0 comments on commit d8dabe9

Please sign in to comment.