]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm: Fix error handling in vm_thread_stack_back()
authorMark Johnston <markj@FreeBSD.org>
Mon, 29 Apr 2024 16:22:36 +0000 (12:22 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 30 Apr 2024 13:45:48 +0000 (09:45 -0400)
commit661a83f9bf9f6028c5617d413d59b7f0d9201abd
treeb63e3e17a21100fba9ecaeb04a64f0ab72fb735d
parent9b30b96c1fa4ee0dfc540878fbb3247bf92d19eb
vm: Fix error handling in vm_thread_stack_back()

vm_object_page_remove() wants to busy the page, but that won't work
here.  (Kernel stack pages are always busy.)

Make the error handling path look more like vm_thread_stack_dispose().

Reported by: pho
Reviewed by: kib, bnovkov
Fixes: 7a79d0669761 ("vm: improve kstack_object pindex calculation to avoid pindex holes")
Differential Revision: https://reviews.freebsd.org/D45019
sys/vm/vm_glue.c