[Bug 289184] lock order reversal between tcphash (tcp_usrreq.c:1529) and in6_ifaddr_lock (in6_src.c:301)

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289184

Jonathan T. Looney <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Jonathan T. Looney <[email protected]> ---
(In reply to Gordon Bergling from comment #0)
I can't reproduce that locally, but I think that lock order is correct.

Can you try running with the below patch? Hopefully, this will find the place
where the other lock order is used.

diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index a65c3ca128d9..047366679adb 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -566,6 +566,12 @@ static struct witness_order_list_entry order_lists[] = {
        { "tcp", &lock_class_mtx_sleep },
        { "so_snd", &lock_class_mtx_sleep },
        { NULL, NULL },
+       /*
+        * IPv6 Addr
+        */
+       { "tcphash", &lock_class_mtx_sleep },
+       { "in6_ifaddr_lock", &lock_class_rm },
+       { NULL, NULL },
        /*
         * BPF
         */

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.