]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix decoding of client session messages flags
authorLuís Henriques <lhenriques@suse.de>
Mon, 23 May 2022 16:09:51 +0000 (17:09 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2022 18:45:14 +0000 (20:45 +0200)
commitb43ef1fb2dd4cfe2a1d6b5d80dcb971a3f1de164
treef77675fec7370b81f30867db2131b9a34342d9b3
parent0028c01a7de96cd063f2691ffc642a346aba2fbf
ceph: fix decoding of client session messages flags

The cephfs kernel client started to show  the message:

 ceph: mds0 session blocklisted

when mounting a filesystem.  This is due to the fact that the session
messages are being incorrectly decoded: the skip needs to take into
account the 'len'.

While there, fixed some whitespaces too.

Cc: stable@vger.kernel.org
Fixes: a990c3e52fc4 ("ceph: don't rely on error_string to validate blocklisted session.")
Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c