This review contains seven commits addressing two sleep-context
violations in IPv6 Router Advertisement (RA) processing.
Commit b8a6e03fac9 widened network epoch coverage to include
Ethernet input. SLAAC address creation could then invoke IPv6
address event handlers inside the network epoch. These handlers
may sleep, for example when PF refreshes a dynamic interface
address table. Commit 6feb16b77e7 made WITNESS_WARN() report
active sleep inhibitors, exposing the issue reported in PR 294184.
Patches 1-4 defer address event delivery to a taskqueue thread and
make removal notifications consistent across address expiry,
explicit deletion, tun/tap close, and prefix flush. Patches 5-6
protect the notification queue during interface detach and VNET
migration and serialize prefix unlink between explicit removal and
the ND timer.
Patch 7 moves RA-driven SLAAC address updates and creation to a
sleepable worker. Multicast group joins therefore run outside the
receive context, while the existing order of group joins and
Duplicate Address Detection (DAD) is preserved. This addresses
the in6_multi_sx acquisition path reported in PR 253888.
Bug reports
- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294184
- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253888
Related reviews