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
Parents
rS366461: devfs.rules: unhide pf in vnet jails
Branches
Unknown
Tags
Unknown