]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fix base64 encoded name's length check in ceph_fname_to_usr()
authorXiubo Li <xiubli@redhat.com>
Fri, 11 Mar 2022 04:15:05 +0000 (12:15 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 18 Aug 2022 02:59:51 +0000 (10:59 +0800)
commitff2f93e5b17e4e096d9cc2a68901e264c72b47d4
tree8bfd06d70da301ee52edf939d3adc89d79e9484c
parentde09ad9c6f9fffc84823df4d42f5f833b492939b
ceph: fix base64 encoded name's length check in ceph_fname_to_usr()

The fname->name is based64_encoded names and the max long shouldn't
exceed the NAME_MAX.

The FSCRYPT_BASE64URL_CHARS(NAME_MAX) will be 255 * 4 / 3.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/crypto.c