Re: [PATCH] thermal: intel: int340x: Fix use-after-free in proc_thermal_pci

From: Fan Wu

Date: Tue Sep 29 2026 - 11:28:26 EST


Hi Rafael,

thanks for the pointer. I agree with all three High findings.

The v2 I am posting separately closes the remaining issues:

- it applies the final threshold interrupt mask after work cancellation
and thermal-zone unregister;
- it removes the power-floor and workload-hint sysfs control planes
before disabling their interrupt sources and freeing the IRQs, and
disables both workload-hint prediction bits; and
- it routes partial MSI setup failures through the same masked teardown
path instead of freeing requested IRQs inside setup_msi().

The workload-hint helper is shared with the legacy int340x driver, so
the reordering fixes the same teardown gap there too.

Srinivas, your Acked-by was for v1; a re-ack for v2 would be welcome.

Thanks!
Fan Wu