aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <[email protected]>2009-10-30 13:53:10 +0000
committerIngo Molnar <[email protected]>2009-11-02 16:00:18 +0000
commit4dae560f97fa438f373b53e14b30149c9e44a600 (patch)
tree4408896d10c483e0f855636f8b9e208bd856d6fc /fs/proc/array.c
parenttracing: Fix to use __always_unused attribute (diff)
downloadkernel-4dae560f97fa438f373b53e14b30149c9e44a600.tar.gz
kernel-4dae560f97fa438f373b53e14b30149c9e44a600.zip
kprobes: Sanitize struct kretprobe_instance allocations
For as long as kretprobes have existed, we've allocated NR_CPUS instances of kretprobe_instance structures. With the default value of CONFIG_NR_CPUS increasing on certain architectures, we are potentially wasting kernel memory. See http://sourceware.org/bugzilla/show_bug.cgi?id=10839#c3 for more details. Use a saner num_possible_cpus() instead of NR_CPUS for allocation. Signed-off-by: Ananth N Mavinakayanahalli <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Cc: Jim Keniston <[email protected]> Cc: [email protected] LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions