Page MenuHomeFreeBSD

arm64, riscv: size boot stacks appropriately
ClosedPublic

Authored by kevans on Sep 7 2022, 2:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 31, 10:05 AM
Unknown Object (File)
Dec 17 2025, 3:45 AM
Unknown Object (File)
Dec 12 2025, 7:26 AM
Unknown Object (File)
Dec 7 2025, 2:05 PM
Unknown Object (File)
Nov 25 2025, 8:29 PM
Unknown Object (File)
Nov 17 2025, 9:39 AM
Unknown Object (File)
Nov 15 2025, 2:42 PM
Unknown Object (File)
Nov 11 2025, 10:19 PM
Subscribers

Details

Summary

In 8db2e8fd16c4 ("Remove the secondary_stacks array in arm64 [...]"),
bootstacks was setup to be allocated dynamically. While this is
generally how x86 does it, it inadvertently shrunk each boot stack from
KSTACK_PAGES pages to a single page.

Resize these back up to the expected size using the kstack_pages
tunable, as we'll need larger stacks with upcoming sanitizer work.

Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Fixes: 8db2e8fd16c4 ("Remove the secondary_stacks array [...]")

Diff Detail

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