linux/drivers/acpi/acpica
Abhishek Mainkar 3a21ffdbc8 ACPICA: Add AML_NO_OPERAND_RESOLVE flag to Timer
ACPICA commit 90310989a0790032f5a0140741ff09b545af4bc5

According to the ACPI specification 19.6.134, no argument is required to be passed for ASL Timer instruction. For taking care of no argument, AML_NO_OPERAND_RESOLVE flag is added to ASL Timer instruction opcode.

When ASL timer instruction interpreted by ACPI interpreter, getting error. After adding AML_NO_OPERAND_RESOLVE flag to ASL Timer instruction opcode, issue is not observed.

=============================================================
UBSAN: array-index-out-of-bounds in acpica/dswexec.c:401:12 index -1 is out of range for type 'union acpi_operand_object *[9]'
CPU: 37 PID: 1678 Comm: cat Not tainted
6.0.0-dev-th500-6.0.y-1+bcf8c46459e407-generic-64k
HW name: NVIDIA BIOS v1.1.1-d7acbfc-dirty 12/19/2022 Call trace:
 dump_backtrace+0xe0/0x130
 show_stack+0x20/0x60
 dump_stack_lvl+0x68/0x84
 dump_stack+0x18/0x34
 ubsan_epilogue+0x10/0x50
 __ubsan_handle_out_of_bounds+0x80/0x90
 acpi_ds_exec_end_op+0x1bc/0x6d8
 acpi_ps_parse_loop+0x57c/0x618
 acpi_ps_parse_aml+0x1e0/0x4b4
 acpi_ps_execute_method+0x24c/0x2b8
 acpi_ns_evaluate+0x3a8/0x4bc
 acpi_evaluate_object+0x15c/0x37c
 acpi_evaluate_integer+0x54/0x15c
 show_power+0x8c/0x12c [acpi_power_meter]

