diff options
| author | Daniel Vacek <[email protected]> | 2025-06-02 15:53:19 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 21:53:26 +0000 |
| commit | 3f093ccb95f30f95b7c6014d1f0b6847299190c2 (patch) | |
| tree | 202aec27c098f045433528774b85fe50beb4c8dc /fs/btrfs/extent_io.c | |
| parent | btrfs: factor out compression mount options parsing (diff) | |
| download | kernel-3f093ccb95f30f95b7c6014d1f0b6847299190c2.tar.gz kernel-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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
0 files changed, 0 insertions, 0 deletions
