mmap(..., MAP_SHARED) creates a mapping without tag access, and returns a capability that cannot load/store capabilities. Adjust the expected permissions in the syscall_mmap2 test accordingly.
Signed-off-by: Kevin Brodsky kevin.brodsky@arm.com --- tools/testing/selftests/arm64/morello/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/arm64/morello/mmap.c b/tools/testing/selftests/arm64/morello/mmap.c index 618eb221d0ae..72f86736512a 100644 --- a/tools/testing/selftests/arm64/morello/mmap.c +++ b/tools/testing/selftests/arm64/morello/mmap.c @@ -81,7 +81,7 @@ void syscall_mmap2(void) ASSERT_EQ(retval, (int)msg_len);
addr = mmap_verified(NULL, MMAP_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, - 0, CAP_LOAD_PERMS | CAP_STORE_PERMS); + 0, CHERI_PERM_LOAD | CHERI_PERM_STORE);
EXPECT_NE(addr, NULL) goto clean_up;