kernel-ark/arch/parisc/kernel
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
..
asm-offsets.c
binfmt_elf32.c
cache.c
drivers.c
entry.S
firmware.c
hardware.c
head.S
hpmc.S
init_task.c
inventory.c
irq.c
Makefile
module.c
pa7300lc.c
pacache.S
parisc_ksyms.c
pci-dma.c
pci.c
pdc_chassis.c
pdc_cons.c
perf_asm.S
perf_images.h
perf.c
process.c
processor.c
ptrace.c PTRACE_PEEKDATA consolidation 2007-07-17 10:23:03 -07:00
real2.S
semaphore.c
setup.c
signal32.c
signal32.h
signal.c
smp.c
sys32.h
sys_parisc32.c
sys_parisc.c
syscall_table.S
syscall.S
time.c
topology.c
traps.c
unaligned.c
unwind.c kallsyms: make KSYM_NAME_LEN include space for trailing '\0' 2007-07-17 10:23:03 -07:00
vmlinux.lds.S