Re: [PATCH] unicore32: use get_kernel_nofault in dump mem and dump_instr

2020-07-20 Thread christoph hellwig
On Tue, Jul 21, 2020 at 10:09:20AM +0800, Guan Xuetao wrote: > Very good to remove ds/fs in unicore arch. > Could u send me full patch for test? This is the full patch for now. The actual removal will need more core instrastructure and at least one more merge window.

Re: [PATCH] unicore32: use get_kernel_nofault in dump mem and dump_instr

2020-07-20 Thread Guan Xuetao
Very good to remove ds/fs in unicore arch. Could u send me full patch for test? Guan Xuetao > -原始邮件- > 发件人: "Christoph Hellwig" > 发送时间: 2020-07-20 19:43:58 (星期一) > 收件人: g...@pku.edu.cn > 抄送: linux-kernel@vger.kernel.org > 主题: [PATCH] unicore32: use ge

[PATCH] unicore32: use get_kernel_nofault in dump mem and dump_instr

2020-07-20 Thread Christoph Hellwig
Use the proper get_kernel_nofault helper to access an unsafe kernel pointer without faulting instead of playing with set_fs and get_user. Signed-off-by: Christoph Hellwig --- arch/unicore32/kernel/traps.c | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff