HomeFreeBSD

amd64: Use a larger boot stack

Description

amd64: Use a larger boot stack

With sanitizers enabled, it becomes possible to overflow the stack when
only a single page is used. Follow arm64's example and use the default
kernel stack size instead. This is a bit wasteful, but without a guard
page, overflow merely corrupts adjacent .bss entries and is thus
difficult to debug.

Note, with a GENERIC kernel we already consume over half of the
available boot stack space, see the review for an example.

Reviewed by: kib
Reported by: Jenkins
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41166

Details

Provenance
markjAuthored on Jul 24 2023, 10:47 PM
Reviewer
kib
Differential Revision
D41166: amd64: Use a larger boot stack
Parents
rG5b353925ff61: vnode read(2)/write(2): acquire rangelock regardless of do_vn_io_fault()
Branches
Unknown
Tags
Unknown