]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: ensure that our die notifier gets executed amongst the first
authorKris Van Hees <kris.van.hees@oracle.com>
Fri, 16 Dec 2016 18:04:52 +0000 (13:04 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Fri, 23 Dec 2016 22:34:07 +0000 (17:34 -0500)
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 <kris.van.hees@oracle.com>
Acked-by: David Mc Lean <david.mclean@oracle.com>
kernel/dtrace/dtrace_os.c

index 80144415ba06931a7793001394aebf03d635dff8..19b8860c66707d026d85153dc0bb92da4a2ab91b 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/binfmts.h>
 #include <linux/dtrace_cpu.h>
+#include <linux/dtrace_fbt.h>
 #include <linux/dtrace_os.h>
 #include <linux/dtrace_sdt.h>
 #include <linux/fs.h>
@@ -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;