Page MenuHomeFreeBSD

fusefs: Fix iosize for FUSE_WRITE in 7.8 compat mode
ClosedPublic

Authored by asomers on Sep 6 2019, 10:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 9:17 AM
Unknown Object (File)
Wed, Apr 10, 12:14 PM
Unknown Object (File)
Thu, Mar 28, 9:22 PM
Unknown Object (File)
Jan 13 2024, 1:18 AM
Unknown Object (File)
Dec 20 2023, 8:20 AM
Unknown Object (File)
Dec 15 2023, 11:30 AM
Unknown Object (File)
Dec 13 2023, 8:24 AM
Unknown Object (File)
Nov 23 2023, 11:52 PM
Subscribers

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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