[Bug runtime/26957] New: kernel crash when staprun ko which build id not matched

dinghui at sangfor dot com.cn sourceware-bugzilla@sourceware.org
Fri Nov 27 03:51:27 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26957

            Bug ID: 26957
           Summary: kernel crash when staprun ko which build id not
                    matched
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: dinghui at sangfor dot com.cn
  Target Milestone: ---

When we build a ko by stap, which 

diff --git a/runtime/sym.c b/runtime/sym.c
index a51f08c9e..521aebe48 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -735,7 +735,7 @@ static int _stp_build_id_check (struct _stp_module *m,
      // we make sure below is really a warning.
           _stp_warn ("Build-id mismatch [man warning::buildid]: \"%s\" pid %ld
address "
             "%#lx, expected %s actual %s\n",
-                     m->path, (long) tsk->tgid,
+                     m->path, (long) (tsk ? tsk->tgid : 0),
                      notes_addr, hexstring_theory, hexstring_practice);
       return 1;
   }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list