HomeFreeBSD

netlink: fix potential llentry lock leak in newneigh handler

Description

netlink: fix potential llentry lock leak in newneigh handler

The netlink newneigh handler has the potential to leak the lock on
llentry objects in the kernel. This patch reconciles several paths
through the newneigh handler that could result in a lock leak.

MFC after: 1 week
Reviewed by: markj, kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D42307

(cherry picked from commit ae2ca32781a90abe987e128ca167ab400a87f369)

Details

Provenance
rcmAuthored on Oct 23 2023, 11:23 AM
kpCommitted on Nov 1 2023, 9:05 AM
Reviewer
markj
Differential Revision
D42307: netlink: fix potential llentry lock leak in newneigh handler
Parents
rG7523a37f68ec: Fix build with gcc12.
Branches
Unknown
Tags
Unknown