Bug 5359

Summary: Named object passed as a BitIndex or NumBits to CreateField causes hang
Product: ACPI Reporter: Valery A Podrezov (Valery.A.Podrezov)
Component: ACPICA-CoreAssignee: Valery A Podrezov (Valery.A.Podrezov)
Status: CLOSED CODE_FIX    
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 (BitIndex case).
ASL code to reproduce bug (NumBits case).
Proposed patch

Description Valery A Podrezov 2005-10-04 06:10:33 UTC
Most recent kernel where this bug did not occur:
Distribution:
Hardware Environment:
Software Environment:
Problem Description:

The Linux kernel ACPI interpreter fails the following
AML test when it is compiled into a simulator. So if an
OEM BIOS includes this code, Linux would fail.

Steps to reproduce:

Run interpreter with the .asl demo code attached below.
Comment 1 Valery A Podrezov 2005-10-04 06:30:11 UTC
Created attachment 6215 [details]
ASL code to reproduce bug (BitIndex case).

The CreateField AML operator declared on a global level
is passed with the Named object as a BitIndex parameter.
This unexpectedly causes hang.
Comment 2 Valery A Podrezov 2005-10-04 06:32:24 UTC
Created attachment 6216 [details]
ASL code to reproduce bug (NumBits case).

The CreateField AML operator declared on a global level
is passed with the Named object as a NumBits parameter.
This unexpectedly causes hang.


INTERNAL BUG NUMBER

   161
Comment 3 Valery A Podrezov 2005-12-15 09:31:40 UTC
Created attachment 6835 [details]
Proposed patch

The update was tested by the ASLTS test suite runs
(all the test cases) on the following systems:

- CYGWIN_NT-5.1 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
- Linux 2.6.5-7.191-smp #1 SMP Tue Jun 28 14:58:56 UTC 2005 i686 i686 i386
GNU/Linux

for the following (all) modes supported by the ASLTS test suite:

- 32-bit norm mode
- 64-bit norm mode
- 32-bit slack mode
- 32-bit slack mode

The tests were run (on the systems described above) before update,
then the tests were run on those systems after update. Then results
of two runs were compared. All is Ok (the relevant error fixed, no
new errors).
Comment 4 Robert Moore 2006-02-10 14:23:09 UTC
Released in ACPICA version 20060210
Comment 5 Len Brown 2007-01-15 08:52:01 UTC
ACPICA 20060707 shipped in Linux-2.6.18
closed.