aboutsummaryrefslogtreecommitdiff
path: root/tests/run_tests.py
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2009-12-07 14:58:40 +1100
committerEric B Munson <ebmunson@us.ibm.com>2009-12-09 11:03:18 +0000
commit495a57a6dcf82d9a64643068197f2157a0c739f5 (patch)
tree0820a2662a0267fb7665dc4d32ad4b0e750074be /tests/run_tests.py
parent70cadbe3e3f8e8f9035675909e01838115e40a0a (diff)
downloadlibhugetlbfs-495a57a6dcf82d9a64643068197f2157a0c739f5.tar.gz
Add testcases for buggy mremap() behaviours
Al Viro recently discovered several bugs in the behaviour of mremap() that can cause crashes on architectures with holes in the address space (like ia64) and on powerpc with it's distinct page size "slices". This patch adds three new testcases to tickle some of these bugs (aimed chiefly at the powerpc manifestation, it may or may not also trip on other archs). Since these testcases will crash current kernels, we probably don't want to merge this until we can protect them with a kernel version test, like other dangerous testcases. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'tests/run_tests.py')
-rwxr-xr-xtests/run_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index e53b71c..ff7257a 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -504,6 +504,9 @@ def functional_tests():
do_test("misalign")
# Specific kernel bug tests
+ do_test("mremap-expand-slice-collision")
+ do_test("mremap-fixed-huge-near-normal")
+ do_test("mremap-fixed-normal-near-huge")
do_test("ptrace-write-hugepage")
do_test("icache-hygiene")
do_test("slbpacaflush")
@@ -516,6 +519,7 @@ def functional_tests():
do_test("brk_near_huge")
do_test("task-size-overrun")
do_test_with_rlimit(resource.RLIMIT_STACK, -1, "stack_grow_into_huge")
+
if dangerous == 1:
do_test("readahead_reserve")
do_test("madvise_reserve")