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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

asomers created this revision.Sep 6 2019, 10:39 PM
emaste accepted this revision.Sep 10 2019, 8:07 PM
emaste added inline comments.
sys/fs/fuse/fuse_io.c
559 ↗(On Diff #61769)

Probably put a blank line after the variable declaration

This revision is now accepted and ready to land.Sep 10 2019, 8:07 PM
This revision was automatically updated to reflect the committed changes.