HomeFreeBSD

FUSE: Prevent trivial panic

Description

FUSE: Prevent trivial panic

When open(2) was invoked against a FUSE filesystem with an unexpected flags
value (no O_RDONLY / O_RDWR / O_WRONLY), an assertion fired, causing panic.

For now, prevent the panic by rejecting such VOP_OPENs with EINVAL.

This is not considered the correct long term fix, but does prevent an
unprivileged denial-of-service.

PR: 236329
Reported by: asomers
Reviewed by: asomers
Sponsored by: Dell EMC Isilon

Details

Committed
cemMar 6 2019, 10:56 PM
Reviewer
asomers
Parents
rS344856: MFC 330882: Simplify error handling in t4_tom.ko module loading.
Branches
Unknown
Tags
Unknown