]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: don't panic if FUSE_GETATTR fails durint VOP_GETPAGES
authorAlan Somers <asomers@FreeBSD.org>
Thu, 16 Sep 2021 19:19:21 +0000 (13:19 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Tue, 21 Sep 2021 20:01:06 +0000 (14:01 -0600)
commit4f917847c9037d9b76de188c03e13b81224431b2
treefd33c230dcdd3852585008ab1363ed4052a9f7ef
parentbcdc599dc2a187052cb13e18f22d3f0c655f95e6
fusefs: don't panic if FUSE_GETATTR fails durint VOP_GETPAGES

During VOP_GETPAGES, fusefs needs to determine the file's length, which
could require a FUSE_GETATTR operation.  If that fails, it's better to
SIGBUS than panic.

MFC after: 1 week
Sponsored by: Axcient
Reviewed by:  markj, kib
Differential Revision: https://reviews.freebsd.org/D31994
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/read.cc