git: 6f3e9bac4d46 - main - vm: Plug umtx shm object leak.

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Sat, 16 Dec 2023 13:19:07 UTC
The branch main has been updated by pjd:

URL: https://cgit.FreeBSD.org/src/commit/?id=6f3e9bac4d46d789af3e563f47681d0a020582ed

commit 6f3e9bac4d46d789af3e563f47681d0a020582ed
Author:     Pawel Jakub Dawidek <pjd@FreeBSD.org>
AuthorDate: 2023-12-16 00:33:29 +0000
Commit:     Pawel Jakub Dawidek <pjd@FreeBSD.org>
CommitDate: 2023-12-16 13:18:36 +0000

    vm: Plug umtx shm object leak.
    
    Reviewed by:    kib
    Approved by:    oshogbo
    MFC after:      1 week
    Sponsored by:   Fudo Security
    Differential Revision:  https://reviews.freebsd.org/D43073
---
 sys/vm/vm_object.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index b559c9d2cbab..c141b410edf2 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -1995,6 +1995,7 @@ vm_object_collapse(vm_object_t object)
 			    backing_object));
 			vm_object_pip_wakeup(backing_object);
 			(void)refcount_release(&backing_object->ref_count);
+			umtx_shm_object_terminated(backing_object);
 			vm_object_terminate(backing_object);
 			counter_u64_add(object_collapses, 1);
 			VM_OBJECT_WLOCK(object);