[PATCH 1/2] ACPI: processor: Disable unsafe manual bind/unbind
From: Christian Loehle
Date: Tue Nov 17 2026 - 04:16:30 EST
Manual unbind calls acpi_processor_stop() while the CPU is still online.
That breaks several users of processor state:
- acpi_idle frees its idle device but retains the per-CPU pointer and
power flag. Bind cannot restore it because the driver has no probe
callback; a second unbind accesses the freed device.
- processor_thermal unregisters its cooling device without resetting an
active cpufreq QoS limit. The limit survives the no-op bind.
- CPPC descriptors are released while cppc_cpufreq, amd_pstate's shared
memory backend or intel_pstate's base_frequency reader may use them.
Suppress manual bind/unbind. This also disables the driver core's
CONFIG_DEBUG_TEST_DRIVER_REMOVE remove/reprobe test, which exercises the
same unsafe teardown. CPU hotplug and physical CPU removal retain their
existing paths.
Fixes: 4f2f757351df ("CPPC: Probe for CPPC tables for each ACPI Processor object")
Fixes: c1385c1f0ba3 ("ACPI: processor: Simplify initial onlining to use same path for cold and hotplug")
Reported-by: Sashiko <sashiko-bot@xxxxxxxxxx>
Link: https://sashiko.dev/#/patchset/20260807111303.1062391-1-christian.loehle%40arm.com
Reported-by: Hanxiang Xu <xuhx@xxxxxxxxxxx>
Link: https://lore.kernel.org/all/610cc333.22ad9.1a1c5903a6b.Coremail.xuhx@xxxxxxxxxxx/
Signed-off-by: Christian Loehle <christian.loehle@xxxxxxx>
---
drivers/acpi/processor_driver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index bdd1529d79f0..59418b2e09b6 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
@@ -45,6 +45,7 @@ MODULE_DEVICE_TABLE(acpi, processor_device_ids);
static struct device_driver acpi_processor_driver = {
.name = "processor",
.bus = &cpu_subsys,
+ .suppress_bind_attrs = true,
.acpi_match_table = processor_device_ids,
.remove = acpi_processor_stop,
};
--
2.34.1