[PATCH v14 1/4] phy: core: Fix use-after-free in phy_get paths

Bryan O'Donoghue bod at kernel.org
Fri Sep 4 02:41:15 PDT 2026


On 04/09/2026 08:45, Loic Poulain wrote:
>> -       mutex_lock(&phy_provider_mutex);
> Then, now we're moving the responsibility to the callers, maybe we should have:
>      lockdep_assert_held(&phy_provider_mutex)

An LLM suggested the same thing to me but, I thought the resulting patch 
"looked messy".

Do you want it added, its only three additional callsites.

---
bod



More information about the linux-phy mailing list