Bug 282351

Summary: [PATCH] Fix memory leak of dma_alloc_coherent() on x86_64
Product: Red Hat Enterprise Linux 4 Reporter: Ludek Smid <lsmid>
Component: kernelAssignee: Vitaly Mayatskikh <vmayatsk>
Status: CLOSED ERRATA QA Contact: Martin Jenner <mjenner>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.5CC: dhoward, kzhang, maeno.masaki, tao
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2007-0939 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-01 13:31:18 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:
Bug Depends On: 243657    
Bug Blocks:    
Attachments:
Description Flags
proposed patch none

Description Ludek Smid 2007-09-07 13:22:26 UTC
This bug has been copied from bug #X and has been proposed to be backported to
4.5 z-stream (EUS).

Comment 2 Vitaly Mayatskikh 2007-09-08 21:44:25 UTC
Created attachment 190871 [details]
proposed patch

Comment 5 Don Howard 2007-09-21 22:37:26 UTC
A patch for this issue has been included in build 2.6.9-55.0.7.

Comment 6 Masaki MAENO 2007-10-16 00:55:32 UTC
I also hoped it. 
However, I confirmed that memoryleak-fix-patch was not included in
"arch/x86_64/kernel/pci-gart.c" on 2.6.9-55.0.9.EL.
Please fix this problem by the proposed patch.


Comment 7 Masaki MAENO 2007-10-16 01:25:41 UTC
But, the ChangeLog existed in 2.6.9-55.0.9.EL.
>>> - fix memory leak of dma_alloc_coherent() on x86_64 (Prarit Bhargava) [282351]

Anyway, please confirm it.


Comment 8 Vitaly Mayatskikh 2007-10-16 07:38:18 UTC
dma_alloc_coherent() was fixed in 2.6.9-55.0.7, but all patches from 55.0.7 were
reverted in build 55.0.9 and restored in 55.0.10 due to internal reasons. Please
take a look to changelog one more time.


Comment 9 Masaki MAENO 2007-10-17 00:09:54 UTC
I expect it in the following errata release.


Comment 11 Zhang Kexin 2007-10-31 13:42:15 UTC
got no right hardware do the test, (it needs a system that has a device that
calls dma_alloc_coherent,SB600 system should be OK), so just do code review.

Comment 13 errata-xmlrpc 2007-11-01 13:31:18 UTC
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-2007-0939.html