At 2026-12-02 12:29:41, "Zhongqiu Han" <[email protected]> wrote:
>This is a pre-existing UAF: work_fn(powernv_cpufreq_work_fn()) sends >throttle_check() via an async IPI (wait=0), which can run after >clean_chip_info() frees chips[]. d0a72efac89d added cancel_work_sync(), >but that does not wait for the IPI, so the fix is incomplete. > >It seems that this patch slightly widens it: a late IPI that races with >free_pstate_revmap() can now also touch a freed revmap entry. It might >make sense to fix the IPI issue first (maybe using wait=1, though that >needs to be checked) and put it before this patch. > >Please consider if we can fix it first (maybe using wait=1, need to >check) as patch 1/2 with this patch as 2/2. > Thanks for pointing this out. I'll take a look. Best Regards, Haoxiang Li
