Re: [PATCH] firmware: arm_ffa: Compare notify_id when looking up notifier callbacks

From: Sudeep Holla

Date: Mon Oct 26 2026 - 06:44:08 EST


On Tue, 20 Oct 2026 15:09:01 -0700, David Cemin wrote:
> The notifier callbacks are kept in a hash table keyed by notification ID,
> but struct notifier_cb_info does not store the ID and none of the lookup
> helpers compare it. hash_for_each_possible() walks the whole bucket, so
> any two IDs that hash to the same bucket are treated as the same
> registration.
>
> With the 64-bucket table, hash_32() maps IDs 2 and 36 to the same
> bucket. A driver that requests notifications sequentially therefore
> fails at the 37th request:
>
> [...]

Applied to sudeep.holla/linux (for-next/ffa/fixes), thanks!

[1/1] firmware: arm_ffa: Compare notify_id when looking up notifier callbacks
https://git.kernel.org/sudeep.holla/c/8ab2e426762d
--
Regards,
Sudeep