diff options
| author | Daniel Vacek <neelx@suse.com> | 2025-06-02 17:53:19 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-07-21 23:53:26 +0200 |
| commit | 3f093ccb95f30f95b7c6014d1f0b6847299190c2 (patch) | |
| tree | 202aec27c098f045433528774b85fe50beb4c8dc /fs/btrfs/backref.c | |
| parent | btrfs: factor out compression mount options parsing (diff) | |
| download | linux-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
