Re: [PATCH] RDMA/nldev: add mutual exclusion in nldev_dellink()

From
Jason Gunthorpe <jgg@ziepe.ca>
Date
2026-05-13 23:46:57
Also in
linux-rdma, lkml
Reply to
Leon Romanovsky, 2026-05-13
On Wed, May 13, 2026 at 02:17:28PM -0400, Leon Romanovsky wrote:
On Thu, 07 May 2026 20:50:10 +0800, Edward Adam Davis wrote:
quoted
We must serialize calls to nldev_dellink() or risk a crash as syzbot
reported:

Call Trace:
 udp_tunnel_sock_release+0x6d/0x80 net/ipv4/udp_tunnel_core.c:197
 rxe_release_udp_tunnel drivers/infiniband/sw/rxe/rxe_net.c:294 [inline]
 rxe_sock_put drivers/infiniband/sw/rxe/rxe_net.c:639 [inline]
 rxe_net_del+0xfb/0x290 drivers/infiniband/sw/rxe/rxe_net.c:660
 rxe_dellink+0x15/0x20 drivers/infiniband/sw/rxe/rxe.c:254

[...]
Applied, thanks!

[1/1] RDMA/nldev: add mutual exclusion in nldev_dellink()
      https://git.kernel.org/rdma/rdma/c/0b28000b64f40d
This seems like a rxe bug, I would have expected the lock to be inside
rxe to protect its racy implementation of rxe_net_del(), which looks
like it is possibly also triggered by NETDEV_UNREGISTER...

ie it should not change nldev_dellink().

Jason
Thread (32 messages) 32 messages, 10 authors, last reply 2026-05-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help