projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f000262
)
x86/vdso: Add __user annotation to VDSO32_SYMBOL
author
Mathias Krause
<minipli@googlemail.com>
Sun, 2 Sep 2012 21:31:41 +0000
(23:31 +0200)
committer
Ingo Molnar
<mingo@kernel.org>
Wed, 5 Sep 2012 08:52:23 +0000
(10:52 +0200)
The address calculated by VDSO32_SYMBOL() is a pointer into
userland. Add the __user annotation to fix related sparse
warnings in its users.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Andy Lutomirski <luto@MIT.EDU>
Link:
http://lkml.kernel.org/r/1346621506-30857-3-git-send-email-minipli@googlemail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/vdso.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/include/asm/vdso.h
b/arch/x86/include/asm/vdso.h
index bb0522850b74c2ae780b6c81981efde9f76f2aa3..fddb53d63915b56129371eb39fc1123dec34ff70 100644
(file)
--- a/
arch/x86/include/asm/vdso.h
+++ b/
arch/x86/include/asm/vdso.h
@@
-11,7
+11,8
@@
extern const char VDSO32_PRELINK[];
#define VDSO32_SYMBOL(base, name) \
({ \
extern const char VDSO32_##name[]; \
- (void *)(VDSO32_##name - VDSO32_PRELINK + (unsigned long)(base)); \
+ (void __user *)(VDSO32_##name - VDSO32_PRELINK + \
+ (unsigned long)(base)); \
})
#endif