]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Do not retain old VM_SPARC_ADI flag when protection changes on page
authorKhalid Aziz <khalid.aziz@oracle.com>
Tue, 7 Mar 2017 18:26:10 +0000 (11:26 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 6 Apr 2017 07:13:43 +0000 (00:13 -0700)
commit3b565b8c8115d396ca91e79552529d48092d8589
treea6b995267f4e3a7ce2d7548c710c63ffbf375167
parent744d2a3d39bafcb53e56f45de8aec0a60c5022bd
sparc64: Do not retain old VM_SPARC_ADI flag when protection changes on page

When protection on a memory page is changed with mprotect(), old
arch-specific VM flags on the page are retained. This patch clears
old VM_SPARC_ADI flag when protection is changed since mprotect() is
potentially being invoked to disable ADI on the page. This code will
add VM_SPARC_ADI flag back if the new protection includes it.

Orabug: 25641371

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
include/linux/mm.h
mm/mprotect.c