提交 4d18b148 编写于 作者: Z Zhen Lei 提交者: Zheng Zengkai

Revert "arm64: fix USER_DS definition problem in non-compat mode"

hulk inclusion
category: performance
bugzilla: https://e.gitee.com/open_euler/issues/list?issue=I4SCW7
CVE: NA

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

This reverts commit 97cb3288.

The macro 'USER_DS' and related assembly code is deleted by
commit 3d2403fd ("arm64: uaccess: remove set_fs()", so the
problem fixed by this patch is disappeared accordingly.
Signed-off-by: NZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: NJiahao Chen <chenjiahao16@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 8f9519dc
......@@ -9,12 +9,8 @@
#define __ASM_PROCESSOR_H
#define KERNEL_DS UL(-1)
#ifdef CONFIG_COMPAT
#define USER_DS (is_compat_task() ? \
(UL(0x100000000) - 1) : (TASK_SIZE - 1))
#else
#define USER_DS (TASK_SIZE - 1)
#endif
/*
* On arm64 systems, unaligned accesses by the CPU are cheap, and so there is
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册