HomeFreeBSD

fusefs: don't panic if FUSE_GETATTR fails durint VOP_GETPAGES

Description

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)

Details

Provenance
kibAuthored on Sep 16 2021, 11:53 PM
asomersCommitted on Oct 7 2021, 7:51 PM
Reviewer
markj
Differential Revision
D31994: fusefs: don't panic if FUSE_GETATTR fails durint VOP_GETPAGES
Parents
rG4bfc58be8696: ses: Guard the elm_type_names declaration by _KERNEL
Branches
Unknown
Tags
Unknown