HomeFreeBSD

Fix a potential page leak in mappedread_sf()

Description

Fix a potential page leak in mappedread_sf()

mappedread_sf() may allocate pages; if it fails to populate a page
can't free it, it needs to ensure that it's placed into a page queue,
otherwise it can't be reclaimed until the vnode is destroyed.

I think this is quite unlikely to happen in practice, it was noticed by
code inspection.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #16643

Details

Provenance
markjAuthored on Oct 13 2024, 4:13 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Wed, Nov 13, 3:24 PM
Parents
rG1c9a4c8cb44d: Fix user properties output for zpool list
Branches
Unknown
Tags
Unknown

Event Timeline