OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8606544
)
RISC-V: Fix PTRACE_SETREGSET bug.
author
Jim Wilson
<jimw@sifive.com>
Mon, 11 Jun 2018 21:48:22 +0000
(14:48 -0700)
committer
Palmer Dabbelt
<palmer@sifive.com>
Wed, 4 Jul 2018 21:12:47 +0000
(14:12 -0700)
In riscv_gpr_set, pass regs instead of ®s to user_regset_copyin to fix
gdb segfault.
Signed-off-by: Jim Wilson <jimw@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/ptrace.c
patch
|
blob
|
history
diff --git
a/arch/riscv/kernel/ptrace.c
b/arch/riscv/kernel/ptrace.c
index
ba3e807
..
9f82a7e
100644
(file)
--- a/
arch/riscv/kernel/ptrace.c
+++ b/
arch/riscv/kernel/ptrace.c
@@
-50,7
+50,7
@@
static int riscv_gpr_set(struct task_struct *target,
struct pt_regs *regs;
regs = task_pt_regs(target);
- ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
&
regs, 0, -1);
+ ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1);
return ret;
}