Page MenuHomeFreeBSD

Use locking around version flag updates when handling IN6P_IPV6_V6ONLY.
ClosedPublic

Authored by markj on Tue, Oct 1, 11:26 PM.

Details

Summary

I am tracking down a race in this area and noticed this bug. There are
places where we do unlocked reads of the flags, but it is certainly
incorrect to update them without a lock on the PCB.

While here, simplify a comment.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

markj created this revision.Tue, Oct 1, 11:26 PM
This revision was not accepted when it landed; it landed in state Needs Review.Mon, Oct 7, 11:35 PM
This revision was automatically updated to reflect the committed changes.