Skip to content
Snippets Groups Projects
Commit 3e4202a6 authored by 童甜根's avatar 童甜根 Committed by Yongqiang Liu
Browse files

arm64: Avoid premature usercopy failure for __arch_copy_to_user_generic_read

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5MJU8


CVE: NA

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

Commit 1b1b4ded ("arm64: Avoid premature usercopy failure") fixes an
usercopy failure issues, it introduced a variable srcin and used it in
fixup routine, but the variable is not initialized in
__arch_copy_to_user_generic_read(), this will cause an illegal pointer
issue in fixup.

Fixes: 1b1b4ded ("arm64: Avoid premature usercopy failure")
Signed-off-by: default avatarTong Tiangen <tongtiangen@huawei.com>
Tested-by: default avataryongqiang Liu <liuyongqiang13@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent a3ef422a
Branches
Tags
No related merge requests found
...@@ -77,6 +77,7 @@ ENDPROC(__arch_copy_to_user) ...@@ -77,6 +77,7 @@ ENDPROC(__arch_copy_to_user)
ENTRY(__arch_copy_to_user_generic_read) ENTRY(__arch_copy_to_user_generic_read)
uaccess_enable_not_uao x3, x4, x5 uaccess_enable_not_uao x3, x4, x5
add end, x0, x2 add end, x0, x2
mov srcin, x1
#include "copy_template_generic_read.S" #include "copy_template_generic_read.S"
uaccess_disable_not_uao x3, x4 uaccess_disable_not_uao x3, x4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment