HomeFreeBSD

ip6: Add explicit lock order information to catch LOR

Description

ip6: Add explicit lock order information to catch LOR

Over the past several years, we have had sporadic reports of a lock
order reversal between the tcphash lock and the in6_ifaddr_lock.
These seems to be hard to reproduce reliably, and the WITNESS backtrace
points to code which uses the correct locking order.

This commit adds the correct lock order explicitly to help us detect
the call stack which uses the incorrect locking order.

PR: 289184
Reported by: bz, gbe
Reviewed by: bz, glebius
Differential Revision: https://reviews.freebsd.org/D54088

Details

Provenance
jtlAuthored on Dec 5 2025, 5:34 PM
Reviewer
bz
Differential Revision
D54088: ip6: Add explicit lock order information to catch boot-time LOR
Parents
rG6f4debc004c3: tcp: fix build with RSS
Branches
Unknown
Tags
Unknown