[PATCH 6.1 505/508] arm64/ptrace: Fix stack-out-of-bounds read in regs_get_kernel_stack_nth()