Eric Joyner 1558015e3e iflib: call ether_ifdetach and netmap_detach before stop
From Jake:
Calling ether_ifdetach after iflib_stop leads to a potential race where
a stale ifp pointer can remain in the route entry list for IPv6 traffic.
This will potentially cause a page fault or other system instability if
the ifp pointer is accessed.

Move both iflib_netmap_detach and ether_ifdetach to be called prior to
iflib_stop. This avoids the race above, and helps ensure that other ifp
references are removed before stopping the interface.

Submitted by:	Jacob Keller <jacob.e.keller@intel.com>
Reviewed by:	erj@, gallatin@, jhb@
MFC after:	3 days
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D22071
2019-10-23 23:20:49 +00:00
..
2019-10-17 21:33:01 +00:00
2019-10-17 21:33:01 +00:00
2019-10-17 21:33:01 +00:00
2018-05-31 09:11:21 +00:00
2019-07-14 03:49:48 +00:00
2019-03-09 01:12:59 +00:00
2019-10-07 22:40:05 +00:00
2019-10-07 22:40:05 +00:00
2019-10-07 22:40:05 +00:00
2019-07-25 22:23:34 +00:00
2019-07-24 16:10:20 +00:00
2019-09-17 18:49:13 +00:00
2019-09-30 15:59:07 +00:00
2019-05-09 11:34:46 +00:00
2019-10-07 22:40:05 +00:00
2019-03-15 11:08:44 +00:00
2018-06-16 19:21:09 +00:00
2017-07-24 03:59:50 +00:00
2019-10-18 15:20:24 +00:00
2019-10-18 15:20:24 +00:00
2019-10-07 22:40:05 +00:00
2019-10-08 11:06:24 +00:00