[PATCH v2] selftests/powerpc: Add a test of bad (out-of-range) accesses

Michael Ellerman patch-notifications at ellerman.id.au
Tue Jan 7 10:33:15 AEDT 2020


On Mon, 2019-05-20 at 10:20:51 UTC, Michael Ellerman wrote:
> 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 at ellerman.id.au>
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>

Applied to powerpc next.

https://git.kernel.org/powerpc/c/5eb7cfb3a2b178f3d443301cda0825bb9f475657

cheers


More information about the Linuxppc-dev mailing list