The mremap06 test relies on being able to move a mapping into the unmapped space of an existing reservation (second call to mremap() in do_test()). This is explicitly disallowed in PCuABI (for all syscalls that can create mappings), and it is unclear if the original bug can be reproduced if remapping to another adddress, so let's just skip the test in PCuABI.
Signed-off-by: Kevin Brodsky kevin.brodsky@arm.com --- testcases/kernel/syscalls/mremap/mremap06.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/testcases/kernel/syscalls/mremap/mremap06.c b/testcases/kernel/syscalls/mremap/mremap06.c index a19262750772..478840165cdc 100644 --- a/testcases/kernel/syscalls/mremap/mremap06.c +++ b/testcases/kernel/syscalls/mremap/mremap06.c @@ -96,6 +96,10 @@ static void setup(void) { int ret, i;
+#ifdef __CHERI_PURE_CAPABILITY__ + tst_brk(TCONF, "Cannot test mremap() into unmapped space in purecap: not supported"); +#endif + page_size = getpagesize(); mmap_size = (NUM_PAGES+1) * page_size; mremap_size = NUM_PAGES * page_size;