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 [PARISC] fix "reduce size of task_struct on 64-bit machines" fallout 2007-05-30 02:27:46 -04:00
firmware.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
hardware.c [PARISC] fix section mismatches in arch/parisc/kernel 2007-05-27 13:36:27 -04:00
head.S
hpmc.S [PARISC] Fix kernel panic in check_ivt 2007-06-04 02:26:52 -04:00
init_task.c
inventory.c
irq.c [PARISC] remove global_ack_eiem 2007-06-12 01:23:30 -04:00
Makefile
module.c
pa7300lc.c
pacache.S
parisc_ksyms.c
pci-dma.c parisc: convert /proc/gsc/pcxl_dma to seq_file 2007-05-22 22:43:01 -04:00
pci.c
pdc_chassis.c
pdc_cons.c
perf_asm.S
perf_images.h
perf.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
process.c [PARISC] be more defensive in process.c::get_wchan 2007-05-30 02:36:00 -04:00
processor.c [PARISC] fix section mismatches in arch/parisc/kernel 2007-05-27 13:36:27 -04:00
ptrace.c PTRACE_PEEKDATA consolidation 2007-07-17 10:23:03 -07:00
real2.S
semaphore.c
setup.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
signal32.c
signal32.h [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
signal.c
smp.c [PARISC] fix section mismatch in smp.c 2007-05-30 02:10:12 -04:00
sys32.h
sys_parisc32.c [PARISC] ROUND_UP macro cleanup in arch/parisc 2007-05-22 23:56:14 -04:00
sys_parisc.c
syscall_table.S [PARISC] Wire up utimensat/signalfd/timerfd/eventfd syscalls 2007-05-27 15:19:58 -04:00
syscall.S [PARISC] Fix bug when syscall nr is __NR_Linux_syscalls 2007-06-03 17:53:45 -04:00
time.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
topology.c
traps.c Report that kernel is tainted if there was an OOPS 2007-07-17 10:23:02 -07:00
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