Bug 161789 - GET_INDEX macro in aspm pci fixup code can overwrite end of the array
GET_INDEX macro in aspm pci fixup code can overwrite end of the array
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
4.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Neil Horman
Brian Brock
:
Depends On:
Blocks: 156322
  Show dependency treegraph
 
Reported: 2005-06-27 07:57 EDT by Neil Horman
Modified: 2007-11-30 17:07 EST (History)
3 users (show)

See Also:
Fixed In Version: RHSA-2005-514
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-10-05 09:36:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Backport of Intels upstream patch to restrict the GET_INDEX array to only use the lower 3 bits of the devfn value (514 bytes, patch)
2005-06-27 07:57 EDT, Neil Horman
no flags Details | Diff

  None (edit)
Description Neil Horman 2005-06-27 07:57:15 EDT
Description of problem:
the GET_INDEX macro in arch/i386/pci/fixup.c fails to only use the lower 3 bits
of a pci devices devfn value.  As such, certain pcidevices with a sufficiently
large bus/device/function tuple can index too far into the quirk_aspm_offset
array, overwriting parts of memory

Version-Release number of selected component (if applicable):
RHEL4, all versions

How reproducible:
Unknown

Steps to Reproduce:
1.
2.
3.
  
Actual results:
memory which is allocated immediately after the quirk_aspm_offset array can
become corrupted

Expected results:
No memory corruption

Additional info:
Comment 1 Neil Horman 2005-06-27 07:57:15 EDT
Created attachment 116008 [details]
Backport of Intels upstream patch to restrict the GET_INDEX array to only use the lower 3 bits of the devfn value
Comment 7 Red Hat Bugzilla 2005-10-05 09:36:40 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 the 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-2005-514.html

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