android_kernel_samsung_a7y1.../drivers/acpi
Erik Kaneda 80971bdc5a ACPICA: Disassembler: create buffer fields in ACPI_PARSE_LOAD_PASS1
[ Upstream commit 5ddbd77181dfca61b16d2e2222382ea65637f1b9 ]

ACPICA commit 29cc8dbc5463a93625bed87d7550a8bed8913bf4

create_buffer_field is a deferred op that is typically processed in
load pass 2. However, disassembly of control method contents walk the
parse tree with ACPI_PARSE_LOAD_PASS1 and AML_CREATE operators are
processed in a later walk. This is a problem when there is a control
method that has the same name as the AML_CREATE object. In this case,
any use of the name segment will be detected as a method call rather
than a reference to a buffer field. If this is detected as a method
call, it can result in a mal-formed parse tree if the control methods
have parameters.

This change in processing AML_CREATE ops earlier solves this issue by
inserting the named object in the ACPI namespace so that references
to this name would be detected as a name string rather than a method
call.

Link: https://github.com/acpica/acpica/commit/29cc8dbc
Reported-by: Elia Geretto <elia.f.geretto@gmail.com>
Tested-by: Elia Geretto <elia.f.geretto@gmail.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:56:22 +02:00
..
acpica ACPICA: Disassembler: create buffer fields in ACPI_PARSE_LOAD_PASS1 2020-04-07 13:56:22 +02:00
apei ACPI / APEI: Switch estatus pool to use vmalloc memory 2020-04-07 12:43:08 +02:00
pmic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ac.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_apd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_cmos_rtc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_extlog.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_ipmi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_lpat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_lpss.c ACPI / LPSS: Ignore acpi_device_fix_up_power() return value 2020-04-07 12:41:18 +02:00
acpi_memhotplug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_pad.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_platform.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_pnp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_processor.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_video.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
battery.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
battery.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bgrt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
blacklist.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bus.c ACPI: bus: Fix NULL pointer check in acpi_bus_get_private_data() 2020-04-07 13:07:22 +02:00
button.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cm_sbs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
container.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cppc_acpi.c ACPI / CPPC: do not require the _PSD method 2020-04-07 07:38:54 +02:00
custom_method.c ACPI: custom_method: fix memory leaks 2020-04-07 07:38:59 +02:00
debugfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
device_pm.c ACPI: PM: Avoid attaching ACPI PM domain to certain devices 2020-04-07 13:07:24 +02:00
device_sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ec_sys.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ec.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fan.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gsi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hed.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
int340x_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
internal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ioapic.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfit.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfit.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
numa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nvs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
osl.c ACPI: OSL: only free map once in osl.c 2020-04-07 13:07:20 +02:00
pci_irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci_link.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci_root.c PCI/ACPI: Correct error message for ASPM disabling 2020-04-07 12:28:27 +02:00
pci_slot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_driver.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_idle.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_pdc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_perflib.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_throttling.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
property.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reboot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
resource.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sbs.c ACPI / SBS: Fix GPE storm on recent MacBookPro's 2020-04-06 15:20:26 +02:00
sbshc.c ACPI / SBS: Fix rare oops when removing modules 2020-04-07 12:32:57 +02:00
sbshc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scan.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sleep.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sleep.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tables.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
utils.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video_detect.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wakeup.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30