HomeFreeBSD

amd64: Zero-fill AP PCPU pages

Description

amd64: Zero-fill AP PCPU pages

At least KMSAN relies on zero-initialization of AP PCPU regions, see
commit 4b136ef259ce.

Prior to commit af1c6d3f3013 these were allocated with allocpages() in
the amd64 pmap, which always returns zero-initialized memory.

Reviewed by: kib
Fixes: af1c6d3f3013 ("amd64: do not leak pcpu pages")
MFC after: 3 days
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D42241

Details

Provenance
markjAuthored on Oct 16 2023, 10:40 PM
Reviewer
rGaf1c6d3f3013: amd64: do not leak pcpu pages
Differential Revision
D42241: amd64: Zero-fill AP PCPU pages
Parents
rGb6c653c97463: kmsan: Set -fno-sanitize-memory-param-retval for now
Branches
Unknown
Tags
Unknown