]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
unionfs: fix up VOP_UNLOCK use after flags stopped being supported
authormjg <mjg@FreeBSD.org>
Fri, 3 Jan 2020 22:12:25 +0000 (22:12 +0000)
committermjg <mjg@FreeBSD.org>
Fri, 3 Jan 2020 22:12:25 +0000 (22:12 +0000)
commit257c9f2c29cea8b8a4792db1b56f15692831bbac
tree38a5faa11e42a85bafd2bcedfa8c8ef8ceaa76a2
parentec3e856e95800af5f7d19bc2aefdcae149bcceb7
unionfs: fix up VOP_UNLOCK use after flags stopped being supported

For the most part the code was passing the LK_RELEASE flag.
The 2 cases which did not use the VOP_UNLOCK_FLAGS macro.

This fixes a panic when stacking unionfs on top of e.g., tmpfs when
debug is enabled.

Note there are latent bugs which prevent unionfs from working with debug
regardless of this change.

PR: 243064
Reported by: Mason Loring Bliss
sys/fs/unionfs/union_subr.c
sys/fs/unionfs/union_vfsops.c
sys/fs/unionfs/union_vnops.c