[PATCH 6.12 406/414] arm64/ptrace: Fix stack-out-of-bounds read in regs_get_kernel_stack_nth()