diff options
author | Anand Jain <anand.jain@oracle.com> | 2018-02-15 01:11:37 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:39 +0200 |
commit | ccb0e7d1c1bc222966085550e27957c17138b629 (patch) | |
tree | 8640be8a98f735e9e0f22437ee99d1a1cd2055b3 /fs/namei.c | |
parent | 5811375325420052fcadd944792a416a43072b7f (diff) | |
download | linux-stable-ccb0e7d1c1bc222966085550e27957c17138b629.tar.gz linux-stable-ccb0e7d1c1bc222966085550e27957c17138b629.tar.bz2 linux-stable-ccb0e7d1c1bc222966085550e27957c17138b629.zip |
btrfs: verify subvolid mount parameter
We aren't verifying the parameter passed to the subvolid mount option,
so we won't report and fail the mount if a junk value is specified for
example, -o subvolid=abc.
This patch verifies the subvolid option with match_u64.
Up to now the memparse function accepts the K/M/G/ suffixes, that are
usually meant for size values and do not make sense for a subvolume it.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/namei.c')
0 files changed, 0 insertions, 0 deletions