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
F157149250: D10924.id28845.diff
Mon, May 18, 7:08 PM
F157148964: D10924.id28845.diff
Mon, May 18, 7:06 PM
F157094942: D10924.diff
Mon, May 18, 10:13 AM
F157094020: D10924.diff
Mon, May 18, 10:06 AM
Unknown Object (File)
Sun, May 17, 1:12 PM
Unknown Object (File)
Sun, May 17, 9:03 AM
Unknown Object (File)
Sat, May 16, 7:43 PM
Unknown Object (File)
Fri, May 15, 2:57 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