Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dev/fbt/x86 PR/56355: Brad Harder: dtrac...



details:   https://anonhg.NetBSD.org/src/rev/5abec1c3d153
branches:  trunk
changeset: 1022885:5abec1c3d153
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 11 11:16:49 2021 +0000

description:
PR/56355: Brad Harder: dtrace triggers double-fault in supervisor mode

diffstat:

 external/cddl/osnet/dev/fbt/x86/fbt_isa.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r b85b52c3eaad -r 5abec1c3d153 external/cddl/osnet/dev/fbt/x86/fbt_isa.c
--- a/external/cddl/osnet/dev/fbt/x86/fbt_isa.c Wed Aug 11 09:12:07 2021 +0000
+++ b/external/cddl/osnet/dev/fbt/x86/fbt_isa.c Wed Aug 11 11:16:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fbt_isa.c,v 1.3 2020/05/02 11:37:17 maxv Exp $ */
+/*     $NetBSD: fbt_isa.c,v 1.4 2021/08/11 11:16:49 christos Exp $     */
 
 /*
  * CDDL HEADER START
@@ -251,8 +251,9 @@
        /*
         * Exclude some more symbols which can be called from probe context.
         */
-       if (strcmp(name, "x86_curcpu") == 0 ||
-           strcmp(name, "x86_curlwp") == 0) {
+       if (strncmp(name, "trap", 4) ||
+           strncmp(name, "x86_curcpu", 10) == 0 ||
+           strncmp(name, "x86_curlwp", 10) == 0) {
                return 0;
        }
 #endif



Home | Main Index | Thread Index | Old Index