kernel_samsung_a53x/drivers/acpi/acpica
Raju Rangoju f5ce07c0c5 ACPICA: Revert "ACPICA: avoid Info: mapping multiple BARs. Your kernel is fine."
[ Upstream commit a83e1385b780d41307433ddbc86e3c528db031f0 ]

Undo the modifications made in commit d410ee5109a1 ("ACPICA: avoid
"Info: mapping multiple BARs. Your kernel is fine.""). The initial
purpose of this commit was to stop memory mappings for operation
regions from overlapping page boundaries, as it can trigger warnings
if different page attributes are present.

However, it was found that when this situation arises, mapping
continues until the boundary's end, but there is still an attempt to
read/write the entire length of the map, leading to a NULL pointer
deference. For example, if a four-byte mapping request is made but
only one byte is mapped because it hits the current page boundary's
end, a four-byte read/write attempt is still made, resulting in a NULL
pointer deference.

Instead, map the entire length, as the ACPI specification does not
mandate that it must be within the same page boundary. It is
permissible for it to be mapped across different regions.

Link: https://github.com/acpica/acpica/pull/954
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218849
Fixes: d410ee5109a1 ("ACPICA: avoid "Info: mapping multiple BARs. Your kernel is fine."")
Co-developed-by: Sanath S <Sanath.S@amd.com>
Signed-off-by: Sanath S <Sanath.S@amd.com>
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:09 +01:00
..
acapps.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
accommon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acconvert.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acdebug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acdispat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acevents.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acglobal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
achware.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acinterp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aclocal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acmacros.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acnamesp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acobject.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acopcode.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acparser.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acpredef.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acresrc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acstruct.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
actables.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acutils.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amlcode.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amlresrc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbcmds.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbconvert.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbdisply.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbexec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbfileio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbhistry.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbinput.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbmethod.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbnames.c ACPICA: debugger: check status of acpi_evaluate_object() in acpi_db_walk_for_fields() 2024-11-19 09:22:44 +01:00
dbobject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbstats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbtest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbxface.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsargs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dscontrol.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsdebug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsfield.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsinit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsmethod.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsmthdat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsobject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsopcode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dspkginit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dswexec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dswload.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dswload2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dswscope.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dswstate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evevent.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evglock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evgpe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evgpeblk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evgpeinit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evgpeutil.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evhandler.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evmisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evregion.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evrgnini.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evsci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evxface.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evxfevnt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evxfgpe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evxfregn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exconcat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exconfig.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exconvrt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
excreate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exdebug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exdump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exfield.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exfldio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exmisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exmutex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exnames.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exoparg1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exoparg2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exoparg3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exoparg6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exprep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exregion.c ACPICA: Revert "ACPICA: avoid Info: mapping multiple BARs. Your kernel is fine." 2024-11-19 14:19:09 +01:00
exresnte.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exresolv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exresop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exserial.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exstore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exstoren.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exstorob.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exsystem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
extrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwacpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwesleep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwgpe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwpci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwregs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwsleep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwtimer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwvalid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwxface.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwxfsleep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile ACPI: disable -Wstringop-truncation 2024-11-19 12:26:54 +01:00
nsaccess.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsalloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsarguments.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsconvert.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsdump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsdumpdv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nseval.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsinit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsload.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsnames.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsobject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsparse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nspredef.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsprepkg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsrepair.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsrepair2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nssearch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nswalk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsxfeval.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsxfname.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsxfobj.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psargs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psloop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psobject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psopcode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psopinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psparse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psscope.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pstree.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pswalk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psxface.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsaddr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rscalc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rscreate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsdump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsdumpinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsirq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rslist.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsmemory.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsmisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsserial.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsxface.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbdata.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbfadt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbfind.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbinstal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbprint.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbxface.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbxfload.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tbxfroot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utaddress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utalloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utascii.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utbuffer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utcache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utcopy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utdebug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utdecode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utdelete.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uterror.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uteval.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utexcep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utglobal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uthex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utids.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utinit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utlock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utmath.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utmisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utmutex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utnonansi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utobject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utosi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utownerid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utpredef.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utprint.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utresdecode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utresrc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utstate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utstring.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utstrsuppt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utstrtoul64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uttrack.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utuuid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utxface.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utxferror.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utxfinit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utxfmutex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00