[Bug 272403] panic: vm_page_assert_xbusied: page 0xfffffe0016a13728 busy_lock 0xfffffffe not owned by me @ /usr/src/sys/vm/vm_page.c:1183

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Jul 2023 02:43:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272403

Graham Perrin <grahamperrin@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
           Keywords|                            |crash
                URL|                            |https://github.com/freebsd/
                   |                            |freebsd-src/blob/97f14168f2
                   |                            |1f7d618c413946b83a2a6adfc65
                   |                            |27a/sys/vm/vm_page.c#L1183

--- Comment #1 from Graham Perrin <grahamperrin@freebsd.org> ---
> … main-n263900-cd9da8d072e4-dirty … 

That is, <https://cgit.freebsd.org/src/log/?qt=range&q=cd9da8d072e4>, and the
dirt (if relevant) is <https://reviews.freebsd.org/D40045> (⚙ D40045 ule: queue
partial slice users on tdq_realtime and enable more preemption). 

----

> … /usr/src/sys/vm/vm_page.c:1183

<https://github.com/freebsd/freebsd-src/commit/c7aebda8a14a3bb94bb038df338549ccde5b56ea>
(2013-08-09), 

>> The soft and hard busy mechanism rely on the vm object lock to work.

----

From core.txt.8 (attached, comment 0): 

…

Unread portion of the kernel message buffer:
<118>Jul  6 15:54:44 mowa219-gjp4-8570p-freebsd syslogd: exiting on signal 15
<6>wlan0: link state changed to DOWN
panic: vm_page_assert_xbusied: page 0xfffffe0016a13728 busy_lock 0xfffffffe not
owned by me @ /usr/src/sys/vm/vm_page.c:1183
cpuid = 3
time = 1688655285
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00fe88aba0
vpanic() at vpanic+0x150/frame 0xfffffe00fe88abf0
panic() at panic+0x43/frame 0xfffffe00fe88ac50
vm_page_xunbusy_hard_unchecked() at vm_page_xunbusy_hard_unchecked/frame
0xfffffe00fe88ac60
swapoff_one() at swapoff_one+0x3db/frame 0xfffffe00fe88ad00
kern_swapoff() at kern_swapoff+0x1bc/frame 0xfffffe00fe88ae00
amd64_syscall() at amd64_syscall+0x139/frame 0xfffffe00fe88af30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00fe88af30
--- syscall (582, FreeBSD ELF64, swapoff), rip = 0xcd8e2e7868a, rsp =
0xcd8e061cde8, rbp = 0xcd8e061cf20 ---
KDB: enter: panic
Uptime: 21h27m11s
Dumping 1645 out of 16260 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59
59              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59
#1  doadump (textdump=textdump@entry=1)
    at /usr/src/sys/kern/kern_shutdown.c:407
#2  0xffffffff80b4b920 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:528
#3  0xffffffff80b4be3d in vpanic (
    fmt=0xffffffff8125cda4 "vm_page_assert_xbusied: page %p busy_lock %#x not
owned by me @ %s:%d", ap=ap@entry=0xfffffe00fe88ac30)
    at /usr/src/sys/kern/kern_shutdown.c:972
#4  0xffffffff80b4bbc3 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:896
#5  0xffffffff80ef8ff0 in vm_page_xunbusy_hard (m=<unavailable>)
    at /usr/src/sys/vm/vm_page.c:1183
#6  0xffffffff80ed0eeb in swap_pager_swapoff_object (sp=0xfffff8002ca6a300, 
    object=0xfffff80295092108) at /usr/src/sys/vm/swap_pager.c:1897
#7  swap_pager_swapoff (sp=0xfffff8002ca6a300)
    at /usr/src/sys/vm/swap_pager.c:1955
#8  swapoff_one (sp=sp@entry=0xfffff8002ca6a300, cred=<optimized out>, 
    flags=flags@entry=0) at /usr/src/sys/vm/swap_pager.c:2575
#9  0xffffffff80ed094c in kern_swapoff (td=0xfffffe0100b5be40, 
    name=<optimized out>, name_seg=UIO_USERSPACE, flags=0)
    at /usr/src/sys/vm/swap_pager.c:2507
#10 0xffffffff81047c19 in syscallenter (td=<optimized out>)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:190
#11 amd64_syscall (td=0xfffffe0100b5be40, traced=0)
    at /usr/src/sys/amd64/amd64/trap.c:1199
#12 <signal handler called>
#13 0x00000cd8e2e7868a in ?? ()
Backtrace stopped: Cannot access memory at address 0xcd8e061cde8
(kgdb) 

…

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