Searched hist:a2ddbe019d51b35f9da2cb5ddca8c69f0ee422da (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/fs/unionfs/ |
H A D | union_subr.c | diff a2ddbe019d51b35f9da2cb5ddca8c69f0ee422da Sun Dec 24 05:48:19 CET 2023 Jason A. Harmening <jah@FreeBSD.org> unionfs: work around underlying FS failing to respect cn_namelen
unionfs_mkshadowdir() may be invoked on a non-leaf pathname component during lookup, in which case the NUL terminator of the pathname buffer will be well beyond the end of the current component. cn_namelen in this case will still (correctly) indicate the length of only the current component, but ZFS in particular does not currently respect cn_namelen, leading to the creation on inacessible files with slashes in their names. Work around this behavior by temporarily NUL- terminating the current pathname component for the call to VOP_MKDIR().
https://github.com/openzfs/zfs/issues/15705 has been filed to track a proper upstream fix for the issue at hand.
PR: 275871 Reported by: Karlo Miličević <karlo98.m@gmail.com> Tested by: Karlo Miličević <karlo98.m@gmail.com> Reviewed by: kib, olce MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D43818
|