[Bugs] [Bug 1525850] 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
Tue Jan 2 09:51:12 UTC 2018


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



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/19032 committed in release-3.12 by \"Yi
Wang\" <wangyi8848 at gmail.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>

(cherry picked from commit 8483ed87165c1695b513e223549d33d2d63891d9)
Change-Id: I2b7de0f7aa516b90bb6f3c6aae3aadd23b243900
BUG: 1525850
Signed-off-by: Yi Wang <wangyi at storswift.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list