summaryrefslogtreecommitdiff
path: root/arch/arm64/mm
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2016-02-18 15:50:04 +0000
committerAlex Shi <alex.shi@linaro.org>2016-05-11 22:19:24 +0800
commit9193df45aa67b769ee8af97609537a876a81baca (patch)
tree3891340819229c44c3d5576cfe7c3bac0aea95a4 /arch/arm64/mm
parentcdfec5aaf4a886521b7f54dfe2db61735558d546 (diff)
arm64: Remove the get_thread_info() function
This function was introduced by previous commits implementing UAO. However, it can be replaced with task_thread_info() in uao_thread_switch() or get_fs() in do_page_fault() (the latter being called only on the current context, so no need for using the saved pt_regs). Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> (cherry picked from commit e950631e84e7e38892ffbeee5e1816b270026b0e) Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r--arch/arm64/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c
index d0762a729d01..a8eafeceb08a 100644
--- a/arch/arm64/mm/fault.c
+++ b/arch/arm64/mm/fault.c
@@ -234,7 +234,7 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,
}
if (permission_fault(esr) && (addr < USER_DS)) {
- if (get_thread_info(regs->sp)->addr_limit == KERNEL_DS)
+ if (get_fs() == KERNEL_DS)
panic("Accessing user space memory with fs=KERNEL_DS");
if (!search_exception_tables(regs->pc))