]> 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)
commit05e780e0927bb41abdbccc91c4fd83c3d78452ba
tree339cc77f5489da03b12eb478315429f2c60bcf9d
parent01ece0bdadd449bfc494f045d98fa323659f7a0d
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