Bug 5425

Summary: The copy of Device object to LocalX is not ever released
Product: ACPI Reporter: Valery A Podrezov (Valery.A.Podrezov)
Component: ACPICA-CoreAssignee: Lin Ming (ming.m.lin)
Status: REJECTED INVALID    
Severity: normal CC: acpi-bugzilla
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6 Subsystem:
Regression: --- Bisected commit-id:
Attachments: ASL code to reproduce bug.

Description Valery A Podrezov 2005-10-12 10:25:56 UTC
Most recent kernel where this bug did not occur:
Distribution:
Hardware Environment:
Software Environment:
Problem Description:

The "memory leak" bug.
The issue has been revealed by both PMEMCV and OAS (see bug 5422).
It is a legal ACPI operation copying Device to LocalX.
This operation produces the memory allocation which is not even
released after the method termination and even when it loses all
the references to it and thus becomes an outstanding allocation.

Steps to reproduce:

Run interpreter with the .asl demo code attached below.
Comment 1 Valery A Podrezov 2005-10-12 10:26:55 UTC
Created attachment 6289 [details]
ASL code to reproduce bug.

The attached demo (m001) produces as many memory leaks
as the length of the While cycle.


INTERNAL BUG NUMBER

   163
Comment 2 Lin Ming 2007-11-06 18:52:11 UTC
Copy a Device is now not allowable.
The allowable source operands of CopyObject is ARGI_DATAREFOBJ, which can be one of the following:
Integer
String
Buffer
Package
Object Reference
DdbHandle
Comment 3 Lin Ming 2007-11-06 20:24:50 UTC
Reject, since copy Device is not allowable now.