HomeFreeBSD

mroute: fix race condition during mrouter shutting down

Description

mroute: fix race condition during mrouter shutting down

There is a race condition between V_ip_mrouter de-init
and ip_mforward handling. It might happen that mrouted
is cleaned up after V_ip_mrouter check and before
processing packet in ip_mforward.
Use epoch call aproach, similar to IPSec which also handles
such case.

Reported by: Damien Deville
Obtained from: Stormshield
Reviewed by: mw
Differential Revision: https://reviews.freebsd.org/D29946

Details

Provenance
wmaAuthored on Apr 23 2021, 3:57 AM
Reviewer
mw
Differential Revision
D29946: mroute: fix race condition during mrouter shutting down
Parents
rG3cbad8287aa0: truss: Add missing underscore to compat_prefix for FreeBSD32
Branches
Unknown
Tags
Unknown