[Bug runtime/31500] stapio exited with irqs disabled

wcohen at redhat dot com sourceware-bugzilla@sourceware.org
Fri Mar 22 14:40:32 GMT 2024


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

William Cohen <wcohen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from William Cohen <wcohen at redhat dot com> ---
This issue should be addressed by the following patch:

commit 7cc8f31116c5bf218572f88080f3009e5c474a0f (HEAD -> master, origin/master,
origin/HEAD)
Author: William Cohen <wcohen@redhat.com>
Date:   Fri Mar 22 10:29:49 2024 -0400

    PR31500: Never allow probing of kernel __init or __kprobes functions

    When guru mode was used it was possble to get systemtap to instrument
    kernel functions marked with __init or __kprobes.  By the time that
    systemtap instrumentation is being loaded a kernel __init marked
    functions has already run and may be in a section of memory that has
    been freed up.  At best this probe will never trigger.  At worst the
    registration of the probe will cause a memory fault causing the
    process to be killed.  Also probes shouldn't be allowed on __kprobes
    functions as a rule.

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


More information about the Systemtap mailing list