Re: [PATCH net v5 00/14] net: pse-pd: assorted lifetime and error-path fixes

From: patchwork-bot+netdevbpf

Date: Thu Nov 26 2026 - 06:40:19 EST


Hello:

This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Wed, 18 Nov 2026 19:39:43 +0100 you wrote:
> Fixes for the PSE core and the pd692x0 driver, found while working on
> the PSE controller teardown. Most of them are about what happens when a
> controller unbinds or fails to register.
>
> 1 The kfifo is too small: podl-pse-regulator and any controller with
> 0 or 1 lines cannot register.
> 2 Removes two checks that can never be true. Not a fix; it makes 3
> smaller.
> 3 A module reference leaks when reading the port state fails.
> 4 A failed IRQ request stays in pcdev->irq, so unregister disables a
> line another device may own.
> 5 The notification worker can read a PHY that was already freed.
> 6 Setting a power limit checks the PI state without the lock.
> 7 A power domain shared by two controllers is freed when the one that
> created it unbinds, or when registration fails part way.
> 8 Unregister frees the PI array before it stops the IRQ handler and
> the notification worker. The worker can also be queued again
> during unregister.
> 9 Unregister frees the PI array while a lookup can still find the
> controller.
> 10 The PI regulator ops can run after the PI array is freed.
> 11 A failed registration leaks the kfifo.
> 12 A shared power domain's supply handle goes stale when the controller
> that created it unbinds.
> 13 pd692x0 leaks its manager power budget when probe fails.
> 14 pd692x0 crashes on a manager supply that is not resolved yet.
>
> [...]

Here is the summary with links:
- [net,v5,01/14] net: pse-pd: size the notification kfifo after defaulting nr_lines
https://git.kernel.org/netdev/net-next/c/374589c02b1f
- [net,v5,02/14] net: pse-pd: remove dead pi_get_admin_state() checks
https://git.kernel.org/netdev/net-next/c/3bbb278ccc73
- [net,v5,03/14] net: pse-pd: fix module refcount leak in pse_control_get_internal()
https://git.kernel.org/netdev/net-next/c/d1e25868c63b
- [net,v5,04/14] net: pse-pd: do not keep a failed IRQ in pcdev->irq
https://git.kernel.org/netdev/net-next/c/d4917898edb1
- [net,v5,05/14] net: pse-pd: do not reach a freed PHY from the notification worker
https://git.kernel.org/netdev/net-next/c/788ab871cce2
- [net,v5,06/14] net: pse-pd: check the PI state under the lock when setting a power limit
https://git.kernel.org/netdev/net-next/c/dd81d889a87a
- [net,v5,07/14] net: pse-pd: do not tie a shared power domain to its creator's devres
https://git.kernel.org/netdev/net-next/c/7bb86f016211
- [net,v5,08/14] net: pse-pd: stop async event sources before freeing PI data in unregister
https://git.kernel.org/netdev/net-next/c/bab065ee89bb
- [net,v5,09/14] net: pse-pd: unregister from the controller list before freeing PI data
https://git.kernel.org/netdev/net-next/c/89015cdd7920
- [net,v5,10/14] net: pse-pd: keep the PI data until the PI regulators are gone
https://git.kernel.org/netdev/net-next/c/83683cb6ae01
- [net,v5,11/14] net: pse-pd: free the notification kfifo when registration fails
https://git.kernel.org/netdev/net-next/c/0cfc9d478abe
- [net,v5,12/14] net: pse-pd: use each PI's own supply handle for the power budget
https://git.kernel.org/netdev/net-next/c/7abc960054eb
- [net,v5,13/14] net: pse-pd: pd692x0: release the manager power budget through devres
https://git.kernel.org/netdev/net-next/c/758dcea92de2
- [net,v5,14/14] net: pse-pd: pd692x0: defer probe while a manager supply is unresolved
https://git.kernel.org/netdev/net-next/c/9e83fadf3887

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html