aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorDaniel Vacek <neelx@suse.com>2025-06-02 17:53:19 +0200
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:53:26 +0200
commit3f093ccb95f30f95b7c6014d1f0b6847299190c2 (patch)
tree202aec27c098f045433528774b85fe50beb4c8dc /fs/btrfs/backref.c
parentbtrfs: factor out compression mount options parsing (diff)
downloadlinux-3f093ccb95f30f95b7c6014d1f0b6847299190c2.tar.gz
linux-3f093ccb95f30f95b7c6014d1f0b6847299190c2.zip
btrfs: harden parsing of compression mount options
Btrfs happily but incorrectly accepts the `-o compress=zlib+foo` and similar options with any random suffix. Fix that by explicitly checking the end of the strings. Signed-off-by: Daniel Vacek <neelx@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.c')
0 files changed, 0 insertions, 0 deletions