Commit 4d18b148 authored by Zhen Lei's avatar Zhen Lei Committed by Zheng Zengkai
Browse files

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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarJiahao Chen <chenjiahao16@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 8f9519dc
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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