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)
Mon, May 13, 3:11 AM
Unknown Object (File)
Sun, May 12, 8:45 PM
Unknown Object (File)
Fri, May 10, 9:08 PM
Unknown Object (File)
Fri, May 3, 8:18 PM
Unknown Object (File)
Sun, Apr 28, 12:49 PM
Unknown Object (File)
Apr 25 2024, 5:45 AM
Unknown Object (File)
Apr 22 2024, 10:49 PM
Unknown Object (File)
Apr 14 2024, 5:05 PM

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 Skipped
Unit
Tests Skipped