aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/aarch64/mte-6.c
AgeCommit message (Collapse)AuthorFilesLines
2021-04-12accel/tcg: Preserve PAGE_ANON when changing page permissionsRichard Henderson1-0/+43
Using mprotect() to change PROT_* does not change the MAP_ANON previously set with mmap(). Our linux-user version of MTE only works with MAP_ANON pages, so losing PAGE_ANON caused MTE to stop working. Reported-by: Stephen Long <steplong@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>