]> 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>
Thu, 7 Oct 2021 21:43:45 +0000 (15:43 -0600)
commit5dc6fedeb40a2a5a99ef35ed390ba2dbdc28c0bf
tree6acf9be0aa98f09c1abd7064f837f5f466f0a13f
parentce10852cb3a03a1233cff0a54b2d1c67d16d1ee6
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.

Sponsored by: Axcient
Reviewed by:  markj, kib
Differential Revision: https://reviews.freebsd.org/D31994

(cherry picked from commit 4f917847c9037d9b76de188c03e13b81224431b2)
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/read.cc