projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e9b91
)
um: fix _FORTIFY_SOURCE=2 support for kernel modules
author
Richard Weinberger
<
[email protected]
>
Tue, 26 Jul 2011 00:12:47 +0000
(17:12 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Jul 2011 03:57:12 +0000
(20:57 -0700)
When UML is compiled with _FORTIFY_SOURCE we have to export all _chk()
functions which are used in modules. For now it's only the case for
__sprintf_chk().
Tested-by: Florian Fainelli <
[email protected]
>
Reported-by: Florian Fainelli <
[email protected]
>
Signed-off-by: Richard Weinberger <
[email protected]
>
Acked-by: Vitaliy Ivanov <
[email protected]
>
Cc: Geert Uytterhoeven <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/um/os-Linux/user_syms.c
patch
|
blob
|
history
diff --git
a/arch/um/os-Linux/user_syms.c
b/arch/um/os-Linux/user_syms.c
index 05f5ea8e83d2ab211e4dfc27b6be2a458da59e74..45ffe46871e0528e388ff58aa264694647c06235 100644
(file)
--- a/
arch/um/os-Linux/user_syms.c
+++ b/
arch/um/os-Linux/user_syms.c
@@
-113,3
+113,8
@@
EXPORT_SYMBOL(__stack_smash_handler);
extern long __guard __attribute__((weak));
EXPORT_SYMBOL(__guard);
+
+#ifdef _FORTIFY_SOURCE
+extern int __sprintf_chk(char *str, int flag, size_t strlen, const char *format);
+EXPORT_SYMBOL(__sprintf_chk);
+#endif