[GIT PULL] ACPI fix for v6.3-rc5

From: Rafael J. Wysocki
Date: Fri Mar 31 2023 - 06:21:03 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
acpi-6.3-rc5

with top-most commit c56610a869bce03490faf4f157076370c71b8ae3

ACPI: bus: Rework system-level device notification handling

on top of commit 197b6b60ae7bc51dd0814953c562833143b292aa

Linux 6.3-rc4

to receive an ACPI fix for 6.3-rc5.

This fixes a recent regression related to the handling of ACPI
notifications that made it more likely for ACPI driver callbacks to be
invoked in an unexpected order and NULL pointers can be dereferenced as
a result or similar.

The fix is to modify the global ACPI notification handler so it does not
invoke driver callbacks at all and allow the device-level notification
handlers to receive "system" notifications (for the drivers that want to
receive them).

Thanks!


---------------

Rafael J. Wysocki (1):
ACPI: bus: Rework system-level device notification handling

---------------

drivers/acpi/bus.c | 83 ++++++++++++++++++++++++------------------------------
1 file changed, 37 insertions(+), 46 deletions(-)