ACPICA: Disassembler: Abort on an invalid/unknown AML opcode
authorBob Moore <robert.moore@intel.com>
Mon, 5 Jun 2017 08:40:34 +0000 (16:40 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Jun 2017 12:58:42 +0000 (14:58 +0200)
commit6f0527b77d9e0129dd8e50945b0d610ed943d6b2
tree1c923e1dd5ae8988f1df810832b62f37be33a69c
parentdba744cd941b4eeb153a34877c62293903382751
ACPICA: Disassembler: Abort on an invalid/unknown AML opcode

ACPICA commit ed0389cb11a61e63c568ac1f67948fc6a7bd1aeb

An invalid opcode indicates something seriously wrong with the
input AML file. The AML parser is immediately confused and lost,
causing the resulting parse tree to be ill-formed. The actual
disassembly can then cause numerous unrelated errors and faults.

This change aborts the disassembly upon discovery of such an
opcode during the AML parse phase.

Link: https://github.com/acpica/acpica/commit/ed0389cb
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/psobject.c