/[base]
ViewVC logotype

Revision 346670


Jump to revision: Previous Next
Author: kevans
Date: Thu Apr 25 12:44:08 2019 UTC (5 years, 2 months ago)
Changed paths: 2
Log Message:
tun/tap: close race between destroy/ioctl handler

It seems that there should be a better way to handle this, but this seems to
be the more common approach and it should likely get replaced in all of the
places it happens... Basically, thread 1 is in the process of destroying the
tun/tap while thread 2 is executing one of the ioctls that requires the
tun/tap mutex and the mutex is destroyed before the ioctl handler can
acquire it.

This is only one of the races described/found in PR 233955.

PR:		233955
Reviewed by:	ae
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D20027


Changed paths

Path Details
Directoryhead/sys/net/if_tap.c modified , text changed
Directoryhead/sys/net/if_tun.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27