]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fuse_vnop_copy_file_range(): add safety
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 14 Nov 2023 22:49:35 +0000 (00:49 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 16 Nov 2023 20:10:31 +0000 (22:10 +0200)
commit4c6cded2166111079c6b5e8b2353171dcc7ed0c4
tree395d49db1998a051f21b6a1025d326b861af60c0
parent318c56714aa8c170132ebe008f52904e0f119b5f
fuse_vnop_copy_file_range(): add safety

v_mount for unlocked vnode could be NULL, check for it.  Explain why it
is safe to access fs-specific data for mp if it is read as non-NULL.

Reviewed by: asomers, jah
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42625
sys/fs/fuse/fuse_vnops.c