Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311857 Details for
Bug 455478
2.6.26 backport of "check physical address range in ioremap" into RHEL5-U3
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Backported patch to address this problem.
rhel5u3-ioremap.patch (text/plain), 894 bytes, created by
Larry Woodman
on 2008-07-15 17:57:23 UTC
(
hide
)
Description:
Backported patch to address this problem.
Filename:
MIME Type:
Creator:
Larry Woodman
Created:
2008-07-15 17:57:23 UTC
Size:
894 bytes
patch
obsolete
>--- linux-2.6.18.noarch/arch/x86_64/mm/ioremap.c.orig 2008-07-15 13:08:00.000000000 -0400 >+++ linux-2.6.18.noarch/arch/x86_64/mm/ioremap.c 2008-07-15 13:09:41.000000000 -0400 >@@ -22,6 +22,11 @@ > #define ISA_START_ADDRESS 0xa0000 > #define ISA_END_ADDRESS 0x100000 > >+static inline int phys_addr_valid(unsigned long addr) >+{ >+ return addr < (1UL << boot_cpu_data.x86_phys_bits); >+} >+ > static inline void remap_area_pte(pte_t * pte, unsigned long address, unsigned long size, > unsigned long phys_addr, unsigned long flags) > { >@@ -171,6 +176,13 @@ void __iomem * __ioremap(unsigned long p > if (!size || last_addr < phys_addr) > return NULL; > >+ if (!phys_addr_valid(phys_addr)) { >+ printk(KERN_WARNING "ioremap: invalid physical address %lx\n", >+ phys_addr); >+ WARN_ON_ONCE(1); >+ return NULL; >+ } >+ > /* > * Don't remap the low PCI/ISA area, it's always mapped.. > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 455478
: 311857