Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4685d2f authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull tile bugfix from Chris Metcalf:
 "This avoids an issue with short userspace reads for regset via ptrace"

* 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
  tile/ptrace: Preserve previous registers for short regset write
parents 63021182 fd7c9914
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ static int tile_gpr_set(struct task_struct *target,
			  const void *kbuf, const void __user *ubuf)
{
	int ret;
	struct pt_regs regs;
	struct pt_regs regs = *task_pt_regs(target);

	ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &regs, 0,
				 sizeof(regs));