diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-23 13:51:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-23 13:51:59 -0800 |
commit | a4685d2f58e2230d4e27fb2ee581d7ea35e5d046 (patch) | |
tree | c2873b20dc923fec4643addcb695aa9400f50430 /arch | |
parent | 6302118226830c8f0aa0ec6afc8ef0cad84faa5f (diff) | |
parent | fd7c99142d77dc4a851879a66715abf12a3193fb (diff) |
Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
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
Diffstat (limited to 'arch')
-rw-r--r-- | arch/tile/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/kernel/ptrace.c b/arch/tile/kernel/ptrace.c index d89b7011667c..e279572824b1 100644 --- a/arch/tile/kernel/ptrace.c +++ b/arch/tile/kernel/ptrace.c @@ -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, ®s, 0, sizeof(regs)); |