Thread (23 messages) 23 messages, 6 authors, 2019-06-26

Re: [PATCH 7/7] powerpc/kprobes: Allow probing on any ftrace address

From: Joe Perches <joe@perches.com>
Date: 2019-06-22 03:52:16
Also in: lkml

On Fri, 2019-06-21 at 23:50 +0900, Masami Hiramatsu wrote:
On Tue, 18 Jun 2019 20:17:06 +0530
"Naveen N. Rao" [off-list ref] wrote:
trivia:
quoted
diff --git a/arch/powerpc/kernel/kprobes-ftrace.c b/arch/powerpc/kernel/kprobes-ftrace.c
[]
quoted
@@ -57,6 +82,11 @@ NOKPROBE_SYMBOL(kprobe_ftrace_handler);
 
 int arch_prepare_kprobe_ftrace(struct kprobe *p)
 {
+	if ((unsigned long)p->addr & 0x03) {
+		printk("Attempt to register kprobe at an unaligned address\n");
Please use the appropriate KERN_<LEVEL> or pr_<level>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help