]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cache: work around corner case of dvp == tvp in cache_fplookup_final_modifying
authorMateusz Guzik <mjg@FreeBSD.org>
Mon, 28 Dec 2020 21:24:53 +0000 (21:24 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Mon, 28 Dec 2020 21:38:20 +0000 (21:38 +0000)
commit0c09f4b0cc633750a3cbf724e8590ed9d4ef92e1
tree848770a85e1b04639b433a2781febaa149a9dc66
parent4f4111d2c5ab64591b9e15dab4257d8187458fd1
cache: work around corner case of dvp == tvp in cache_fplookup_final_modifying

Fixes a panic where the kernel would unlock an unheld lock coming from
rename looking up "foo/." as the source.

Reported by: markj (syzkaller)
sys/kern/vfs_cache.c