Bug 537472
| Summary: | ftrace function tracer triggers integrity check failure | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Steven Rostedt <srostedt> | ||||||
| Component: | realtime-kernel | Assignee: | John Kacur <jkacur> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | David Sommerseth <davids> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 1.1 | CC: | bhu, lgoncalv, ovasik | ||||||
| Target Milestone: | 1.2.4 | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: |
The "function tracer" from ftrace could eventually present problems when a module was unloaded during a tracing session. Some of the related call site entries for that module were not removed from ftrace's internal lists and could lead to confusing error ("oops") messages.
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2010-01-21 14:11:05 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Steven Rostedt
2009-11-13 19:00:17 UTC
Found the error. It was with the ftrace_release that is called by the module code to release the functions used by the module. It was missing some due to the way the hash check was implemented. Will fix. Created attachment 369916 [details]
ftrace: Only update $offset when we update $ref_func
This is not the fix, but it is related. I backported this patch to 2.6.24-rt.
Created attachment 369917 [details]
ftrace: Fix removing of function entries from modules
This is the fix for the bug.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
The "function tracer" from ftrace could eventually present problems when a module was unloaded during a tracing session. Some of the related call site entries for that module were not removed from ftrace's internal lists and could lead to confusing error ("oops") messages.
Verified by reproducing the situation. reproducer: ------------------------------------------------------- - boot kernel-rt-trace kernel - Log in as root, and run the following commands: [root@host]# mount -t debugfs debugfs /sys/kernel/debug [root@host]# cd /sys/kernel/debug [root@host]# cat current_tracer none [root@host]# echo ftrace > current_tracer [root@host]# modprobe -r acpi ------------------------------------------------------- When checking dmesg, you'll find a similar backtrace to whats reported when running the kernel-rt-trace-2.6.24.7.139. When running the 2.6.24.7-146 version, no error messages are found. 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. http://rhn.redhat.com/errata/RHSA-2010-0041.html |