From 8caffd5c0dc315de48e4ced5e896f3d29a8bbaa4 Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Fri, 16 Dec 2016 13:04:52 -0500 Subject: [PATCH] dtrace: ensure that our die notifier gets executed amongst the first The die notifier is crucial for implementing safe memory access in DTrace. To avoid other handlers potentially causing interference, we set the priority of our handler at the highest level. Signed-off-by: Kris Van Hees Acked-by: David Mc Lean --- kernel/dtrace/dtrace_os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/dtrace/dtrace_os.c b/kernel/dtrace/dtrace_os.c index 80144415ba06..19b8860c6670 100644 --- a/kernel/dtrace/dtrace_os.c +++ b/kernel/dtrace/dtrace_os.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -436,6 +437,7 @@ EXPORT_SYMBOL(dtrace_stacktrace); \*---------------------------------------------------------------------------*/ static struct notifier_block dtrace_die = { .notifier_call = dtrace_die_notifier, + .priority = 0x7fffffff }; static int dtrace_enabled = 0; -- 2.50.1