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)
commitea16567f11018e2f58e72b667b0c803ff92b8153
treef77675fec7370b81f30867db2131b9a34342d9b3
parent5e56776d5215ab5ab886006fc749346bad8473c8
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: e1c9788cb397 ("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