Bug 493088 - Kprobes bugfixes backport from 2.6.29
Kprobes bugfixes backport from 2.6.29
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
i386 Linux
high Severity high
: rc
: ---
Assigned To: Masami Hiramatsu
Red Hat Kernel QE team
: Patch
Depends On:
Blocks: 329781
  Show dependency treegraph
Reported: 2009-03-31 11:33 EDT by Masami Hiramatsu
Modified: 2009-09-03 10:17 EDT (History)
3 users (show)

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

Attachments (Terms of Use)
[RHEL5.4][PATCH] prevent boosting kprobes on exception address (2.23 KB, patch)
2009-04-20 15:23 EDT, Masami Hiramatsu
no flags Details | Diff

  None (edit)
Description Masami Hiramatsu 2009-03-31 11:33:09 EDT
Description of problem:

Below two kprobes bugfix patches should be backported from 2.6.29.
Both of them is possible to cause critical kernel panic on x86-32.


prevent boosting kprobes on exception address

Don't boost at the addresses which are listed on exception tables,
because major page fault will occur on those addresses.  In that case,
kprobes can not ensure that when instruction buffer can be freed since
some processes will sleep on the buffer.

kprobes-ia64 already has same check.

prevent kprobes from catching spurious page faults

Prevent kprobes from catching spurious faults which will cause infinite
recursive page-fault and memory corruption by stack overflow.

Version-Release number of selected component (if applicable):
Comment 1 Masami Hiramatsu 2009-04-16 16:40:43 EDT


is not needed to apply. It seems already fixed on RHEL5.3. Thanks,
Comment 2 Masami Hiramatsu 2009-04-20 15:23:57 EDT
Created attachment 340412 [details]
[RHEL5.4][PATCH] prevent boosting kprobes on exception address

Here is the patch(commit 30390880debce4a68fd23e87a787f27609e4bf4a
) ported from 2.6.29 to 2.6.18-139.el5.

Changes from original:
- change both of arch/i386/kernel/kprobes.c and arch/x86_64/kernel/kprobes.c
- include linux/module.h for search_exception_tables().
Comment 3 Don Zickus 2009-04-27 12:00:37 EDT
in kernel-2.6.18-141.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5

Please do NOT transition this bugzilla state to VERIFIED until our QE team
has sent specific instructions indicating when to do so.  However feel free
to provide a comment indicating that this fix has been verified.
Comment 7 errata-xmlrpc 2009-09-02 04:31:37 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.