]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Need to wait for epoch callbacks to complete before detaching a
authorhselasky <hselasky@FreeBSD.org>
Fri, 28 Jun 2019 10:49:04 +0000 (10:49 +0000)
committerhselasky <hselasky@FreeBSD.org>
Fri, 28 Jun 2019 10:49:04 +0000 (10:49 +0000)
commit1af4fef104d537546b05fff74b2d5dad282bf620
tree6d9a4f29024ce1eab89306636cc94e3c136ff028
parent9586d860bbc0e7afa11499bd12d30f6444c12015
Need to wait for epoch callbacks to complete before detaching a
network interface.

This particularly manifests itself when an INP has multicast options
attached during a network interface detach. Then the IPv4 and IPv6
leave group call which results from freeing the multicast address, may
access a freed ifnet structure. These are the steps to reproduce:

service mdnsd onestart # installed from ports

ifconfig epair create
ifconfig epair0a 0/24 up
ifconfig epair0a destroy

Tested by: pho @
MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/net/if.c