]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
kprobes: use KSYM_NAME_LEN to size identifier buffers
authorJoe Mario <jmario@redhat.com>
Tue, 12 Nov 2013 23:10:23 +0000 (15:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:26 +0000 (12:09 +0900)
Use KSYM_NAME_LEN to size identifier buffers, so that it can be easier
increased.

Signed-off-by: Joe Mario <jmario@redhat.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kprobes.c

index a0d367a49122ea39ddb060c7a2a2ecd60855e6f9..ceeadfcabb7611defdbb10f66f3a6b23e60fb0ed 100644 (file)
@@ -2066,7 +2066,7 @@ static int __init init_kprobes(void)
 {
        int i, err = 0;
        unsigned long offset = 0, size = 0;
-       char *modname, namebuf[128];
+       char *modname, namebuf[KSYM_NAME_LEN];
        const char *symbol_name;
        void *addr;
        struct kprobe_blackpoint *kb;
@@ -2192,7 +2192,7 @@ static int __kprobes show_kprobe_addr(struct seq_file *pi, void *v)
        const char *sym = NULL;
        unsigned int i = *(loff_t *) v;
        unsigned long offset = 0;
-       char *modname, namebuf[128];
+       char *modname, namebuf[KSYM_NAME_LEN];
 
        head = &kprobe_table[i];
        preempt_disable();