Skip to content

Commit eea0e9c

Browse files
joemariomichal42
authored andcommitted
kbuild: Increase kallsyms max symbol length
[AK: This seems like a ticking time bomb even without LTO, so should be merged now. It causes very weird problems. Thanks to Joe for tracking them down.] With the added postfixes that LTO adds for local symbols, the longest name in the kernel overflows the namebuf[KSYM_NAME_LEN] array by two bytes. That name is: __pci_fixup_resumePCI_VENDOR_ID_SERVERWORKSPCI_DEVICE_ID_SERVERWORKS_HT1000SBquirk_disable_broadcom_boot_interrupt.1488004.672802 Double the max symbol name length. v2: Use 255 (Joe Perches) Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 8097047 commit eea0e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/kallsyms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <linux/kernel.h>
1010
#include <linux/stddef.h>
1111

12-
#define KSYM_NAME_LEN 128
12+
#define KSYM_NAME_LEN 255
1313
#define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + (KSYM_NAME_LEN - 1) + \
1414
2*(BITS_PER_LONG*3/10) + (MODULE_NAME_LEN - 1) + 1)
1515

0 commit comments

Comments
 (0)