]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enter epoch when addding IPv4 multicast forwarding cache entry
authorMike Karels <karels@FreeBSD.org>
Mon, 21 Mar 2022 14:50:08 +0000 (09:50 -0500)
committerMike Karels <karels@FreeBSD.org>
Tue, 22 Mar 2022 12:28:57 +0000 (07:28 -0500)
commit2cf1e120c654df5d02b115dd8dc278dcfcb4a80d
tree94905003188491a8b4c5c4f2fdb2ca7d897883a2
parentfd6ca665d206b74970e7c01d06ae06fed71500fc
Enter epoch when addding IPv4 multicast forwarding cache entry

The code path from the IPv4 multicast setsockopt could call ip_output()
without entering an epoch.  Specifically, the MRT_ADD_MFC setbsocopt
would call add_mfc(), which in turn called ip_mdq() to send queued
packets.  This resulted in an epoch assert failure in ip_output().
Enter an epoch in add_mfc(), and add some epoch asserts to check
for similar failures.

Reviewed by: kp, bz, wma, cy
Differential Revision: https://reviews.freebsd.org/D34624
sys/netinet/ip_mroute.c