mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
While the kselftest was added at the same time with the kernel support
for MTE on hugetlb mappings, the tests may be run on older kernels. Skip
the tests if PROT_MTE is not supported on MAP_HUGETLB mappings.
Fixes: 27879e8cb6 ("selftests: arm64: add hugetlb mte tests")
Cc: Yang Shi <[email protected]>
Reported-by: Naresh Kamboju <[email protected]>
Reviewed-by: Dev Jain <[email protected]>
Reviewed-by: Yang Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>