]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc/ptrace: Add peek/poke of FPRs
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Jun 2022 14:02:39 +0000 (00:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 25 Jul 2022 02:05:16 +0000 (12:05 +1000)
commite594c1768618ea0b99d1674328b13aa1d502a717
treee311845cb16be9907549aa0e42704e47331792f2
parent19f3eb9342803e442a4efb5c4a0f396f05e34e23
selftests/powerpc/ptrace: Add peek/poke of FPRs

Currently the ptrace-gpr test only tests the GET/SET(FP)REGS ptrace
APIs. But there's an alternate (older) API, called PEEK/POKEUSR.

Add some minimal testing of PEEK/POKEUSR of the FPRs. This is sufficient
to detect the bug that was fixed recently in the 32-bit ptrace FPR
handling.

Depends-on: a48d4a653477 ("powerpc/32: Fix overread/overwrite of thread_struct via ptrace")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220627140239.2464900-13-mpe@ellerman.id.au
tools/testing/selftests/powerpc/ptrace/ptrace-gpr.c
tools/testing/selftests/powerpc/ptrace/ptrace.h