Thread (38 messages) 38 messages, 10 authors, 5d ago

Re: [PATCH v1 02/17] ACPI: amba: Switch to use acpi_bus_get_primary_device()

From: Hanjun Guo <guohanjun@huawei.com>
Date: 2026-09-22 06:07:17
Also in: linux-acpi, linux-efi, linux-sound, lkml, platform-driver-x86

On 2026/9/22 3:46, Rafael J. Wysocki wrote:
From: "Rafael J. Wysocki" <redacted>

Replace acpi_get_first_physical_node() that is slated for removal
with acpi_bus_get_primary_device() that takes a reference to the
device it is about to return.

This addresses a potential use-after-free that may occur if the
device returned by acpi_get_first_physical_node() is removed right
after dropping its ACPI companion's physical_node_lock in that
function.

Signed-off-by: Rafael J. Wysocki <redacted>
---
  drivers/acpi/arm64/amba.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Acked-by: Hanjun Guo <guohanjun@huawei.com>

Thanks
Hanjun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help