linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 1/4] um: Fix _FORTIFY_SOURCE=2 support for kernel modules
@ 2011-06-27 22:15 Richard Weinberger
  2011-06-27 22:15 ` [uml-devel] [PATCH 2/4] um: Add netpoll support Richard Weinberger
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Richard Weinberger @ 2011-06-27 22:15 UTC (permalink / raw)
  To: akpm; +Cc: Richard Weinberger, linux-kernel, user-mode-linux-devel

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 <florian@openwrt.org>
Reported-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 arch/um/os-Linux/user_syms.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/um/os-Linux/user_syms.c b/arch/um/os-Linux/user_syms.c
index 05f5ea8..45ffe46 100644
--- 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
-- 
1.7.5.4


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-06-29 16:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27 22:15 [uml-devel] [PATCH 1/4] um: Fix _FORTIFY_SOURCE=2 support for kernel modules Richard Weinberger
2011-06-27 22:15 ` [uml-devel] [PATCH 2/4] um: Add netpoll support Richard Weinberger
2011-06-27 22:15 ` [uml-devel] [PATCH 3/4] um, exec: remove redundant set_fs(USER_DS) Richard Weinberger
2011-06-27 22:15 ` [PATCH 4/4] um: Reinstate kernel version in generated .config Richard Weinberger
2011-06-29 15:37 ` [PATCH 1/4] um: Fix _FORTIFY_SOURCE=2 support for kernel modules Vitaliy Ivanov
2011-06-29 15:42   ` Richard Weinberger
2011-06-29 16:33     ` Vitaliy Ivanov
2011-06-29 16:42     ` Geert Uytterhoeven
2011-06-29 16:57       ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox