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
F81705281: D29946.diff
Sat, Apr 20, 5:51 AM
Unknown Object (File)
Fri, Apr 19, 8:07 AM
Unknown Object (File)
Fri, Apr 19, 12:58 AM
Unknown Object (File)
Thu, Apr 18, 1:39 PM
Unknown Object (File)
Mar 7 2024, 4:27 PM
Unknown Object (File)
Feb 16 2024, 8:15 AM
Unknown Object (File)
Feb 16 2024, 8:09 AM
Unknown Object (File)
Feb 16 2024, 8:09 AM
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 Skipped
Unit
Tests Skipped