mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + um-fix-_fortify_source=2-support-for-kernel-modules.patch added to -mm tree
@ 2011-06-28 22:56 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2011-06-28 22:56 UTC (permalink / raw)
  To: mm-commits; +Cc: richard, florian


The patch titled
     um: fix _FORTIFY_SOURCE=2 support for kernel modules
has been added to the -mm tree.  Its filename is
     um-fix-_fortify_source=2-support-for-kernel-modules.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: um: fix _FORTIFY_SOURCE=2 support for kernel modules
From: Richard Weinberger <richard@nod.at>

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/um/os-Linux/user_syms.c |    5 +++++
 1 file changed, 5 insertions(+)

diff -puN arch/um/os-Linux/user_syms.c~um-fix-_fortify_source=2-support-for-kernel-modules arch/um/os-Linux/user_syms.c
--- a/arch/um/os-Linux/user_syms.c~um-fix-_fortify_source=2-support-for-kernel-modules
+++ a/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
_

Patches currently in -mm which might be from richard@nod.at are

linux-next.patch
um-clean-up-vm-flagsh.patch
um-exec-remove-redundant-set_fsuser_ds.patch
um-clean-up-delay-functions-v2.patch
um-fix-_fortify_source=2-support-for-kernel-modules.patch
um-add-netpoll-support.patch
um-reinstate-kernel-version-in-generated-config.patch
fs-execc-use-build_bug_on-for-vm_stack_flags-vm_stack_incomplete_setup.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-28 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-28 22:56 + um-fix-_fortify_source=2-support-for-kernel-modules.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).