Re: [PATCH v3] RDMA/core: fix refcount bug in iwpm_get_nlmsg_request()
From: Leon Romanovsky
Date: Sun Sep 06 2026 - 05:16:28 EST
On Fri, 04 Sep 2026 18:44:37 +0530, Jeffin Philip wrote:
> iwpm_get_nlmsg_request() initializes refcount _after_ list_add_tail()
> making it accessible to global list where another CPU can kref_get()
> on nlmsg_request causing a refcount "addition on 0" bug. Fix this
> by initializing kref _before_ list_add_tail() so refcount for
> nlmsg_request can be incremented/decremented normally. In addition,
> also initialize every field before list_add_tail().
>
> [...]
Applied, thanks!
[1/1] RDMA/core: fix refcount bug in iwpm_get_nlmsg_request()
https://git.kernel.org/rdma/rdma/c/33fb59da49c4c3
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>