projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba4bcb
)
kprobes: use KSYM_NAME_LEN to size identifier buffers
author
Joe Mario
<
[email protected]
>
Tue, 12 Nov 2013 23:10:23 +0000
(15:10 -0800)
committer
Linus Torvalds
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Andi Kleen <
[email protected]
>
Acked-by: Ananth N Mavinakayanahalli <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/kprobes.c
patch
|
blob
|
history
diff --git
a/kernel/kprobes.c
b/kernel/kprobes.c
index a0d367a49122ea39ddb060c7a2a2ecd60855e6f9..ceeadfcabb7611defdbb10f66f3a6b23e60fb0ed 100644
(file)
--- a/
kernel/kprobes.c
+++ b/
kernel/kprobes.c
@@
-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();