Hi,
This series fixes various issues in LTP that prevent tests from passing when reservations / PCuABI address space management are implemented.
Patch 1-3 are generic, and arguably general improvements. The remainder of the patches are PCuABI-specific, with appropriate #ifdef'ing where necessary. The changes are meant to be backwards-compatible (e.g. ERESERVATION is not assumed to be returned in PCuABI).
Review branch:
https://git.morello-project.org/kbrodsky-arm/morello-linux-ltp/-/commits/mor...
Thanks, Kevin
Kevin Brodsky (10): syscalls/munlock: Pass an appropriate length to munlock() syscalls/m{,un}lock: Use mmap() to obtain an owning pointer syscalls/m{,un}map: Pass a raw address when reusing an address range syscalls: Use PROT_MAX() where needed syscalls/mmap: Allow MREMAP_MAYMOVE in PCuABI syscalls/mlock{,2}: Expect ERESERVATION on unmapped area syscalls/mmap: Expect EINVAL on MAP_FIXED_NOREPLACE syscalls/mprotect: Expect EINVAL on null pointer syscalls/mremap: Expect EINVAL on narrow pointer syscalls/mmap: Skip MAP_GROWSDOWN tests in PCuABI
.../syscalls/memfd_create/memfd_create_common.c | 3 ++- testcases/kernel/syscalls/mlock/mlock01.c | 13 +++---------- testcases/kernel/syscalls/mlock/mlock02.c | 12 +++++++++++- testcases/kernel/syscalls/mlock2/mlock202.c | 5 +++-- testcases/kernel/syscalls/mmap/mmap16.c | 11 +++++++++-- testcases/kernel/syscalls/mmap/mmap17.c | 4 ++++ testcases/kernel/syscalls/mmap/mmap18.c | 7 +++++++ testcases/kernel/syscalls/mmap/mmap19.c | 4 ++-- testcases/kernel/syscalls/mprotect/mprotect01.c | 11 +++++++++-- testcases/kernel/syscalls/mprotect/mprotect02.c | 3 ++- testcases/kernel/syscalls/mprotect/mprotect04.c | 5 +++-- testcases/kernel/syscalls/mprotect/mprotect05.c | 4 +++- testcases/kernel/syscalls/mremap/mremap03.c | 5 +++++ testcases/kernel/syscalls/mremap/mremap05.c | 4 +++- testcases/kernel/syscalls/munlock/munlock01.c | 13 +++---------- testcases/kernel/syscalls/munlock/munlock02.c | 1 + 16 files changed, 70 insertions(+), 35 deletions(-)