selftests/powerpc: Add a test of wild bctr
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 05:53:22 +0000 (15:53 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Oct 2018 02:26:47 +0000 (13:26 +1100)
commitb7683fc66eba91674e52c30f4d8e596bfb5cbcf4
treee724c8201aa93f0d70b86ed37ee47597afefb882
parent0d923962ab69c27cca664a2d535e90ef655110ca
selftests/powerpc: Add a test of wild bctr

This tests that a bctr (Branch to counter and link), ie. a function
call, to a wildly out-of-bounds address is handled correctly.

Some old kernel versions didn't handle it correctly, see eg:

  "powerpc/slb: Force a full SLB flush when we insert for a bad EA"
  https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-April/157397.html

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/include/reg.h
tools/testing/selftests/powerpc/mm/.gitignore
tools/testing/selftests/powerpc/mm/Makefile
tools/testing/selftests/powerpc/mm/wild_bctr.c [new file with mode: 0644]