Re: [PATCH rdma-rc 0/3] RDMA: Prevent RCU callbacks from outliving modules
From: Leon Romanovsky
Date: Sun Jul 12 2026 - 04:40:00 EST
On Thu, 09 Jul 2026 12:06:46 +0300, Leon Romanovsky wrote:
> ib_core, mlx5_ib, and ib_ipoib use call_rcu() with callbacks implemented by
> their modules. Stopping callback producers does not drain callbacks already
> queued. If module unload completes first, RCU can later invoke code that has
> been unloaded. synchronize_rcu() and SRCU waits do not wait for queued
> callbacks.
>
> IPoIB reclamation completions are signaled from inside the callbacks, so
> they can wake teardown before a callback returns. Initialization unwind
> also needs protection because registration can attach existing devices and
> undo their setup on failure.
>
> [...]
Applied, thanks!
[1/3] RDMA/core: Wait for RCU callbacks before unloading ib_core
https://git.kernel.org/rdma/rdma/c/7d75592114d166
[2/3] RDMA/mlx5: Drain RCU callbacks during module teardown
https://git.kernel.org/rdma/rdma/c/e37cdd75f8d61c
[3/3] RDMA/ipoib: Drain RCU callbacks during module teardown
https://git.kernel.org/rdma/rdma/c/31b7c700670830
Best regards,
--
Leon Romanovsky <leonro@xxxxxxxxxx>