[PATCH 5.18 334/339] powerpc/32: Fix overread/overwrite of thread_struct via ptrace