Page MenuHomeFreeBSD

netlink: fix potential llentry lock leak in newneigh handler
ClosedPublic

Authored by rcm on Oct 19 2023, 6:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 9 2024, 1:50 AM
Unknown Object (File)
Dec 25 2023, 5:23 PM
Unknown Object (File)
Dec 20 2023, 6:57 AM
Unknown Object (File)
Dec 13 2023, 4:14 AM
Unknown Object (File)
Dec 12 2023, 7:39 AM
Unknown Object (File)
Dec 9 2023, 11:59 PM
Unknown Object (File)
Nov 11 2023, 2:27 PM
Unknown Object (File)
Oct 25 2023, 1:36 AM

Details

Summary

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

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rcm requested review of this revision.Oct 19 2023, 6:27 PM
markj added a subscriber: markj.
markj added inline comments.
sys/netlink/route/neigh.c
462

There's no need to set lle here since the next line is a return statement.

This revision is now accepted and ready to land.Oct 20 2023, 3:00 PM
sys/netlink/route/neigh.c
462

Ah yes thanks

rcm marked an inline comment as done.Oct 20 2023, 3:31 PM