summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2019-06-25 07:36:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-03 13:15:57 +0200
commita8a53c768424dc225da5dd9d9b01615fa91a25af (patch)
tree378a252201fc09429ee17b6c2e533d63d8c3624a /kernel
parent2a2e3b98fc00d4a1b0231173cf33b553e848895f (diff)
downloadlinux-stable-a8a53c768424dc225da5dd9d9b01615fa91a25af.tar.gz
linux-stable-a8a53c768424dc225da5dd9d9b01615fa91a25af.tar.bz2
linux-stable-a8a53c768424dc225da5dd9d9b01615fa91a25af.zip
Revert "x86/uaccess, ftrace: Fix ftrace_likely_update() vs. SMAP"
This reverts commit 8190d6fbb1e9b7fa4eb41fe7aa337c46ca514e79, which was upstream commit 4a6c91fbdef846ec7250b82f2eeeb87ac5f18cf9. On Tue, Jun 25, 2019 at 09:39:45AM +0200, Sebastian Andrzej Siewior wrote: >Please backport commit e74deb11931ff682b59d5b9d387f7115f689698e to >stable _or_ revert the backport of commit 4a6c91fbdef84 ("x86/uaccess, >ftrace: Fix ftrace_likely_update() vs. SMAP"). It uses >user_access_{save|restore}() which has been introduced in the following >commit. Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_branch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index 3ea65cdff30d..4ad967453b6f 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -205,8 +205,6 @@ void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect)
void ftrace_likely_update(struct ftrace_likely_data *f, int val,
int expect, int is_constant)
{
- unsigned long flags = user_access_save();
-
/* A constant is always correct */
if (is_constant) {
f->constant++;
@@ -225,8 +223,6 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
f->data.correct++;
else
f->data.incorrect++;
-
- user_access_restore(flags);
}
EXPORT_SYMBOL(ftrace_likely_update);