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.
Referenced Files
Unknown Object (File)
Sun, Oct 12, 2:53 PM
Unknown Object (File)
Thu, Oct 9, 4:54 PM
Unknown Object (File)
Thu, Oct 2, 5:41 AM
Unknown Object (File)
Wed, Oct 1, 9:59 PM
Unknown Object (File)
Wed, Oct 1, 5:15 PM
Unknown Object (File)
Tue, Sep 30, 9:59 AM
Unknown Object (File)
Tue, Sep 30, 3:41 AM
Unknown Object (File)
Mon, Sep 29, 2:36 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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable