Page MenuHomeFreeBSD

Work around a race condition on interface move between vnets.
ClosedPublic

Authored by bz on Dec 12 2015, 12:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 29 2024, 8:54 PM
Unknown Object (File)
Apr 29 2024, 8:54 PM
Unknown Object (File)
Apr 29 2024, 8:52 PM
Unknown Object (File)
Apr 28 2024, 7:40 PM
Unknown Object (File)
Dec 20 2023, 1:34 AM
Unknown Object (File)
Aug 27 2023, 12:19 AM
Unknown Object (File)
Aug 1 2023, 3:49 AM
Unknown Object (File)
Jun 27 2023, 8:59 AM
Subscribers

Details

Summary

If vnets are torn down while ifconfig runs an ioctl to say,
destroy an epair(4), we may hit if_detach_internal() without
holding a lock and by the time we aquire it the interface might
be gone. We should not panic() in this case as it is our fault
for not holding the lock all the way. It is not ideal to
return silently without error to user space, but other callers
will all ignore the return values so do not change the entire
KPI for little benefit for now. The ifp will be dealt with one
way or another still.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz retitled this revision from to Work around a race condition on interface move between vnets..
bz updated this object.
bz edited the test plan for this revision. (Show Details)
bz added reviewers: gnn, emaste, rwatson.
gnn edited edge metadata.
This revision is now accepted and ready to land.Dec 15 2015, 3:37 PM
This revision was automatically updated to reflect the committed changes.