提交 cf2ec789 编写于 作者: S Sven Schnelle 提交者: Helge Deller

parisc/unwind: use copy_from_kernel_nofault()

I have no idea why get_user() is used there, but we're unwinding the
kernel stack, so we should use copy_from_kernel_nofault().
Signed-off-by: NSven Schnelle <svens@stackframe.org>
Signed-off-by: NHelge Deller <deller@gmx.de>
上级 3a4347d8
......@@ -302,7 +302,8 @@ static void unwind_frame_regs(struct unwind_frame_info *info)
break;
}
if (get_user(tmp, (unsigned long *)(info->prev_sp - RP_OFFSET)))
if (copy_from_kernel_nofault(&tmp,
(void *)info->prev_sp - RP_OFFSET, sizeof(tmp)))
break;
info->prev_ip = tmp;
sp = info->prev_sp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册