]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netlink: fix potential llentry lock leak in newneigh handler
authorR. Christian McDonald <rcm@rcm.sh>
Mon, 23 Oct 2023 11:23:55 +0000 (13:23 +0200)
committerKristof Provost <kp@FreeBSD.org>
Mon, 23 Oct 2023 14:24:51 +0000 (16:24 +0200)
commitae2ca32781a90abe987e128ca167ab400a87f369
treebfea52b322126cdcbeafbbf5cc2410a13c900559
parentc36b3dbc99d1e6dfc658e9c20382abc75749af82
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
sys/netlink/route/neigh.c