From bfe41af303c53b0262e8d04cdf44bc4b35a36621 Mon Sep 17 00:00:00 2001
From: Christian Hesse <mail@eworm.de>
Date: Fri, 22 May 2015 13:59:19 +0200
Subject: [PATCH 1/1] x86_64, smap: call stac() before touching user memory
In copy_user_handle_tail() we call clac() after access, but there is no
stac() before.
Signed-off-by: Christian Hesse <mail@eworm.de>
---
arch/x86/lib/usercopy_64.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
index 0a42327..098dfd9 100644
|
a
|
b
|
EXPORT_SYMBOL(copy_in_user);
|
| 71 | 71 | __visible unsigned long |
| 72 | 72 | copy_user_handle_tail(char *to, char *from, unsigned len) |
| 73 | 73 | { |
| | 74 | stac(); |
| 74 | 75 | for (; len; --len, to++) { |
| 75 | 76 | char c; |
| 76 | 77 | |