]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/rdma: check memory region size before tx buffer allocation
authorChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 31 May 2019 10:32:04 +0000 (18:32 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 02:45:05 +0000 (10:45 +0800)
commite59a764dd16aa3424fba050f70343f66ab154b7c
treea4e12b8c6fb13e06b94d226c18e03e7a6c951738
parent175d52ac293d2e53c02e874bd605284444a1a20c
msg/async/rdma: check memory region size before tx buffer allocation

It'll trigger out-of-bound access problem in kernel if the required
memory region size is bigger than ibv_device_attr.max_mr_size

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc