Re: [PATCH net] dpll: use exact lookup for reference sync pin id

From: patchwork-bot+netdevbpf

Date: Mon Sep 21 2026 - 20:31:39 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 17 Sep 2026 16:37:36 +0200 you wrote:
> dpll_pin_ref_sync_state_set() looks up the reference sync pin in the
> pin->ref_sync_pins xarray, which is keyed by the sync pin's id (see
> dpll_pin_ref_sync_pair_add() using xa_insert() with ref_sync_pin->id).
> The pin id to operate on is supplied by userspace via DPLL_A_PIN_ID.
>
> The lookup however used xa_find() with a ULONG_MAX limit, which returns
> the first present entry with an index greater than or equal to the
> requested id, not the entry stored exactly at that id. If userspace
> passes an id that is not paired as a reference sync pin, but another
> pin with a higher id is present in the xarray, xa_find() silently
> returns that wrong pin and the subsequent ref_sync_set() operates on
> it. The request only fails when the given id is larger than every
> present key.
>
> [...]

Here is the summary with links:
- [net] dpll: use exact lookup for reference sync pin id
https://git.kernel.org/netdev/net/c/7cce782d8327

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