[PATCH 5.17 289/298] powerpc/32: Fix overread/overwrite of thread_struct via ptrace