Skip to content

Commit 480f439

Browse files
committed
kallsyms: Revert back to 128 max symbol length
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>
1 parent ab7474e commit 480f439

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎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 255
12+
#define KSYM_NAME_LEN 128
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

‎scripts/kallsyms.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
2828
#endif
2929

30-
#define KSYM_NAME_LEN 255
30+
#define KSYM_NAME_LEN 128
3131

3232
struct sym_entry {
3333
unsigned long long addr;

0 commit comments

Comments
 (0)