[Bugs] [Bug 1522651] rdma transport may access an obsolete item in gf_rdma_device_t->all_mr, and causes glusterfsd/glusterfs process crash.

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 6 10:01:57 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1522651



--- Comment #4 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18943 committed in master by \"Yi Wang\"
<wangyi at storswift.com> with a commit message- rpc-transport/rdma: Add a mutex
for the list of RDMA Memory Region(MR) access

Problem: gf_rdma_device_t->all_mr is a __gf_rdma_arena_mr(includes MR content)
     kind of list in the rdma rpc-transport. The rdma rpc-transport will
     add/delete items to the list when MRs register, deregister, and free.
     Because gf_rdma_device_t->all_mr is used by different threads
     and it is not mutex protected, rdma transport maybe access obsolete
     items in it.

Solution: Add a mutex protection for the gf_rdma_device_t->all_mr.

Change-Id: I2b7de0f7aa516b90bb6f3c6aae3aadd23b243900
BUG: 1522651
Signed-off-by: Yi Wang <wangyi at storswift.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=3w7hyuDeg3&a=cc_unsubscribe


More information about the Bugs mailing list