]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: refactor kprobe_lookup_name for safer string operations
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Mon, 23 Oct 2017 16:37:41 +0000 (22:07 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 12 Nov 2017 12:51:43 +0000 (23:51 +1100)
commitacdfe93101d0f5b968d1bd7ab125517bf7444047
treef81b216f28ad2d0f6763ead4aad7d2ddf7bc29a0
parent67ac0bfe29e9b4359012a8961c196baa813c707a
powerpc/kprobes: refactor kprobe_lookup_name for safer string operations

Use safer string manipulation functions when dealing with a
user-provided string in kprobe_lookup_name().

Reported-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/kprobes.c