Re: [PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Luis Henriques
Jeff Layton writes: > On Thu, 2020-11-12 at 20:43 +0800, Yan, Zheng wrote: >> On Thu, Nov 12, 2020 at 6:48 PM Luis Henriques wrote: >> > >> > A NULL pointer dereference may occur in __ceph_remove_cap with some of the >> > callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and >>

Re: [PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Jeff Layton
On Thu, 2020-11-12 at 20:43 +0800, Yan, Zheng wrote: > On Thu, Nov 12, 2020 at 6:48 PM Luis Henriques wrote: > > > > A NULL pointer dereference may occur in __ceph_remove_cap with some of the > > callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and > > remove_session_caps_cb.

Re: [PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Yan, Zheng
On Thu, Nov 12, 2020 at 6:48 PM Luis Henriques wrote: > > A NULL pointer dereference may occur in __ceph_remove_cap with some of the > callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and > remove_session_caps_cb. These aren't protected against the concurrent > execution of

Re: [PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Jeff Layton
On Thu, 2020-11-12 at 10:45 +, Luis Henriques wrote: > A NULL pointer dereference may occur in __ceph_remove_cap with some of the > callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and > remove_session_caps_cb. These aren't protected against the concurrent > execution of

[PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Luis Henriques
A NULL pointer dereference may occur in __ceph_remove_cap with some of the callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and remove_session_caps_cb. These aren't protected against the concurrent execution of __ceph_remove_cap. Since the callers of this function hold the