diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2019-05-20 20:20:51 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-06 16:25:27 +1100 |
commit | 5eb7cfb3a2b178f3d443301cda0825bb9f475657 (patch) | |
tree | 6f77418decaa9b1d1993514f5e4288ef6f4e3391 /tools/testing/selftests/powerpc/mm/.gitignore | |
parent | powerpc/imc: Add documentation for IMC and trace-mode (diff) | |
download | linux-dev-5eb7cfb3a2b178f3d443301cda0825bb9f475657.tar.xz linux-dev-5eb7cfb3a2b178f3d443301cda0825bb9f475657.zip |
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
Diffstat (limited to 'tools/testing/selftests/powerpc/mm/.gitignore')
-rw-r--r-- | tools/testing/selftests/powerpc/mm/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/mm/.gitignore b/tools/testing/selftests/powerpc/mm/.gitignore index 7101ffd08d66..0ebeaea22641 100644 --- a/tools/testing/selftests/powerpc/mm/.gitignore +++ b/tools/testing/selftests/powerpc/mm/.gitignore @@ -5,3 +5,4 @@ prot_sao segv_errors wild_bctr large_vm_fork_separation +bad_accesses |