Hugetlb:Migrating the libhugetlbfs tests
v2 cover Hugetlb:Migrating the libhugetlbfs tests
V2:
1. Added linux bug fix commit tag in testcases.
2. Asthetics changes in [PATCH 1/8].
Hi,
This patch series is in continuation to part [1] and part [2] This series include 8 more tests taken from libhugetlbfs.
Background:
Libhugetlbfs is not being maintained actively, and some distro is dropping support for it. There are some tests that are good for testing hugetlb functionality in kernel. These patches include tests from libhugetlbfs.
ref:
1. https://lore.kernel.org/all/[email protected]/
2. https://lore.kernel.org/all/[email protected]/
3. https://lore.kernel.org/all/[email protected]/
Tarun Sahu (8):
Hugetlb: Migrating libhugetlbfs fork-cow
Hugetlb: Migrating libhugetlbfs huge_at_4GB_normal_below
Hugetlb: Migrating libhugetlbfs huge_below_4GB_normal_above
Hugetlb: Migrating libhugetlbfs icache-hygiene
Hugetlb: Migrating libhugetlbfs madvise_reserve
Hugetlb: Migrating libhugetlbfs map_high_truncate_2
Hugetlb: Migrating libhugetlbfs misalign
Hugetlb: Migrating libhugetlbfs misaligned_offset
runtest/hugetlb | 9 + testcases/kernel/mem/.gitignore | 8 + .../kernel/mem/hugetlb/hugefork/Makefile | 10 + .../kernel/mem/hugetlb/hugefork/hugefork01.c | 92 +++++++ .../kernel/mem/hugetlb/hugemmap/Makefile | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap13.c | 126 +++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap14.c | 159 ++++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap15.c | 243 ++++++++++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap16.c | 83 ++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap17.c | 103 ++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap18.c | 153 +++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap19.c | 147 +++++++++++ 12 files changed, 1134 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugefork/Makefile create mode 100644 testcases/kernel/mem/hugetlb/hugefork/hugefork01.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap13.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap14.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap16.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap17.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap18.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap19.c
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 1/8 Hugetlb: Migrating libhugetlbfs fork-cow
Migrating the libhugetlbfs/testcases/fork-cow.c test
Test Description: This checks copy-on-write semantics, specifically the semantics of a MAP_PRIVATE mapping across a fork(). Some versions of the powerpc kernel had a bug in huge_ptep_set_wrprotect() which would fail to flush the hash table after setting the write protect bit in the parent's page tables, thus allowing the parent to pollute the child's mapping.
--- runtest/hugetlb | 2 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugefork/Makefile | 10 ++ .../kernel/mem/hugetlb/hugefork/hugefork01.c | 92 +++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugefork/Makefile create mode 100644 testcases/kernel/mem/hugetlb/hugefork/hugefork01.c
runtest/hugetlb +2 -0
@@ -1,6 +1,8 @@ hugefallocate01 hugefallocate01 hugefallocate02 hugefallocate02 +hugefork01 hugefork01 + hugemmap01 hugemmap01 hugemmap02 hugemmap02 hugemmap04 hugemmap04
testcases/kernel/mem/.gitignore +1 -0
@@ -1,6 +1,7 @@ /cpuset/cpuset01 /hugetlb/hugefallocate/hugefallocate01 /hugetlb/hugefallocate/hugefallocate02 +/hugetlb/hugefork/hugefork01 /hugetlb/hugemmap/hugemmap01 /hugetlb/hugemmap/hugemmap02 /hugetlb/hugemmap/hugemmap04
testcases/kernel/mem/hugetlb/hugefork/Makefile new file +10 -0
@@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2009, Cisco Systems Inc. +# Ngie Cooper, July 2009 + +top_srcdir ?= ../../../../.. + +include $(top_srcdir)/include/mk/testcases.mk +include $(abs_srcdir)/../Makefile.inc +include $(top_srcdir)/include/mk/generic_leaf_target.mk +
testcases/kernel/mem/hugetlb/hugefork/hugefork01.c new file +92 -0
92 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 2/8 Hugetlb: Migrating libhugetlbfs huge_at_4GB_normal_below
In reply to Tarun SahuMigrating the libhugetlbfs/testcases/huge_at_4GB_normal_below.c test
Test Description: On some old ppc64 kernel, when hpage is mmaped on 32 bit boundary and normal page below it, it triggers the bug caused by off-by-one error.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap13.c | 126 ++++++++++++++++++ 3 files changed, 128 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap13.c
runtest/hugetlb +1 -0
@@ -14,6 +14,7 @@ hugemmap09 hugemmap09 hugemmap10 hugemmap10 hugemmap11 hugemmap11 hugemmap12 hugemmap12 +hugemmap13 hugemmap13 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -13,6 +13,7 @@ /hugetlb/hugemmap/hugemmap10 /hugetlb/hugemmap/hugemmap11 /hugetlb/hugemmap/hugemmap12 +/hugetlb/hugemmap/hugemmap13 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/hugemmap13.c new file +126 -0
126 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 3/8 Hugetlb: Migrating libhugetlbfs huge_below_4GB_normal_above
In reply to Tarun SahuMigrating the libhugetlbfs/testcases/huge_below_4GB_normal_above.c test
Test Description: On some old ppc64 kernel, when huge page is mapped at below touching 32 bit boundary (4GB - hpage_size), and normal page is mmaped at just above it, it triggers a bug caused by off-by-one error.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap14.c | 159 ++++++++++++++++++ 3 files changed, 161 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap14.c
runtest/hugetlb +1 -0
@@ -15,6 +15,7 @@ hugemmap10 hugemmap10 hugemmap11 hugemmap11 hugemmap12 hugemmap12 hugemmap13 hugemmap13 +hugemmap14 hugemmap14 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -14,6 +14,7 @@ /hugetlb/hugemmap/hugemmap11 /hugetlb/hugemmap/hugemmap12 /hugetlb/hugemmap/hugemmap13 +/hugetlb/hugemmap/hugemmap14 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/hugemmap14.c new file +159 -0
159 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 4/8 Hugetlb: Migrating libhugetlbfs icache-hygiene
In reply to Tarun SahuMigrating the libhugetlbfs/testcases/icache-hygiene.c test
Test Description: Older ppc64 kernels don't properly flush dcache to icache before giving a cleared page to userspace. With some exceedingly hairy code, this attempts to test for this bug.
This test will never trigger (obviously) on machines with coherent icache and dcache (including x86 and POWER5). On any given run, even on a buggy kernel there's a chance the bug won't trigger - either because we don't get the same physical page back when we remap, or because the icache happens to get flushed in the interim.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugemmap/Makefile | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap15.c | 243 ++++++++++++++++++ 4 files changed, 246 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
runtest/hugetlb +1 -0
@@ -16,6 +16,7 @@ hugemmap11 hugemmap11 hugemmap12 hugemmap12 hugemmap13 hugemmap13 hugemmap14 hugemmap14 +hugemmap15 hugemmap15 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -15,6 +15,7 @@ /hugetlb/hugemmap/hugemmap12 /hugetlb/hugemmap/hugemmap13 /hugetlb/hugemmap/hugemmap14 +/hugetlb/hugemmap/hugemmap15 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/Makefile +1 -0
@@ -8,4 +8,5 @@ include $(top_srcdir)/include/mk/testcases.mk include $(abs_srcdir)/../Makefile.inc include $(top_srcdir)/include/mk/generic_leaf_target.mk +hugemmap15: CFLAGS+=-O0 hugemmap06: CFLAGS+=-pthread
testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c new file +243 -0
243 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 4/8] Hugetlb: Migrating libhugetlbfs icache-hygiene
Hi Tarun, all,
Quoted 13 lines
Migrating the
libhugetlbfs/testcases/icache-hygiene.ctestTest Description: Older ppc64 kernels don't properly flush dcache to icache before giving a cleared page to userspace. With some exceedingly hairy code, this attempts to test for this bug.
This test will never trigger (obviously) on machines with coherent icache and dcache (including x86 and POWER5). On any given run, even on a buggy kernel there's a chance the bug won't trigger - either because we don't get the same physical page back when we remap, or because the icache happens to get flushed in the interim.
Signed-off-by Tarun Sahu <[email protected]>
...
Quoted 1 line
+++
b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
...
testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c line 88
Quoted 5 lines
testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c new file +5
-0+static void sig_handler (int signum,siginfo_t *si,void *uc) +{ +#if defined(__powerpc__) || defined(__powerpc64__) || defined(__ia64__) || \ + defined(__s390__) || defined(__s390x__) || defined(__sparc__) || \ + defined(__aarch64__) || (defined(__riscv) && __riscv_xlen ==64 )
NOTE: do we consider riscv32 and mipsel32 as dead?
Quoted 48 lines
testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c new file +48
-0+ /* On powerpc, ia64, s390 and Aarch64, 0 bytes are an illegal + * instruction, so, if the icache is cleared properly, we SIGILL + * as soon as we jump into the cleared page + */ + if (signum == SIGILL) { + tst_res(TINFO, "SIGILL at %p (sig_expected=%p)", si->si_addr, + sig_expected); + if (si->si_addr == sig_expected) + siglongjmp(sig_escape, SUCC_JMP); + siglongjmp(sig_escape, FAIL_JMP + SIGILL); + } +#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) + /* On x86, zero bytes form a valid instruction: + * add %al,(%eax) (i386) + * or add %al,(%rax) (x86_64) + * + * So, behaviour depends on the contents of [ER]AX, which in + * turn depends on the details of code generation. If [ER]AX + * contains a valid pointer, we will execute the instruction + * repeatedly until we run off that hugepage and get a SIGBUS + * on the second, truncated page. If [ER]AX does not contain + * a valid pointer, we will SEGV on the first instruction in + * the cleared page. We check for both possibilities + * below. + * + * On 32 bit ARM, zero bytes are interpreted as follows: + * andeq r0, r0, r0 (ARM state, 4 bytes) + * movs r0, r0 (Thumb state, 2 bytes) + * + * So, we only expect to run off the end of the huge page and + * generate a SIGBUS. + */ + if (signum == SIGBUS) { + tst_res(TINFO, "SIGBUS at %p (sig_expected=%p)", si->si_addr, + sig_expected); + if (sig_expected + && (PALIGN(sig_expected, hpage_size) + == si->si_addr)) { + siglongjmp(sig_escape, SUCC_JMP); + } + siglongjmp(sig_escape, FAIL_JMP + SIGBUS); + } +#if defined(__x86_64__) || defined(__i386__) + if (signum == SIGSEGV) { +#ifdef __x86_64__ + void *pc = (void *)((ucontext_t *)uc)->uc_mcontext.gregs[REG_RIP]; +#else + void *pc = (void *)((ucontext_t *)uc)->uc_mcontext.gregs[REG_EIP];
testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c line 146
Quoted 10 lines
testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c new file +10
-0+#endif +tst_res (TINFO ,"SIGSEGV at %p, PC=%p (sig_expected=%p)" , + si->si_addr, pc, sig_expected); +if (sig_expected == pc) +siglongjmp (sig_escape,SUCC_JMP ); + siglongjmp(sig_escape, FAIL_JMP + SIGSEGV); + } +#endif +#else +#error "Need to setup signal conditions for this arch"
Because this, merged as 15625f6185 ("Hugetlb: Migrating libhugetlbfs icache-hygiene") broke upcoming LTP release for these archs in Buildroot toolchains. mipsel32 is quite old, but maybe some other distros still play with riscv32.
IMHO instead of this there should have been using TST_TEST_TCONF() for unsupported archs, I'll send patch tomorrow.
Kind regards,
Petr
Quoted 2 lines
(quoted diff) +2
-0+#endif +}
...
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 5/8 Hugetlb: Migrating libhugetlbfs madvise_reserve
In reply to Tarun SahuMigrating the libhugetlbfs/testcases/madvise_reserve.c test
Test Description: madvise() on some kernels can cause the reservation counter to get corrupted. The problem is that the patches are allocated for the reservation but not faulted in at the time of allocation. The counters do not get updated and effectively "leak". This test identifies whether the kernel is vulnerable to the problem or not. It is fixed in kernel by 'commit f2deae9d4e70
("Remove implementation of readpage from the hugetlbfs_aops")'.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap16.c | 83 +++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap16.c
runtest/hugetlb +1 -0
@@ -17,6 +17,7 @@ hugemmap12 hugemmap12 hugemmap13 hugemmap13 hugemmap14 hugemmap14 hugemmap15 hugemmap15 +hugemmap16 hugemmap16 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -16,6 +16,7 @@ /hugetlb/hugemmap/hugemmap13 /hugetlb/hugemmap/hugemmap14 /hugetlb/hugemmap/hugemmap15 +/hugetlb/hugemmap/hugemmap16 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/hugemmap16.c new file +83 -0
83 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 6/8 Hugetlb: Migrating libhugetlbfs map_high_truncate_2
In reply to Tarun SahuMigrating the libhugetlbfs/testcases/map_high_truncate_2.c test
Test Description: At one stage, a misconversion of hugetlb_vmtruncate_list to a prio_tree meant that on 32-bit machines, certain combinations of mapping and truncations could truncate incorrect pages, or overwrite pmds from other VMAs, triggering BUG_ON()s or other wierdness.
Test adapted from an example by Kenneth Chen <[email protected]>
WARNING: The offsets and addresses used within are specifically calculated to trigger the bug as it existed. Don't mess with them unless you *really* know what you're doing.
The kernel bug in question was fixed with
'commit 856fc2950555 ("[PATCH] hugetlb: fix prio_tree unit")'.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap17.c | 103 ++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap17.c
runtest/hugetlb +1 -0
@@ -18,6 +18,7 @@ hugemmap13 hugemmap13 hugemmap14 hugemmap14 hugemmap15 hugemmap15 hugemmap16 hugemmap16 +hugemmap17 hugemmap17 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -17,6 +17,7 @@ /hugetlb/hugemmap/hugemmap14 /hugetlb/hugemmap/hugemmap15 /hugetlb/hugemmap/hugemmap16 +/hugetlb/hugemmap/hugemmap17 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/hugemmap17.c new file +103 -0
103 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 7/8 Hugetlb: Migrating libhugetlbfs misalign
In reply to Tarun SahuMigrating the libhugetlbfs/testcases/misalign.c test
Test Description: Just as normal mmap()s can't have an address, length or offset which is not page aligned, so hugepage mmap()s can't have an address, length or offset with is not hugepage aligned.
However, from time to time when the various mmap() / get_unmapped_area() paths are updated, somebody misses one of the necessary checks for the hugepage paths. This testcase ensures that attempted hugepage mappings with parameters which are not correctly hugepage aligned are rejected.
However starting with 3.10-rc1, length passed in mmap() doesn't need to be aligned because 'commit af73e4d9506d
("hugetlbfs: fix mmap failure in unaligned size request")' added ALIGN() to kernel side, in mmap_pgoff(), when mapping huge page files.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap18.c | 153 ++++++++++++++++++ 3 files changed, 155 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap18.c
runtest/hugetlb +1 -0
@@ -19,6 +19,7 @@ hugemmap14 hugemmap14 hugemmap15 hugemmap15 hugemmap16 hugemmap16 hugemmap17 hugemmap17 +hugemmap18 hugemmap18 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -18,6 +18,7 @@ /hugetlb/hugemmap/hugemmap15 /hugetlb/hugemmap/hugemmap16 /hugetlb/hugemmap/hugemmap17 +/hugetlb/hugemmap/hugemmap18 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/hugemmap18.c new file +153 -0
153 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 8/8 Hugetlb: Migrating libhugetlbfs misaligned_offset
In reply to Tarun SahuMigrating the libhugetlbfs/testcases/misaligned_offset.c test
Test Name: Misaligned offset
Test Description: At one stage, a misconversion of hugetlb_vmtruncate_list to a prio_tree meant that on 32-bit machines, truncates at or above 4GB could truncate lower pages, resulting in BUG_ON()s.
WARNING: The offsets and addresses used within are specifically calculated to trigger the bug as it existed. Don't mess with them unless you *really* know what you're doing.
The kernel bug in question was fixed with
'commit 856fc2950555 ("[PATCH] hugetlb: fix prio_tree unit")'.
--- runtest/hugetlb | 1 + testcases/kernel/mem/.gitignore | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap19.c | 147 ++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap19.c
runtest/hugetlb +1 -0
@@ -20,6 +20,7 @@ hugemmap15 hugemmap15 hugemmap16 hugemmap16 hugemmap17 hugemmap17 hugemmap18 hugemmap18 +hugemmap19 hugemmap19 hugemmap05_1 hugemmap05 -m hugemmap05_2 hugemmap05 -s hugemmap05_3 hugemmap05 -s -m
testcases/kernel/mem/.gitignore +1 -0
@@ -19,6 +19,7 @@ /hugetlb/hugemmap/hugemmap16 /hugetlb/hugemmap/hugemmap17 /hugetlb/hugemmap/hugemmap18 +/hugetlb/hugemmap/hugemmap19 /hugetlb/hugeshmat/hugeshmat01 /hugetlb/hugeshmat/hugeshmat02 /hugetlb/hugeshmat/hugeshmat03
testcases/kernel/mem/hugetlb/hugemmap/hugemmap19.c new file +147 -0
147 lines not on this page · raw message
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Richard Palethorpe
AppliedHello,
Merged, Thanks!
Quoted 52 lines · Tarun Sahu
V2:
1. Added linux bug fix commit tag in testcases.
2. Asthetics changes in [PATCH 1/8].
Hi,
This patch series is in continuation to part [1] and part [2] This series include 8 more tests taken from libhugetlbfs.Background:
Libhugetlbfs is not being maintained actively, and some distro is dropping support for it. There are some tests that are good for testing hugetlb functionality in kernel. These patches include tests from libhugetlbfs.ref:
1. https://lore.kernel.org/all/[email protected]/
2. https://lore.kernel.org/all/[email protected]/
3. https://lore.kernel.org/all/[email protected]/Tarun Sahu (8):
Hugetlb: Migrating libhugetlbfs fork-cow
Hugetlb: Migrating libhugetlbfshuge_at_4GB_normal_below
Hugetlb: Migrating libhugetlbfshuge_below_4GB_normal_above
Hugetlb: Migrating libhugetlbfs icache-hygiene
Hugetlb: Migrating libhugetlbfsmadvise_reserve
Hugetlb: Migrating libhugetlbfsmap_high_truncate_2
Hugetlb: Migrating libhugetlbfs misalign
Hugetlb: Migrating libhugetlbfsmisaligned_offsetruntest/hugetlb | 9 + testcases/kernel/mem/.gitignore | 8 + .../kernel/mem/hugetlb/hugefork/Makefile | 10 + .../kernel/mem/hugetlb/hugefork/hugefork01.c | 92 +++++++ .../kernel/mem/hugetlb/hugemmap/Makefile | 1 + .../kernel/mem/hugetlb/hugemmap/hugemmap13.c | 126 +++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap14.c | 159 ++++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap15.c | 243 ++++++++++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap16.c | 83 ++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap17.c | 103 ++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap18.c | 153 +++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap19.c | 147 +++++++++++ 12 files changed, 1134 insertions(+) create mode 100644 testcases/kernel/mem/hugetlb/hugefork/Makefile create mode 100644 testcases/kernel/mem/hugetlb/hugefork/hugefork01.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap13.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap14.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap16.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap17.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap18.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap19.cSignature · 1 line
2.31.1
Signature · 5 lines
Thank you, Richard. -- Mailing list info: https://lists.linux.it/listinfo/ltp