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
F176002223: D29946.id89018.diff
Thu, Oct 15, 5:09 AM
F175986970: D29946.diff
Thu, Oct 15, 1:35 AM
Unknown Object (File)
Sun, Oct 11, 1:21 AM
Unknown Object (File)
Sun, Oct 11, 12:28 AM
Unknown Object (File)
Fri, Oct 9, 4:08 PM
Unknown Object (File)
Fri, Oct 9, 4:08 PM
Unknown Object (File)
Fri, Oct 9, 3:43 PM
Unknown Object (File)
Sun, Oct 4, 11:37 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