Thread (22 messages) 22 messages, 10 authors, 2019-09-26

Re: [RFC PATCH 2/3] fs: add RWF_ENCODED for writing compressed data

From: Colin Walters <hidden>
Date: 2019-09-25 12:07:48
Also in: linux-btrfs, linux-fsdevel


On Wed, Sep 25, 2019, at 3:11 AM, Dave Chinner wrote:
We're talking about user data read/write access here, not some
special security capability. Access to the data has already been
permission checked, so why should the format that the data is
supplied to the kernel in suddenly require new privilege checks?
What happens with BTRFS today if userspace provides invalid compressed data via this interface?  Does that show up as filesystem corruption later?  If the data is verified at write time, wouldn't that be losing most of the speed advantages of providing pre-compressed data?

Ability for a user to cause fsck errors later would be a new thing that would argue for a privilege check I think.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help