[Bug 288895] panic: exclusive sleep mutex pfsync ... locked @ /usr/src/sys/netpfil/pf/if_pfsync.c:3014

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Aug 2025 03:01:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288895

            Bug ID: 288895
           Summary: panic: exclusive sleep mutex pfsync ... locked @
                    /usr/src/sys/netpfil/pf/if_pfsync.c:3014
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: ngie@FreeBSD.org

I'm not sure why this repros with arm64, but not amd64.

From https://ci.freebsd.org/job/FreeBSD-main-armv7-test/2013/ :

19:31:34 carp: demoted by 240 to 240 (pfsync bulk start)
19:31:34 lock order reversal: (sleepable after non-sleepable)
19:31:34  1st 0xe6d092e0 pfsync (pfsync, sleep mutex) @
/usr/src/sys/netpfil/pf/if_pfsync.c:3014
19:31:34  2nd 0xc0bda844 in6_multi_sx (in6_multi_sx, sx) @
/usr/src/sys/netinet6/in6_mcast.c:1217
19:31:34 lock order pfsync -> in6_multi_sx attempted at:
19:31:34 #0 0xc037b568 at witness_checkorder+0xbc8
19:31:34 #1 0xc030ba78 at _sx_xlock+0x80
19:31:34 #2 0xc04d1718 at in6_joingroup+0x3c
19:31:34 #3 0xe0238a54 at $a+0x6bc
19:31:34 #4 0xe0237c38 at $a+0x670
19:31:34 #5 0xc0440294 at ifioctl+0x78c
19:31:34 #6 0xc0381768 at kern_ioctl+0x36c
19:31:34 #7 0xc0381398 at sys_ioctl+0x128
19:31:34 #8 0xc0645608 at swi_handler+0x170
19:31:34 #9 0xc0624320 at swi_exit+0
19:31:34 Kernel page fault with the following non-sleepable locks held:
19:31:34 exclusive sleep mutex pfsync (pfsync) r = 0 (0xe6d092e0) locked @
/usr/src/sys/netpfil/pf/if_pfsync.c:3014
19:31:34 stack backtrace:
19:31:34 #0 0xc037ba24 at witness_debugger+0x78
19:31:34 #1 0xc037cce4 at witness_warn+0x428
19:31:34 #2 0xc0645d18 at abort_handler+0x1d4
19:31:34 #3 0xc062438c at exception_exit+0
19:31:34 #4 0xc04d9a5c at in6_selectsrc_addr+0x30
19:31:34 #5 0xe0238864 at $a+0x4cc
19:31:34 #6 0xe0237c38 at $a+0x670
19:31:34 #7 0xc0440294 at ifioctl+0x78c
19:31:34 #8 0xc0381768 at kern_ioctl+0x36c
19:31:34 #9 0xc0381398 at sys_ioctl+0x128
19:31:34 #10 0xc0645608 at swi_handler+0x170
19:31:34 #11 0xc0624320 at swi_exit+0
19:31:34 Fatal kernel mode data abort: 'Alignment Fault' on read
19:31:34 trapframe: 0xe007aa48
19:31:34 FSR=00000001, FAR=e6d092cd, spsr=60000013
19:31:34 r0 =00001c1c, r1 =e6d092cd, r2 =00000000, r3 =eab84400
19:31:34 r4 =00000000, r5 =e007aae8, r6 =00000000, r7 =00000000
19:31:34 r8 =c09a57c4, r9 =00000000, r10=e6d092f0, r11=e007ab18
19:31:34 r12=e007aaf0, ssp=e007aad8, slr=e0238864, pc =c04d9a5c
19:31:34 
19:31:34 panic: Fatal abort

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