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)
Tue, Apr 30, 4:24 PM
Unknown Object (File)
Tue, Apr 30, 4:24 PM
Unknown Object (File)
Tue, Apr 30, 4:24 PM
Unknown Object (File)
Tue, Apr 30, 9:35 AM
Unknown Object (File)
Mon, Apr 29, 9:48 PM
Unknown Object (File)
Sat, Apr 27, 7:38 AM
Unknown Object (File)
Apr 9 2024, 1:50 AM
Unknown Object (File)
Dec 25 2023, 5:23 PM

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