summaryrefslogtreecommitdiff
path: root/net/ceph/crush
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-09-23 10:57:57 +0300
committerIlya Dryomov <idryomov@gmail.com>2016-10-03 17:13:50 +0300
commit464691bd52b46a565153ec2a3b8b9984dacd4a00 (patch)
tree46ee3b018c43e5a0971bcb93e96add5cfc84e5e8 /net/ceph/crush
parentfdc723e77bcf17ec2646fdef031e7f135968a9b7 (diff)
downloadlinux-464691bd52b46a565153ec2a3b8b9984dacd4a00.tar.xz
libceph: ceph_build_auth() doesn't need ceph_auth_build_hello()
A static bug finder (EBA) on Linux 4.7: Double lock in net/ceph/auth.c second lock at 108: mutex_lock(& ac->mutex); [ceph_auth_build_hello] after calling from 263: ret = ceph_auth_build_hello(ac, msg_buf, msg_len); if ! ac->protocol -> true at 262 first lock at 261: mutex_lock(& ac->mutex); [ceph_build_auth] ceph_auth_build_hello() is never called, because the protocol is always initialized, whether we are checking existing tickets (in delayed_work()) or getting new ones after invalidation (in invalidate_authorizer()). Reported-by: Iago Abal <iari@itu.dk> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph/crush')
0 files changed, 0 insertions, 0 deletions