Regression test for 49ccf2c3cafb
cover Regression test for 49ccf2c3cafb
---
Andrea Cervesato (2):
lapi: add PROT_MTE fallback
hugemmap35: add regression test for 49ccf2c3cafb
include/lapi/mman.h | 4 + runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + testcases/kernel/mem/hugetlb/hugemmap/hugemmap35.c | 105 +++++++++++++++++++++ 4 files changed, 111 insertions(+)
---
base-commit: d139524b04d360c4dabaee61a6066a9a52b0e454
change-id: 20260715-hugemmap35-fdc484ee4bbf
Best regards,
Signature · 5 lines
Andrea Cervesato <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 1/2 lapi: add PROT_MTE fallback
From: Andrea Cervesato <[email protected]>
--- include/lapi/mman.h | 4 ++++ 1 file changed, 4 insertions(+)
include/lapi/mman.h +4 -0
@@ -11,6 +11,10 @@#include "config.h" #include "lapi/syscalls.h" +#ifndef PROT_MTE +# define PROT_MTE 0x20 +#endif + #ifndef HAVE_STRUCT_CACHESTAT_RANGE struct cachestat_range { uint64_t off;
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] lapi: add PROT_MTE fallback
Hi Andrea,
Quoted 1 line · Andrea Cervesato
lapi: add
PROT_MTEfallback
Verdict - Reviewed
---
Note:
The agent can sometimes produce false positives although often its findings are genuine. If you find issues with the review, please comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 2/2 hugemmap35: add regression test for 49ccf2c3cafb
In reply to Andrea CervesatoFrom: Andrea Cervesato <[email protected]>
Add a regression test verifying that a hugetlbfs file can be mapped with PROT_MTE even when MAP_HUGETLB is not set in the mmap() flags.
Before the referenced commit, VM_MTE_ALLOWED was not set early enough for hugetlbfs file mappings, so such an mmap() was wrongly rejected.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + testcases/kernel/mem/hugetlb/hugemmap/hugemmap35.c | 105 +++++++++++++++++++++ 3 files changed, 107 insertions(+)
runtest/hugetlb +1 -0
@@ -36,6 +36,7 @@ hugemmap30 hugemmap30 hugemmap31 hugemmap31 hugemmap32 hugemmap32 hugemmap34 hugemmap34 +hugemmap35 hugemmap35 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -36,6 +36,7 @@ /hugetlb/hugemmap/hugemmap31 /hugetlb/hugemmap/hugemmap32 /hugetlb/hugemmap/hugemmap34 +/hugetlb/hugemmap/hugemmap35 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/hugemmap35.c new file +105 -0
105 lines not on this page · raw message
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 2/2] hugemmap35: add regression test for 49ccf2c3cafb
Hi!
For the patchset:
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Andrea Cervesato via ltp
AppliedMerged, Thanks!
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp