HomeFreeBSD

mld: fix epoch assertion

Description

mld: fix epoch assertion

in6ifa_ifpforlinklocal() asserts the net epoch. The test case from r354832
revealed code paths where we call into the function without having
acquired the net epoch first and consequently we hit the assert.
This happens in certain MLD states during VNET shutdown and most people
normaly not notice this.

For correctness acquire the net epoch around calls to
mld_v1_transmit_report() in all cases to avoid the assertion firing.

MFC after: 2 weeks
Sponsored by: Netflix

Details

Committed
bzNov 19 2019, 2:53 PM
Parents
rS354854: Don't sanitize linker_set
Branches
Unknown
Tags
Unknown