Page MenuHomeFreeBSD

vm: Fix error handling in vm_thread_stack_back()
ClosedPublic

Authored by markj on Apr 29 2024, 11:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 7, 5:04 AM
Unknown Object (File)
Aug 19 2025, 12:16 AM
Unknown Object (File)
Aug 9 2025, 6:59 PM
Unknown Object (File)
Aug 2 2025, 3:22 AM
Unknown Object (File)
Jul 1 2025, 2:39 PM
Unknown Object (File)
Jun 30 2025, 3:35 AM
Unknown Object (File)
Jun 23 2025, 11:21 AM
Unknown Object (File)
Jun 22 2025, 4:12 AM
Subscribers

Details

Summary

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
Fixes: 7a79d0669761 ("vm: improve kstack_object pindex calculation to avoid pindex holes")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/vm/vm_glue.c
635

This blank line is not needed.

This revision is now accepted and ready to land.Apr 30 2024, 12:19 AM