Commit ce645515 authored by Zhou Xuemei's avatar Zhou Xuemei Committed by guzitao
Browse files

sw64: fix floating point register corruption

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5GFS3



--------------------------------

When csum_partial_copy_from_user is called in an interrupt,
__copy_from_user will modify floating point register f10-f15
without restore register value. This will cause the value of
the userspace register to be corrupted. Use memcpy() instead
when called from kernel space.

Signed-off-by: default avatarZhou Xuemei <zhouxuemei@wxiat.com>

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 0d22be5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment