[Linux-stable-mirror] [PATCH 4.14 010/118] MIPS: Consistently handle buffer counter with PTRACE_SETREGSET