Skip to content

Commit b44f384

Browse files
author
Al Viro
committed
arm64: get rid of copy_regset_to_user() in compat_ptrace_read_user()
Signed-off-by: Al Viro <[email protected]>
1 parent a96dacf commit b44f384

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/arm64/kernel/ptrace.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,9 +1541,7 @@ static int compat_ptrace_read_user(struct task_struct *tsk, compat_ulong_t off,
15411541
else if (off == COMPAT_PT_TEXT_END_ADDR)
15421542
tmp = tsk->mm->end_code;
15431543
else if (off < sizeof(compat_elf_gregset_t))
1544-
return copy_regset_to_user(tsk, &user_aarch32_view,
1545-
REGSET_COMPAT_GPR, off,
1546-
sizeof(compat_ulong_t), ret);
1544+
tmp = compat_get_user_reg(tsk, off >> 2);
15471545
else if (off >= COMPAT_USER_SZ)
15481546
return -EIO;
15491547
else

0 commit comments

Comments
 (0)