]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: add a work around for vp_crossmp bug to realpath
authorMateusz Guzik <mjg@FreeBSD.org>
Sat, 22 Aug 2020 06:56:04 +0000 (06:56 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Sat, 22 Aug 2020 06:56:04 +0000 (06:56 +0000)
commit760a430bb3c3b0a4637b0a1abe9554c52fc49695
treee5b9539857aa80510401b1c4fe494fb60125effe
parent71bba112f6db4a5c7dbc28917554a6667a528eab
vfs: add a work around for vp_crossmp bug to realpath

The actual bug is not yet addressed as it will get much easier after other
problems are addressed (most notably rename contract).

The only affected in-tree consumer is realpath. Everyone else happens to be
performing lookups within a mount point, having a side effect of ni_dvp being
set to mount point's root vnode in the worst case.

Reported by: pho
sys/kern/vfs_cache.c
sys/kern/vfs_lookup.c