aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorLuis Henriques <[email protected]>2020-11-12 10:45:12 +0000
committerIlya Dryomov <[email protected]>2020-12-14 23:21:47 +0100
commite5cafce3ad0f8652d6849314d951459c2bff7233 (patch)
tree1c0471a9dc891b9db9a0171eda41432e66029468 /scripts/gdb/linux/tasks.py
parent4a357f5069428afc7c48cb4bdc95c864b7a5c862 (diff)
ceph: fix race in concurrent __ceph_remove_cap invocations
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. Those callers hold the session->s_mutex, so they are prevented from concurrent execution, but ceph_evict_inode does not. Since the callers of this function hold the i_ceph_lock, the fix is simply a matter of returning immediately if caps->ci is NULL. Cc: [email protected] URL: https://tracker.ceph.com/issues/43272 Suggested-by: Jeff Layton <[email protected]> Signed-off-by: Luis Henriques <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions