kallsyms: Revert back to 128 max symbol length
authorMichal Marek <mmarek@suse.cz>
Mon, 11 Nov 2013 13:23:08 +0000 (14:23 +0100)
committerMichal Marek <mmarek@suse.cz>
Wed, 13 Nov 2013 14:58:19 +0000 (15:58 +0100)
This reverts commits
f3462aa (Kbuild: Handle longer symbols in kallsyms.c) and
eea0e9c (kbuild: Increase kallsyms max symbol length)
except for the added overflow check. The reason is a regression caused
by increasing the buffer:
http://marc.info/?l=linux-kernel&m=138387700415675.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Joe Mario <jmario@redhat.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
include/linux/kallsyms.h
scripts/kallsyms.c

index 56488708da4bf9da82b286c319205e432b924842..6883e197acb9e939156c4934d9cc7150b1b107f5 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/stddef.h>
 
-#define KSYM_NAME_LEN 255
+#define KSYM_NAME_LEN 128
 #define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + (KSYM_NAME_LEN - 1) + \
                         2*(BITS_PER_LONG*3/10) + (MODULE_NAME_LEN - 1) + 1)
 
index 48afa2020b00e1ce64c4a59e633799e3e569581c..518da86ce62a109c5e68c98c4ab85bb82e57673e 100644 (file)
@@ -27,7 +27,7 @@
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
 #endif
 
-#define KSYM_NAME_LEN          255
+#define KSYM_NAME_LEN          128
 
 struct sym_entry {
        unsigned long long addr;