Bug 498040 - intermittent crashes on prototype kprobe.function("foo") probes for erroneous "foo"
intermittent crashes on prototype kprobe.function("foo") probes for erroneous...
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: systemtap (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Josh Stone
Depends On:
  Show dependency treegraph
Reported: 2009-04-28 11:48 EDT by Frank Ch. Eigler
Modified: 2009-09-02 06:01 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-09-02 06:01:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Backport fixes for dwarfless kprobes (8.01 KB, patch)
2009-04-28 18:57 EDT, Josh Stone
no flags Details | Diff

  None (edit)
Description Frank Ch. Eigler 2009-04-28 11:48:48 EDT
A bug in the new code for debuginfo-less probing in 0.9.7 may result in
occasional kernel BUG/crashes, when the function parameter causes
a failed registration.  I believe Josh has a reproducing recipe (please
attach here), and also has two or three patches on mainline systemtap
that could be backported to rhel5.4's new build.
Comment 1 Josh Stone 2009-04-28 15:18:39 EDT
I have a reproducer that works on Fedora, but when I tried it on RHEL5.4, I discovered that the debuginfo-less probing is completely broken.  It doesn't get past the compile phase with a simple probe, so we never even get to the potential BUG point in the kernel.

I will put together a patch which fixes the compile problems and also fixes the runtime BUG.
Comment 2 Josh Stone 2009-04-28 18:57:15 EDT
Created attachment 341665 [details]
Backport fixes for dwarfless kprobes

This is a backport of a few fixes for dwarfless kprobes that were
made after the 0.9.7 release.  The upstream commits are:

5badd4d... Don't terminate when a dwarfless kprobe fails
46856d8... Fill out the pp() for dwarfless kprobes
8874701... fix kprobe.* probes so they don't break -p4 if script
           also has kernel.* probes
9f38e65... Handle kprobe struct field symbol_name as either char *
           or const char *.
Comment 9 errata-xmlrpc 2009-09-02 06:01:21 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.