[Bug 273913] lock order reversal on ARMv7 with 15.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 18 Sep 2023 00:35:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273913

            Bug ID: 273913
           Summary: lock order reversal on ARMv7 with 15.0
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: crb@ChrisBowman.com

Sporadically getting the following:


lock order reversal:
 1st 0xc3311e3c tcphash (tcphash, sleep mutex) @
/tmp/src/sys/netinet/tcp_usrreq.c:1511
 2nd 0xc079f578 in6_ifaddr_lock (in6_ifaddr_lock, rm) @
/tmp/src/sys/netinet6/in6_src.c:303
lock order tcphash -> in6_ifaddr_lock attempted at:
#0 0xc02762e4 at witness_checkorder+0xb5c
#1 0xc01fbb9c at _rm_rlock_debug+0x164
#2 0xc03bc414 at in6_selectsrc+0x38c
#3 0xc03bc030 at in6_selectsrc_socket+0x40
#4 0xc03b9e2c at in6_pcbconnect+0x228
#5 0xc039e630 at tcp6_connect+0x9c
#6 0xc039c498 at tcp6_usr_connect+0x11c
#7 0xc02aaf70 at soconnectat+0xc8
#8 0xc02b1fb8 at kern_connectat+0xbc
#9 0xc02b1ee0 at sys_connect+0xac
#10 0xc051e150 at swi_handler+0x158
#11 0xc04feec8 at swi_exit+0

name -a:
FreeBSD artyz7.ChrisBowman.com 15.0-CURRENT FreeBSD 15.0-CURRENT #50
main-n265360-49874af3eca6-dirty: Sat Sep 16 12:46:24 PDT 2023    
crb@eclipse.ChrisBowman.com:/usr/obj/tmp/src/arm.armv7/sys/ARTYZ7 arm

This is a Xilinx Zynq based ARMv7 board.

Happy to help debug or provide any further information

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