提交 f956b3e4 编写于 作者: R Richard Weinberger 提交者: Linus Torvalds

um: fix _FORTIFY_SOURCE=2 support for kernel modules

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: NFlorian Fainelli <florian@openwrt.org>
Reported-by: NFlorian Fainelli <florian@openwrt.org>
Signed-off-by: NRichard Weinberger <richard@nod.at>
Acked-by: NVitaliy Ivanov <vitalivanov@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 22e9b917
...@@ -113,3 +113,8 @@ EXPORT_SYMBOL(__stack_smash_handler); ...@@ -113,3 +113,8 @@ EXPORT_SYMBOL(__stack_smash_handler);
extern long __guard __attribute__((weak)); extern long __guard __attribute__((weak));
EXPORT_SYMBOL(__guard); 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册