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)
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
Unknown Object (File)
Oct 19 2023, 4:30 AM
Unknown Object (File)
Sep 24 2023, 9:13 PM
Unknown Object (File)
Sep 5 2023, 5:22 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 Passed
Unit
No 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