Page MenuHomeFreeBSD

ena: add locks before each ena_up and ena_down
ClosedPublic

Authored by mk_semihalf.com on May 26 2017, 10:45 AM.

Details

Summary

Lock only ena_up and ena_down calls in ioctl handler, instead of whole
ioctl. Locking ioctl with sx lock that is sleepable, is not allowed in
some cases, e.g. when multicast options are being changed.
Additional locking was added in detach function to prevent race condition
with ioctl function.

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

zbb accepted this revision.May 29 2017, 10:41 AM
This revision is now accepted and ready to land.May 29 2017, 10:41 AM
This revision was automatically updated to reflect the committed changes.