From: Kris Van Hees Date: Fri, 16 Dec 2016 18:04:52 +0000 (-0500) Subject: dtrace: ensure that our die notifier gets executed amongst the first X-Git-Tag: v4.1.12-92~25^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8caffd5c0dc315de48e4ced5e896f3d29a8bbaa4;p=users%2Fjedix%2Flinux-maple.git 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 --- 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;