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, Jul 7, 8:17 AM
Unknown Object (File)
Mon, Jul 6, 10:43 AM
Unknown Object (File)
Mon, Jul 6, 3:11 AM
Unknown Object (File)
Sat, Jul 4, 6:37 AM
Unknown Object (File)
Mon, Jun 29, 7:03 AM
Unknown Object (File)
Mon, Jun 22, 11:15 PM
Unknown Object (File)
Jun 2 2026, 3:01 PM
Unknown Object (File)
May 24 2026, 11:35 PM
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