Files
linux/kernel
Hugh Dickins 9c24624727 KSYM_SYMBOL_LEN fixes
Miles Lane tailing /sys files hit a BUG which Pekka Enberg has tracked
to my 966c8c12dc sprint_symbol(): use
less stack exposing a bug in slub's list_locations() -
kallsyms_lookup() writes a 0 to namebuf[KSYM_NAME_LEN-1], but that was
beyond the end of page provided.

The 100 slop which list_locations() allows at end of page looks roughly
enough for all the other stuff it might print after the symbol before
it checks again: break out KSYM_SYMBOL_LEN earlier than before.

Latencytop and ftrace and are using KSYM_NAME_LEN buffers where they
need KSYM_SYMBOL_LEN buffers, and vmallocinfo a 2*KSYM_NAME_LEN buffer
where it wants a KSYM_SYMBOL_LEN buffer: fix those before anyone copies
them.

[[email protected]: ftrace.h needs module.h]
Signed-off-by: Hugh Dickins <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc Miles Lane <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Cc: Rusty Russell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2008-12-10 08:01:54 -08:00
..
2008-11-27 10:11:53 +01:00
…
…
2008-11-30 10:03:37 -08:00
2008-10-16 11:21:30 -07:00
…
2008-09-14 16:25:35 +02:00
2008-11-19 18:49:58 -08:00
2008-07-28 14:37:38 +02:00
…
2008-12-10 08:01:54 -08:00
2008-08-13 12:55:10 +02:00
…
2008-12-01 19:55:24 -08:00
2008-09-02 19:21:40 -07:00
2008-11-30 10:03:37 -08:00
2008-11-30 11:00:15 -08:00
2008-10-21 15:59:53 +02:00
…
…
2008-11-11 11:57:22 +01:00
2008-11-05 10:30:14 +01:00
…
2008-11-06 08:41:56 +01:00
…
2008-11-19 18:49:57 -08:00
2008-07-25 10:53:45 -07:00
…
2008-10-16 11:21:47 -07:00
2008-10-16 11:21:31 -07:00