Bug 1520 - Missing Region filed attributes leads to error of index out of buffer.
Summary: Missing Region filed attributes leads to error of index out of buffer.
Status: REJECTED INVALID
Alias: None
Product: ACPI
Classification: Unclassified
Component: ACPICA-Core (show other bugs)
Hardware: i386 Linux
: P2 high
Assignee: Luming Yu
URL:
Keywords:
: 1524 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-09 17:50 UTC by Luming Yu
Modified: 2006-09-28 13:11 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.0-test8
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
a patch for fixing this issue (1.76 KB, patch)
2003-11-09 17:53 UTC, Luming Yu
Details | Diff
a patch for fixing this issue (2.16 KB, patch)
2003-11-11 02:51 UTC, Luming Yu
Details | Diff

Description Luming Yu 2003-11-09 17:50:49 UTC
Distribution:
RH+ 2.6.0-test8

Software Environment:
2.6.0-test8

Problem Description:
Below case could cause index out of buffer

            OperationRegion (C048, PCI_Config, 0x91, 0x06)
            Field (C048, AnyAcc, NoLock, Preserve)
            {
                C049,   48
            }
      Alias (C049, \_SB.C049)
...

                     Store (C049, Local7)
                     Store (DerefOf (Index (Local7, 6)), Local1)
Comment 1 Luming Yu 2003-11-09 17:53:45 UTC
Created attachment 1406 [details]
a patch for fixing this issue
Comment 2 Luming Yu 2003-11-11 02:37:05 UTC
*** Bug 1524 has been marked as a duplicate of this bug. ***
Comment 3 Luming Yu 2003-11-11 02:51:09 UTC
Created attachment 1410 [details]
a patch for fixing this issue

1 fix for error usage of buffer_desc->buffer.length of previous patch.
Comment 4 Kjartan Maraas 2003-11-16 03:26:42 UTC
Trying to rebuild the kernel now, but I'm running into some problems with the
Fedora kernel-sources package. Will give you feedback when I've resolved those
and tested the patch.
Comment 5 Kjartan Maraas 2003-11-20 14:23:46 UTC
Tested this tonight but I still see these warnings:

ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
    ACPI-1120: *** Error: Method execution failed [\_SB_.C03E.C04C] (Node
035a26ac), AE_AML_BUFFER_LIMIT
    ACPI-1120: *** Error: Method execution failed [\_SB_.C03E.C050] (Node
035a2680), AE_AML_BUFFER_LIMIT
    ACPI-1120: *** Error: Method execution failed [\_SB_.C03E._CRS] (Node
035a2654), AE_AML_BUFFER_LIMIT
    ACPI-0098: *** Error: Method execution failed [\_SB_.C03E._CRS] (Node
035a2654), AE_AML_BUFFER_LIMIT
ACPI: PCI Root Bridge [C03E] (00:00)

Comment 6 Luming Yu 2003-11-20 16:43:27 UTC
Please use latest patch at http://bugzilla.kernel.org/show_bug.cgi?id=1444
Comment 7 Robert Moore 2003-12-12 14:41:21 UTC
For more information, see 16.2.3.4.2.18.2 Index With Buffers

Use CreateBitField instead.

Comment 8 Robert Moore 2003-12-12 15:01:32 UTC
1) Index (xxx, 6) references the 6th byte, not the 6th bit.
2) If the table is 32 bits, the buffer has no 6th byte.
3) If the table is 64 bits, the buffer is converted to an integer during the 
store to local7.  It is illegal to take an index on an integer.

Note You need to log in before you can comment on or make changes to this bug.