[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130730.162714.310395724208648975.davem@davemloft.net>
Date: Tue, 30 Jul 2013 16:27:14 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: khoroshilov@...ras.ru
Cc: sage@...tank.com, ceph-devel@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
ldv-project@...uxtesting.org
Subject: Re: [PATCH] libceph: fix deadlock in ceph_build_auth()
From: Alexey Khoroshilov <khoroshilov@...ras.ru>
Date: Mon, 29 Jul 2013 06:58:08 +0400
> ceph_build_auth() locks ac->mutex and then calls ceph_auth_build_hello()
> that locks the same mutex, i.e. bring itself to deadlock.
>
> The patch moves actual code from ceph_auth_build_hello() to
> ceph_build_hello_auth_request() that should be called with ac->mutex held
> and makes ceph_build_auth() calling it.
> ceph_auth_build_hello() is left with untouched semantics as a wrapper
> around ceph_build_hello_auth_request().
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Alexey Khoroshilov <khoroshilov@...ras.ru>
I'm assume the ceph developers will pick this up, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists