Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc62d020 authored by Naveen N. Rao's avatar Naveen N. Rao Committed by Michael Ellerman
Browse files

kprobes: Introduce weak variant of kprobe_exceptions_notify()



kprobe_exceptions_notify() is not used on some of the architectures such
as arm[64] and powerpc anymore. Introduce a weak variant for such
architectures.

Signed-off-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 496e9cb5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1705,6 +1705,12 @@ void unregister_kprobes(struct kprobe **kps, int num)
}
EXPORT_SYMBOL_GPL(unregister_kprobes);

int __weak __kprobes kprobe_exceptions_notify(struct notifier_block *self,
					      unsigned long val, void *data)
{
	return NOTIFY_DONE;
}

static struct notifier_block kprobe_exceptions_nb = {
	.notifier_call = kprobe_exceptions_notify,
	.priority = 0x7fffffff /* we need to be notified first */