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)
Mon, May 25, 2:19 AM
Unknown Object (File)
Sun, May 24, 12:55 PM
Unknown Object (File)
Sat, May 16, 7:31 AM
Unknown Object (File)
Fri, May 15, 9:29 PM
Unknown Object (File)
Fri, May 15, 9:29 PM
Unknown Object (File)
Fri, May 15, 9:28 PM
Unknown Object (File)
Apr 30 2026, 5:14 AM
Unknown Object (File)
Apr 25 2026, 12:56 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 Not Applicable
Unit
Tests Not Applicable