android_kernel_motorola_sm6225/kernel/time
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
..
clockevents.c Remove clockevents_{release,request}_device 2007-07-16 09:05:43 -07:00
clocksource.c clocksource: fix lock order in the resume path 2007-05-15 08:54:00 -07:00
jiffies.c [PATCH] fix jiffies clocksource inittime 2007-04-04 21:12:47 -07:00
Kconfig [PATCH] hrtimers: add high resolution timer support 2007-02-16 08:13:59 -08:00
Makefile Move timekeeping code to timekeeping.c 2007-05-08 11:15:06 -07:00
ntp.c Remove capability.h from mm.h 2007-07-16 09:05:45 -07:00
tick-broadcast.c Ignore bogus ACPI info for offline CPUs 2007-05-23 20:14:11 -07:00
tick-common.c highres/dyntick: prevent xtime lock contention 2007-05-08 11:15:10 -07:00
tick-internal.h highres/dyntick: prevent xtime lock contention 2007-05-08 11:15:10 -07:00
tick-oneshot.c [PATCH] clockevents: Fix suspend/resume to disk hangs 2007-03-16 19:35:25 -07:00
tick-sched.c NOHZ: prevent multiplication overflow - stop timer for huge timeouts 2007-05-29 18:11:10 -07:00
timekeeping.c Introduce boot based time 2007-07-16 09:05:41 -07:00
timer_list.c kallsyms: make KSYM_NAME_LEN include space for trailing '\0' 2007-07-17 10:23:03 -07:00
timer_stats.c kallsyms: make KSYM_NAME_LEN include space for trailing '\0' 2007-07-17 10:23:03 -07:00