Aleksandr Mishin
52a1c2242e
acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block()
...
[ Upstream commit 1a9de2f6fda69d5f105dd8af776856a66abdaa64 ]
In case of error in gtdt_parse_timer_block() invalid 'gtdt_frame'
will be used in 'do {} while (i-- >= 0 && gtdt_frame--);' statement block
because do{} block will be executed even if 'i == 0'.
Adjust error handling procedure by replacing 'i-- >= 0' with 'i-- > 0'.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: a712c3ed9b ("acpi/arm64: Add memory-mapped timer support in GTDT driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Aleksandr Mishin <amishin@t-argos.ru>
Link: https://lore.kernel.org/r/20240827101239.22020-1-amishin@t-argos.ru
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:44:22 +01:00
..
acpica
ACPICA: iasl: handle empty connection_node
2024-11-08 16:20:37 +01:00
apei
ACPI: APEI: Better fix to avoid spamming the console with old error logs
2022-08-11 12:57:51 +02:00
arm64
acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block()
2024-12-14 19:44:22 +01:00
dptf
hmat
nfit
ACPI: NFIT: fix a potential deadlock during NFIT teardown
2023-03-03 11:41:47 +01:00
pmic
ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()
2024-11-08 16:20:26 +01:00
x86
ac.c
acpi_adxl.c
acpi_amba.c
acpi_apd.c
acpi_cmos_rtc.c
acpi_configfs.c
acpi_dbg.c
acpi_extlog.c
ACPI: extlog: fix NULL pointer dereference check
2024-02-23 08:24:54 +01:00
acpi_ipmi.c
acpi_lpat.c
acpi_lpit.c
ACPI: LPIT: Avoid u32 multiplication overflow
2024-01-25 14:34:22 -08:00
acpi_lpss.c
ACPI: LPSS: Fix missing check in register_device_clock()
2022-08-25 11:17:31 +02:00
acpi_memhotplug.c
acpi_pad.c
treewide: Remove uninitialized_var() usage
2023-06-09 10:29:01 +02:00
acpi_platform.c
acpi_pnp.c
acpi_processor.c
ACPI: processor: Fix memory leaks in error paths of processor_add()
2024-09-12 11:03:56 +02:00
acpi_tad.c
acpi_video.c
ACPI: video: Add quirk for the Colorful X15 AT 23 Laptop
2024-02-23 08:24:54 +01:00
acpi_watchdog.c
battery.c
ACPI: battery: Fix possible crash when unregistering a battery hook
2024-11-08 16:20:43 +01:00
bgrt.c
blacklist.c
bus.c
button.c
ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue
2024-11-08 16:20:51 +01:00
cm_sbs.c
container.c
cppc_acpi.c
ACPI: CPPC: Do not prevent CPPC from working in the future
2022-08-25 11:18:15 +02:00
custom_method.c
debugfs.c
device_pm.c
device_sysfs.c
ACPI: sysfs: validate return type of _STR method
2024-11-08 16:20:34 +01:00
dock.c
ec.c
ACPI: EC: Do not release locks during operation region accesses
2024-11-08 16:20:37 +01:00
ec_sys.c
event.c
evged.c
fan.c
glue.c
hed.c
internal.h
ioapic.c
irq.c
ACPI: irq: Fix incorrect return value in acpi_register_gsi()
2023-10-25 11:53:24 +02:00
Kconfig
Makefile
numa.c
nvs.c
osi.c
osl.c
pci_irq.c
pci_link.c
pci_mcfg.c
PCI/ACPI: Guard ARM64-specific mcfg_quirks
2022-08-25 11:18:34 +02:00
pci_root.c
pci_slot.c
power.c
pptt.c
proc.c
processor_core.c
processor_driver.c
processor_idle.c
ACPI: processor_idle: Fix invalid comparison with insertion sort for latency
2024-07-27 10:38:32 +02:00
processor_pdc.c
processor_perflib.c
ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily
2023-08-11 11:53:53 +02:00
processor_thermal.c
ACPI: processor: Remove freq Qos request for all CPUs
2022-09-05 10:27:44 +02:00
processor_throttling.c
property.c
acpi: property: Let args be NULL in __acpi_node_get_property_reference
2024-01-25 14:34:31 -08:00
reboot.c
resource.c
ACPI: resource: Add LG 16T90SP to irq1_level_low_skip_override[]
2024-11-08 16:20:51 +01:00
sbs.c
ACPI: SBS: manage alarm sysfs attribute through psy core
2024-08-19 05:33:47 +02:00
sbshc.c
sbshc.h
scan.c
ACPI: scan: Fix device check notification handling
2024-03-26 18:22:16 -04:00
sleep.c
Revert "ACPI: PM: Block ASUS B1400CEAE from suspend to idle by default"
2024-04-13 12:51:38 +02:00
sleep.h
spcr.c
sysfs.c
tables.c
thermal.c
ACPI: thermal: drop an always true check
2023-06-09 10:29:01 +02:00
utils.c
video_detect.c
ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470
2023-09-23 11:00:03 +02:00
wakeup.c