[Bug 276191] fusefs: panic Assertion prev_offset < next_offset

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 08 Jan 2024 01:03:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276191

            Bug ID: 276191
           Summary: fusefs: panic Assertion prev_offset < next_offset
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

I can reliably and instantly trigger this panic with fusefs using a test that
mixes mmap writes, fspacectl, and normal reads.

panic: Assertion prev_offset < next_offset failed at
/usr/home/somers/src/freebsd.org/src/sys/vm/vnode_pager.c:1472
cpuid = 2
time = 1704675343
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe010e0145f0
vpanic() at vpanic+0x131/frame 0xfffffe010e014720
panic() at panic+0x43/frame 0xfffffe010e014780
vnode_pager_generic_putpages() at vnode_pager_generic_putpages+0xb0e/frame
0xfffffe010e014850
vnode_pager_putpages() at vnode_pager_putpages+0x80/frame 0xfffffe010e0148c0
vm_pageout_flush() at vm_pageout_flush+0xf3/frame 0xfffffe010e0149c0
vm_object_page_collect_flush() at vm_object_page_collect_flush+0x2ad/frame
0xfffffe010e014b30
vm_object_page_clean() at vm_object_page_clean+0x195/frame 0xfffffe010e014b90
vinactivef() at vinactivef+0x92/frame 0xfffffe010e014bd0
vput_final() at vput_final+0x2aa/frame 0xfffffe010e014c20
vn_close1() at vn_close1+0x12c/frame 0xfffffe010e014c90
vn_closefile() at vn_closefile+0x3f/frame 0xfffffe010e014d10
_fdrop() at _fdrop+0x1b/frame 0xfffffe010e014d30
closef() at closef+0x1e3/frame 0xfffffe010e014dc0
closefp_impl() at closefp_impl+0x76/frame 0xfffffe010e014e00
amd64_syscall() at amd64_syscall+0x153/frame 0xfffffe010e014f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe010e014f30
--- syscall (6, FreeBSD ELF64, close), rip = 0x3c5477232d9a, rsp =
0x3c5470633328, rbp = 0x3c5470633340 ---
KDB: enter: panic

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