]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Clear arch specific VM flags on protection change
authorKhalid Aziz <khalid.aziz@oracle.com>
Wed, 21 Feb 2018 17:15:50 +0000 (10:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Mar 2018 14:38:47 +0000 (07:38 -0700)
commitc5a5dfbaee0a5ed4e58681a8a2fcd68a1998da84
tree339cc77f5489da03b12eb478315429f2c60bcf9d
parent35253f8d58ef222c98811bf7794630044647f4b9
mm: Clear arch specific VM flags on protection change

When protection bits are changed on a VMA, some of the architecture
specific flags should be cleared as well. An examples of this are the
PKEY flags on x86. This patch expands the current code that clears
PKEY flags for x86, to support similar functionality for other
architectures as well.

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
Cc: Khalid Aziz <khalid@gonehiking.org>
Reviewed-by: Anthony Yznaga <anthony.yznaga@oracle.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mm.h
mm/mprotect.c