[Bug 273610] Panic (vm_page_assert_xbusied: page 0xfffffe0001beaed8 busy_lock 0xfffffffe not owned by me)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 07 Sep 2023 06:07:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273610

            Bug ID: 273610
           Summary: Panic (vm_page_assert_xbusied: page 0xfffffe0001beaed8
                    busy_lock 0xfffffffe not owned by me)
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
               URL: https://github.com/freebsd/freebsd-src/blob/07bc20e474
                    0d09f554c3787bb1940fc503300822/sys/vm/vm_page.c#L1173-
                    L1183
                OS: Any
            Status: New
          Keywords: crash
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: grahamperrin@gmail.com

Dump header from device: /dev/ada0p2
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 1684303872
  Blocksize: 512
  Compression: none
  Dumptime: 2023-09-06 18:47:12 +0100
  Hostname: mowa219-gjp4-8570p-freebsd
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 15.0-CURRENT amd64 1500000 #10
main-n265135-07bc20e4740d-dirty: Sat Sep  2 17:36:59 BST 2023
   
grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
  Panic String: 
  Dump Parity: 1722260791vm_page_assert_xbusied: page 0xfffffe0001beaed8
busy_lock 0xfffffffe not owned by me @ /usr/src/sys/vm/vm_page.c:1181
  Bounds: 1
  Dump Status: good

----

% bectl list -c creation | tail -n 4
n265053-315ee00fa961-d -      -          74.4M 2023-09-02 07:52
n265135-07bc20e4740d-a -      -          139M  2023-09-02 20:12
n265135-07bc20e4740d-b -      -          211M  2023-09-05 19:49
n265135-07bc20e4740d-c NR     /          468G  2023-09-06 18:33
% 

----

Before the panic: with n265135-07bc20e4740d-b running, I created then mounted
n265135-07bc20e4740d-c, upgraded its packages, unmounted then activated the
environment, then restarted the OS. 

If I recall correctly: the panic occurred very close to the end of the shutdown
routine.

----

sysutils/panicmail

panicmail.1 and panicmail.1.enc exist at /var/crash but not yet in my Gmail
Inbox.

----

Unread portion of the kernel message buffer:
panic: vm_page_assert_xbusied: page 0xfffffe0001beaed8 busy_lock 0xfffffffe not
owned by me @ /usr/src/sys/vm/vm_page.c:1181
cpuid = 3
time = 1694022432
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0106209ac0
vpanic() at vpanic+0x132/frame 0xfffffe0106209bf0
panic() at panic+0x43/frame 0xfffffe0106209c50
vm_page_xunbusy_hard_unchecked() at vm_page_xunbusy_hard_unchecked/frame
0xfffffe0106209c60
swapoff_one() at swapoff_one+0x3db/frame 0xfffffe0106209d00
kern_swapoff() at kern_swapoff+0x1bc/frame 0xfffffe0106209e00
amd64_syscall() at amd64_syscall+0x138/frame 0xfffffe0106209f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0106209f30
--- syscall (582, FreeBSD ELF64, swapoff), rip = 0x1aab74d9745a, rsp =
0x1aab73279628, rbp = 0x1aab73279760 ---
KDB: enter: panic
Uptime: 14h51m24s
Dumping 1606 out of 16244 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
57              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=textdump@entry=1)
    at /usr/src/sys/kern/kern_shutdown.c:405
#2  0xffffffff80b57f60 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:526
#3  0xffffffff80b5845f in vpanic (
    fmt=0xffffffff8127f6c1 "vm_page_assert_xbusied: page %p busy_lock %#x not
owned by me @ %s:%d", ap=ap@entry=0xfffffe0106209c30)
    at /usr/src/sys/kern/kern_shutdown.c:970
#4  0xffffffff80b58203 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:894
#5  0xffffffff80f0d680 in vm_page_xunbusy_hard (m=<unavailable>)
    at /usr/src/sys/vm/vm_page.c:1181
#6  0xffffffff80ee4f9b in swap_pager_swapoff_object (sp=0xfffff8015fb30980, 
    object=0xfffff8002ffd6420) at /usr/src/sys/vm/swap_pager.c:1895
#7  swap_pager_swapoff (sp=0xfffff8015fb30980)
    at /usr/src/sys/vm/swap_pager.c:1953
#8  swapoff_one (sp=sp@entry=0xfffff8015fb30980, cred=<optimized out>, 
    flags=flags@entry=0) at /usr/src/sys/vm/swap_pager.c:2573
#9  0xffffffff80ee49fc in kern_swapoff (td=0xfffffe01031cf020, 
    name=<optimized out>, name_seg=UIO_USERSPACE, flags=0)
    at /usr/src/sys/vm/swap_pager.c:2505
#10 0xffffffff8105e748 in syscallenter (td=<optimized out>)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:187
#11 amd64_syscall (td=0xfffffe01031cf020, traced=0)
    at /usr/src/sys/amd64/amd64/trap.c:1197
#12 <signal handler called>
#13 0x00001aab74d9745a in ?? ()
Backtrace stopped: Cannot access memory at address 0x1aab73279628
(kgdb) 

------------------------------------------------------------------------
ps -axlww

…

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