Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2021 15:18:51 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        freebsd-net <freebsd-net@freebsd.org>
Subject:   rip6_output not in net epoch across call to ip6_setpktopts()
Message-ID:  <CAFMmRNziwec6GeuDvvhXzQE=z5boxXqT0pwDUu628dcYQWiKbQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Recently at work we saw a panic in ip6_setpktopt() while it's using an
ifnet returned by ifnet_byindex, here:

https://cgit.freebsd.org/src/tree/sys/netinet6/ip6_output.c#n2969

The issue seems to be that rip6_output() calls into ip6_setpktopts()
outside of the net epoch.  Should I just wrap the setpktopts call in a
net epoch enter/exit, or does anybody think that there's something
cleverer that should be done there?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNziwec6GeuDvvhXzQE=z5boxXqT0pwDUu628dcYQWiKbQ>