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)
Oct 23 2024, 9:35 AM
Unknown Object (File)
Oct 16 2024, 10:43 PM
Unknown Object (File)
Sep 27 2024, 8:04 PM
Unknown Object (File)
Sep 24 2024, 6:58 PM
Unknown Object (File)
Sep 23 2024, 12:18 PM
Unknown Object (File)
Sep 22 2024, 4:26 PM
Unknown Object (File)
Sep 18 2024, 7:11 PM
Unknown Object (File)
Sep 18 2024, 6:17 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57456
Build 54344: arc lint + arc unit

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