HomeFreeBSD

Fix a use-after-free in the riscv pmap_release() implementation.

Description

Fix a use-after-free in the riscv pmap_release() implementation.

Don't bother zeroing the top-level page before freeing it. Previously,
the page was freed before being zeroed.

Reviewed by: jhb, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18720

Details

Provenance
markjAuthored on
Reviewer
jhb
Differential Revision
D18720: Fix a use-after-free in pmap_release().
Parents
rS342735: Synchronize access to the allpmaps list.
Branches
Unknown
Tags
Unknown