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.

Approved by: re (gjb)
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

(cherry picked from commit a37e484d049758c70f2d61be0d28a115b6f2f01e)
(cherry picked from commit 4533fa42ad912537a15d72068f2cfca46a465521)

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
rG315dd7f2e12a: ktrace: Handle uio_resid underflow via MSG_TRUNC
Branches
Unknown
Tags
Unknown