Page MenuHomeFreeBSD

mroute: fix race condition during mrouter shutting down
ClosedPublic

Authored by wma on Apr 23 2021, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 12:21 AM
Unknown Object (File)
Nov 21 2024, 5:43 PM
Unknown Object (File)
Nov 5 2024, 8:49 AM
Unknown Object (File)
Oct 25 2024, 3:44 AM
Unknown Object (File)
Oct 25 2024, 3:44 AM
Unknown Object (File)
Oct 25 2024, 3:44 AM
Unknown Object (File)
Oct 25 2024, 3:42 AM
Unknown Object (File)
Oct 23 2024, 5:38 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable