Re: [PATCH] powerpc/kprobes: refactor kprobe_lookup_name for safer string operations

2017-04-27 Thread Michael Ellerman
"Naveen N. Rao" writes: > Excerpts from Masami Hiramatsu's message of April 26, 2017 10:11: >> On Tue, 25 Apr 2017 21:37:11 +0530 >> "Naveen N. Rao" wrote: >>> - addr = (kprobe_opcode_t *)kallsyms_lookup_name(dot_name); >>> - if (!addr && dot_appended) { >>> - /* Let's try the origi

Re: [PATCH] powerpc/kprobes: refactor kprobe_lookup_name for safer string operations

2017-04-26 Thread Naveen N. Rao
Excerpts from Masami Hiramatsu's message of April 26, 2017 10:11: On Tue, 25 Apr 2017 21:37:11 +0530 "Naveen N. Rao" wrote: Use safer string manipulation functions when dealing with a user-provided string in kprobe_lookup_name(). Reported-by: David Laight Signed-off-by: Naveen N. Rao --- a

Re: [PATCH] powerpc/kprobes: refactor kprobe_lookup_name for safer string operations

2017-04-25 Thread Masami Hiramatsu
On Tue, 25 Apr 2017 21:37:11 +0530 "Naveen N. Rao" wrote: > Use safer string manipulation functions when dealing with a > user-provided string in kprobe_lookup_name(). > > Reported-by: David Laight > Signed-off-by: Naveen N. Rao > --- > arch/powerpc/kernel/kprobes.c | 47 > ++

[PATCH] powerpc/kprobes: refactor kprobe_lookup_name for safer string operations

2017-04-25 Thread Naveen N. Rao
Use safer string manipulation functions when dealing with a user-provided string in kprobe_lookup_name(). Reported-by: David Laight Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/kprobes.c | 47 ++- 1 file changed, 20 insertions(+), 27 deletions(-)