[Bug 269799] LOR between netinet/in.c:1703 and netlink_domain.c:169

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Feb 2023 07:20:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269799

            Bug ID: 269799
           Summary: LOR between netinet/in.c:1703 and netlink_domain.c:169
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: gbe@FreeBSD.org

While running the kyua test suite on a very recent -CURRENT, I see the
following LOR:

lock order reversal:
 1st 0xfffff8000a844290 lle (lle, rw) @ /boiler/nfs/src/sys/netinet/in.c:1703
 2nd 0xfffff80017073078 netlink lock (netlink lock, rm) @
/boiler/nfs/src/sys/netlink/netlink_domain.c:169
lock order lle -> netlink lock attempted at:
#0 0xffffffff8120853a at witness_checkorder+0x10da
#1 0xffffffff81145ad8 at _rm_rlock_debug+0x238
#2 0xffffffff81522233 at nl_send_group+0xa3
#3 0xffffffff8152bbcb at nlmsg_write_group_mbuf+0x9b
#4 0xffffffff8152a50a at nlmsg_flush+0xaa
#5 0xffffffff81530e03 at rtnl_lle_event+0x103
#6 0xffffffff81412b27 at arp_mark_lle_reachable+0x127
#7 0xffffffff81412722 at arp_check_update_lle+0x442
#8 0xffffffff81411851 at arpintr+0x1171
#9 0xffffffff813667d4 at netisr_dispatch_src+0x164
#10 0xffffffff81366d41 at netisr_dispatch+0x21
#11 0xffffffff81336d94 at ether_demux+0x284
#12 0xffffffff81339167 at ether_nh_input+0x687
#13 0xffffffff813667d4 at netisr_dispatch_src+0x164
#14 0xffffffff81366d41 at netisr_dispatch+0x21
#15 0xffffffff813373dc at ether_input+0xfc
#16 0xffffffff818531a1 at hn_chan_callback+0x14a1
#17 0xffffffff818671ac at vmbus_chan_task+0x5c

src.conf is the following
WITH_EXTRA_TCP_STACKS=1
WITH_BEARSSL=1
WITH_PIE=1
WITH_RETPOLINE=1
WITH_INIT_ALL_ZERO=1
WITH_OPENSSL_KTLS=1
WITHOUT_CLEAN=1

-- 
You are receiving this mail because:
You are the assignee for the bug.