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 312162 Details for
Bug 298811
pci_alloc_consistent() for 64k on 16gig machine -> return value is not multiple of 64k
[?]
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]
Upstream patch that fixes an overflow bug
upstream.patch (text/plain), 888 bytes, created by
Prarit Bhargava
on 2008-07-18 17:59:25 UTC
(
hide
)
Description:
Upstream patch that fixes an overflow bug
Filename:
MIME Type:
Creator:
Prarit Bhargava
Created:
2008-07-18 17:59:25 UTC
Size:
888 bytes
patch
obsolete
>(This didn't appear on LKML or any of the mirrors ... trying again) > >It is possible that alloc_iommu()'s boundary_size overflows as >dma_get_seg_boundary can return 0xffffffff. In that case, further usage of >boundary_size triggers a BUG_ON() in the iommu code. > >Signed-off-by: Prarit Bhargava <prarit@redhat.com> > >diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c >index faf3229..baecb47 100644 >--- a/arch/x86/kernel/pci-gart_64.c >+++ b/arch/x86/kernel/pci-gart_64.c >@@ -91,7 +91,7 @@ static unsigned long alloc_iommu(struct device *dev, int size) > > base_index = ALIGN(iommu_bus_base & dma_get_seg_boundary(dev), > PAGE_SIZE) >> PAGE_SHIFT; >- boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, >+ boundary_size = ALIGN((unsigned long long)dma_get_seg_boundary(dev) + 1, > PAGE_SIZE) >> PAGE_SHIFT; > > spin_lock_irqsave(&iommu_bitmap_lock, flags);
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 298811
:
216601
|
217641
|
217701
|
217711
|
246651
|
296071
|
296072
|
302376
|
310803
|
310807
|
310860
|
312159
|
312162
|
312163
|
312462
|
312916