Commit 27a26ccf authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull arm64 fix from Catalin Marinas:

 - ptrace(PTRACE_SETREGSET) fix to zero the target's fpsimd_state rather
   than the tracer's

* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
  arm64/fpsimd: ptrace: zero target's fpsimd_state, not the tracer's
parents 678ede85 5cbb61bf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -983,8 +983,8 @@ static int sve_set_common(struct task_struct *target,
	}

	/* Always zero V regs, FPSR, and FPCR */
	memset(&current->thread.uw.fpsimd_state, 0,
	       sizeof(current->thread.uw.fpsimd_state));
	memset(&target->thread.uw.fpsimd_state, 0,
	       sizeof(target->thread.uw.fpsimd_state));

	/* Registers: FPSIMD-only case */