[Bug 289017] [lagg] A time-of-check to time-of-use (TOCTOU) race exists in the Link Aggregation (LAGG) network subsystem

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 27 Aug 2025 16:37:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289017

--- Comment #1 from Zhenlei Huang <zlei@FreeBSD.org> ---
(In reply to Qiu-ji Chen from comment #0)
Thanks for the reporting !

I think that is a nice finding.

As for the fix, FreeBSD's net stack is moving towards to lockless fast path, so
probably the right fix should be flagging the interface down and waiting until
the fast paths finish their work and then changing the proto.

Do you have any test cases so that it will make it easier to repeat the issue
and verify the fix ?

-- 
You are receiving this mail because:
You are the assignee for the bug.