mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
x86: CPA no alias checking for _NX
NX settings are not required to be consistent across alias mappings. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
31eedd823c
commit
af96e4438a
1 changed files with 5 additions and 2 deletions
|
|
@ -669,7 +669,7 @@ static int change_page_attr_set_clr(unsigned long addr, int numpages,
|
||||||
pgprot_t mask_set, pgprot_t mask_clr)
|
pgprot_t mask_set, pgprot_t mask_clr)
|
||||||
{
|
{
|
||||||
struct cpa_data cpa;
|
struct cpa_data cpa;
|
||||||
int ret, cache;
|
int ret, cache, checkalias;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check, if we are requested to change a not supported
|
* Check, if we are requested to change a not supported
|
||||||
|
|
@ -695,7 +695,10 @@ static int change_page_attr_set_clr(unsigned long addr, int numpages,
|
||||||
cpa.mask_clr = mask_clr;
|
cpa.mask_clr = mask_clr;
|
||||||
cpa.flushtlb = 0;
|
cpa.flushtlb = 0;
|
||||||
|
|
||||||
ret = __change_page_attr_set_clr(&cpa, 1);
|
/* No alias checking for _NX bit modifications */
|
||||||
|
checkalias = (pgprot_val(mask_set) | pgprot_val(mask_clr)) != _PAGE_NX;
|
||||||
|
|
||||||
|
ret = __change_page_attr_set_clr(&cpa, checkalias);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check whether we really changed something:
|
* Check whether we really changed something:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue