linux-stable/tools/testing/selftests/powerpc/mm
Michael Ellerman 5eb7cfb3a2 selftests/powerpc: Add a test of bad (out-of-range) accesses
Userspace isn't allowed to access certain address ranges, make sure we
actually test that to at least some degree.

This would have caught the recent bug where the SLB fault handler was
incorrectly called on an out-of-range access when using the Radix MMU.
It also would have caught the bug we had in get_region_id() where we
were inserting SLB entries for bad addresses.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190520102051.12103-1-mpe@ellerman.id.au
2020-01-06 16:25:27 +11:00
..
.gitignore selftests/powerpc: Add a test of bad (out-of-range) accesses 2020-01-06 16:25:27 +11:00
bad_accesses.c selftests/powerpc: Add a test of bad (out-of-range) accesses 2020-01-06 16:25:27 +11:00
hugetlb_vs_thp_test.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
large_vm_fork_separation.c selftests/powerpc: Add test of fork with mapping above 512TB 2019-06-13 12:09:48 +10:00
Makefile selftests/powerpc: Add a test of bad (out-of-range) accesses 2020-01-06 16:25:27 +11:00
prot_sao.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
segv_errors.c selftests/powerpc: Add a test of SEGV error behaviour 2018-01-03 16:49:24 +11:00
subpage_prot.c selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable 2018-03-02 11:37:04 +11:00
tlbie_test.c selftests/powerpc: Fix compile error on tlbie_test due to newer gcc 2019-10-09 17:16:59 +11:00
wild_bctr.c selftests/powerpc: Adjust wild_bctr to build with old binutils 2018-11-15 23:05:17 +11:00