]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: don't panic if FUSE_GETATTR fails durint VOP_GETPAGES
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 16 Sep 2021 23:53:58 +0000 (02:53 +0300)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 7 Oct 2021 19:51:35 +0000 (13:51 -0600)
commitc858f3d89b3c92cf3c0962c976dc6bd322ad8b9b
tree033a4921b1d6c1cf83ede982a93ef047576335f3
parent4bfc58be8696f50390aeaa25d26709fc6a7646a8
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)

buffer pager: allow get_blksize method to return error

Reported and reviewed by: asomers
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D31998

(cherry picked from commit 197a4f29f39e6ae6215a6dbd28ef449d305e6d49)
sys/fs/cd9660/cd9660_vnops.c
sys/fs/fuse/fuse_vnops.c
sys/fs/msdosfs/msdosfs_vnops.c
sys/fs/nfsclient/nfs_clbio.c
sys/kern/vfs_bio.c
sys/sys/buf.h
sys/ufs/ffs/ffs_vnops.c
tests/sys/fs/fusefs/read.cc