android_kernel_xiaomi_sm8350/arch/parisc
Tejun Heo 9281acea6a kallsyms: make KSYM_NAME_LEN include space for trailing '\0'
KSYM_NAME_LEN is peculiar in that it does not include the space for the
trailing '\0', forcing all users to use KSYM_NAME_LEN + 1 when allocating
buffer.  This is nonsense and error-prone.  Moreover, when the caller
forgets that it's very likely to subtly bite back by corrupting the stack
because the last position of the buffer is always cleared to zero.

This patch increments KSYM_NAME_LEN by one and updates code accordingly.

* off-by-one bug in asm-powerpc/kprobes.h::kprobe_lookup_name() macro
  is fixed.

* Where MODULE_NAME_LEN and KSYM_NAME_LEN were used together,
  MODULE_NAME_LEN was treated as if it didn't include space for the
  trailing '\0'.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Paulo Marques <pmarques@grupopie.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:23:03 -07:00
..
configs libata/IDE: remove combined mode quirk 2007-04-28 14:15:59 -04:00
hpux [PARISC] ROUND_UP macro cleanup in arch/parisc 2007-05-22 23:56:14 -04:00
kernel kallsyms: make KSYM_NAME_LEN include space for trailing '\0' 2007-07-17 10:23:03 -07:00
lib [PARISC] use CONFIG_64BIT instead of __LP64__ 2007-02-17 01:16:40 -05:00
math-emu [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
mm [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
oprofile
defconfig
defpalo.conf
install.sh
Kconfig Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6 2007-02-26 12:48:06 -08:00
Kconfig.debug
Makefile
nm