Link: https://github.com/acpica/acpica/commit/90310989
Signed-off-by: Abhishek Mainkar <abmainkar@nvidia.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2023-07-10 18:49:16 +02:00
..
acapps.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
accommon.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acconvert.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acdebug.h ACPICA: Add interrupt command to acpiexec 2023-07-10 18:48:15 +02:00
acdispat.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acevents.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acglobal.h ACPICA: Detect GED device and keep track of _EVT 2023-07-10 18:33:47 +02:00
achware.h ACPI: sleep: Avoid breaking S3 wakeup due to might_sleep() 2023-06-15 18:05:19 +02:00
acinterp.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
aclocal.h ACPICA: Detect GED device and keep track of _EVT 2023-07-10 18:33:47 +02:00
acmacros.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acnamesp.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acobject.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acopcode.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acparser.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acpredef.h ACPICA: Add support for _DSC as per ACPI 6.5 2023-07-10 15:21:03 +02:00
acresrc.h ACPICA: add support for ClockInput resource (v6.5) 2023-04-06 20:29:11 +02:00
acstruct.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
actables.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
acutils.h ACPICA: add support for ClockInput resource (v6.5) 2023-04-06 20:29:11 +02:00
amlcode.h ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
amlresrc.h ACPICA: acpi_resource_irq: Replace 1-element arrays with flexible array 2023-04-06 20:29:12 +02:00
dbcmds.c ACPICA: Add interrupt command to acpiexec 2023-07-10 18:48:15 +02:00
dbconvert.c
dbdisply.c ACPICA: iASL: add new OperationRegion subtype keyword PlatformRtMechanism 2020-06-05 13:34:23 +02:00
dbexec.c ACPICA: Debugger: Add a new command: "ALL <NameSeg>" 2020-10-08 18:03:55 +02:00
dbfileio.c
dbhistry.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dbinput.c ACPICA: Add interrupt command to acpiexec 2023-07-10 18:48:15 +02:00
dbmethod.c ACPICA: Debugger: Add a new command: "ALL <NameSeg>" 2020-10-08 18:03:55 +02:00
dbnames.c ACPICA: ACPICA: check null return of ACPI_ALLOCATE_ZEROED in acpi_db_display_objects 2023-04-06 20:29:12 +02:00
dbobject.c ACPICA: Clean up exception code class checks 2021-01-18 16:01:10 +01:00
dbstats.c
dbtest.c
dbutils.c
dbxface.c ACPICA: acpiexec: remove redeclaration of acpi_gbl_db_opt_no_region_support 2020-03-30 14:52:32 +02:00
dsargs.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dscontrol.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dsdebug.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dsfield.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dsinit.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dsmethod.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dsmthdat.c
dsobject.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dsopcode.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dspkginit.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dsutils.c
dswexec.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dswload2.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dswload.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dswscope.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
dswstate.c ACPICA: Slightly simplify an error message in acpi_ds_result_push() 2023-07-10 18:49:16 +02:00
evevent.c ACPI updates for 6.4-rc1 2023-04-25 18:37:41 -07:00
evglock.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evgpe.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evgpeblk.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evgpeinit.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evgpeutil.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evhandler.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evmisc.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evregion.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evrgnini.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evsci.c
evxface.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evxfevnt.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evxfgpe.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
evxfregn.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exconcat.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exconfig.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exconvrt.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
excreate.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exdebug.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exdump.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exfield.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exfldio.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exmisc.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exmutex.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exnames.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exoparg1.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exoparg2.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exoparg3.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exoparg6.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exprep.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exregion.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exresnte.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exresolv.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exresop.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exserial.c ACPICA: exserial.c: replace ternary operator with ACPI_MIN() 2023-07-10 15:21:03 +02:00
exstore.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exstoren.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exstorob.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exsystem.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
extrace.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
exutils.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
hwacpi.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
hwesleep.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
hwgpe.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
hwpci.c
hwregs.c ACPICA: Clean up double word in comment 2022-04-13 20:24:57 +02:00
hwsleep.c ACPI updates for 6.4-rc1 2023-04-25 18:37:41 -07:00
hwtimer.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
hwvalid.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
hwxface.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
hwxfsleep.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
Makefile ACPI: Don't build ACPICA with '-Os' 2023-01-24 11:49:43 +00:00
nsaccess.c ACPICA: Always create namespace nodes using acpi_ns_create_node() 2021-03-24 14:50:54 +01:00
nsalloc.c ACPICA: Remove unnecessary semicolon 2020-10-08 18:03:56 +02:00
nsarguments.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsconvert.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsdump.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsdumpdv.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nseval.c
nsinit.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsload.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsnames.c ACPICA: Fixes for acpiExec namespace init file 2020-03-30 14:52:33 +02:00
nsobject.c
nsparse.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nspredef.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsprepkg.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsrepair2.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsrepair.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nssearch.c
nsutils.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nswalk.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsxfeval.c
nsxfname.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
nsxfobj.c ACPICA: Tree-wide: fix various typos and spelling mistakes 2020-10-08 18:03:55 +02:00
psargs.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
psloop.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
psobject.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
psopcode.c ACPICA: Add AML_NO_OPERAND_RESOLVE flag to Timer 2023-07-10 18:49:16 +02:00
psopinfo.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
psparse.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
psscope.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
pstree.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
psutils.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
pswalk.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
psxface.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
rsaddr.c ACPICA: Avoid undefined behavior: member access within misaligned address 2023-04-06 20:29:11 +02:00
rscalc.c ACPICA: Avoid undefined behavior: member access within misaligned address 2023-04-06 20:29:11 +02:00
rscreate.c
rsdump.c ACPICA: ACPI 6.4: add CSI2Bus resource template 2021-04-07 19:09:01 +02:00
rsdumpinfo.c ACPICA: add support for ClockInput resource (v6.5) 2023-04-06 20:29:11 +02:00
rsinfo.c ACPICA: add support for ClockInput resource (v6.5) 2023-04-06 20:29:11 +02:00
rsio.c
rsirq.c
rslist.c ACPICA: Avoid undefined behavior: member access within misaligned address 2023-04-06 20:29:11 +02:00
rsmemory.c
rsmisc.c ACPICA: Avoid undefined behavior: load of misaligned address 2023-04-06 20:29:11 +02:00
rsserial.c ACPICA: add support for ClockInput resource (v6.5) 2023-04-06 20:29:11 +02:00
rsutils.c
rsxface.c
tbdata.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
tbfadt.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
tbfind.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
tbinstal.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
tbprint.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
tbutils.c ACPICA: Avoid undefined behavior: load of misaligned address 2023-04-06 20:29:11 +02:00
tbxface.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
tbxfload.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
tbxfroot.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utaddress.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utalloc.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utascii.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utbuffer.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utcache.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utcksum.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utcopy.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utdebug.c ACPICA: Fix GCC 12 dangling-pointer warning 2023-07-10 15:21:03 +02:00
utdecode.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utdelete.c ACPICA: Utilities: Avoid deleting the same object twice in a row 2021-12-27 17:01:28 +01:00
uterror.c
uteval.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utexcep.c
utglobal.c ACPI updates for 6.4-rc1 2023-04-25 18:37:41 -07:00
uthex.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utids.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utinit.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utlock.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utmath.c
utmisc.c
utmutex.c
utnonansi.c
utobject.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utosi.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utownerid.c
utpredef.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utprint.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utresdecode.c ACPICA: add support for ClockInput resource (v6.5) 2023-04-06 20:29:11 +02:00
utresrc.c ACPICA: Avoid undefined behavior: member access within misaligned address 2023-04-06 20:29:11 +02:00
utstate.c
utstring.c ACPICA: Improve warning message for "invalid ACPI name" 2022-10-28 17:28:23 +02:00
utstrsuppt.c ACPICA: add type casts for string functions 2021-01-22 15:51:53 +01:00
utstrtoul64.c
uttrack.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utuuid.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utxface.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utxferror.c
utxfinit.c ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
utxfmutex.c