Page MenuHomeFreeBSD

fusefs: Fix iosize for FUSE_WRITE in 7.8 compat mode
ClosedPublic

Authored by asomers on Sep 6 2019, 10:39 PM.

Details

Summary

fusefs: Fix iosize for FUSE_WRITE in 7.8 compat mode

When communicating with a FUSE server that implements version 7.8
(or older) of the FUSE protocol, the FUSE_WRITE request structure is
16 bytes shorter than normal. The protocol version check wasn't
applied universally, leading to an extra 16 bytes being sent to such
servers. The extra bytes were allocated and bzero()d, so there was
no information disclosure.

MFC-With: r350665

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 26326
Build 24804: arc lint + arc unit

Event Timeline

emaste added inline comments.
sys/fs/fuse/fuse_io.c
559

Probably put a blank line after the variable declaration

This revision is now accepted and ready to land.Sep 10 2019, 8:07 PM