[Bug 261707] panic: vm_page_free_prep: freeing mapped page 0xfffffe0006f80170 on 14-Current(master-n252892-e30fceb89b7)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 10 Feb 2022 11:09:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261707

Tijl Coosemans <tijl@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |261773
                 CC|                            |kib@FreeBSD.org,
                   |                            |markj@FreeBSD.org,
                   |                            |tijl@FreeBSD.org

--- Comment #2 from Tijl Coosemans <tijl@FreeBSD.org> ---
Probably caused by base 3de96d664aaa.  You can try the following hack which
essentially reverts that commit.  In bug 261773 it is also visible as corrupted
icons in Firefox.  There must be non-anonymous swap objects with ref_count == 1
and active mappings.

--- sys/vm/vm_pageout.c
+++ sys/vm/vm_pageout.c
@@ -732,8 +732,8 @@ vm_pageout_clean(vm_page_t m, int *numpagedout)
 static bool
 vm_pageout_object_act(vm_object_t object)
 {
-       return (object->ref_count >
-           ((object->flags & (OBJ_SWAP | OBJ_ANON)) == OBJ_SWAP ? 1 : 0));
+       return (object->ref_count > 0);
+//         ((object->flags & (OBJ_SWAP | OBJ_ANON)) == OBJ_SWAP ? 1 : 0));
 }

 static int


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261773
[Bug 261773] graphics/drm-fbsd13-kmod: Instability and artifacts after
5.4.144.g20220128 update (Intel GM45)
-- 
You are receiving this mail because:
You are the assignee for the bug.