Page MenuHomeFreeBSD

arm64, riscv: size boot stacks appropriately
ClosedPublic

Authored by kevans on Sep 7 2022, 2:26 AM.
Tags
None
Referenced Files
F166907659: D36475.id110343.diff
Mon, Aug 17, 4:47 PM
F166888844: D36475.id110241.diff
Mon, Aug 17, 1:27 PM
Unknown Object (File)
Sun, Aug 16, 11:18 PM
Unknown Object (File)
Sun, Aug 16, 9:55 PM
Unknown Object (File)
Sun, Aug 16, 8:51 PM
Unknown Object (File)
Sun, Aug 16, 8:51 PM
Unknown Object (File)
Sun, Aug 16, 7:24 PM
Unknown Object (File)
Fri, Aug 14, 8:41 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