HomeFreeBSD

cache: fix pwd use-after-free in setting up fallback

Description

cache: fix pwd use-after-free in setting up fallback

Since the code exits smr section prior to calling pwd_hold, the used
pwd can be freed and a new one allocated with the same address, making
the comparison erroneously true.

Note it is very unlikely anyone ran into it.

Details

Provenance
mjgAuthored on Oct 5 2020, 7:38 PM
Parents
rG9e9be081d8a6: devfs.rules: unhide pf in vnet jails
Branches
Unknown
Tags
Unknown

Event Timeline