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)
Tue, Nov 25, 8:29 PM
Unknown Object (File)
Mon, Nov 17, 9:39 AM
Unknown Object (File)
Sat, Nov 15, 2:42 PM
Unknown Object (File)
Tue, Nov 11, 10:19 PM
Unknown Object (File)
Tue, Nov 11, 8:23 PM
Unknown Object (File)
Mon, Nov 10, 7:11 AM
Unknown Object (File)
Wed, Oct 29, 7:59 PM
Unknown Object (File)
Wed, Oct 29, 5:48 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 Passed
Unit
No Test Coverage
Build Status
Buildable 47275
Build 44162: arc lint + arc unit