Skip to content

Commit 6d708d1

Browse files
jmberg-intelrichardweinberger
authored andcommitted
um: don't export printf()
Since printf() cannot be used in kernel threads (it uses too much stack space) don't export it for modules either. This should leave us exporting only things that are absolutely critical (such as memset and friends) and things that are injected by the compiler (stack guard and similar.) Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 8c61745 commit 6d708d1

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

arch/um/os-Linux/user_syms.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
extern size_t strlen(const char *);
1919
extern void *memmove(void *, const void *, size_t);
2020
extern void *memset(void *, int, size_t);
21-
extern int printf(const char *, ...);
2221

2322
/* If it's not defined, the export is included in lib/string.c.*/
2423
#ifdef __HAVE_ARCH_STRSTR
@@ -32,8 +31,6 @@ EXPORT_SYMBOL(memmove);
3231
EXPORT_SYMBOL(memset);
3332
#endif
3433

35-
EXPORT_SYMBOL(printf);
36-
3734
#ifdef CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA
3835
EXPORT_SYMBOL(vsyscall_ehdr);
3936
EXPORT_SYMBOL(vsyscall_end);

0 commit comments

Comments
 (0)